/* File: knu1tbl.cpp Date and Time: Mon Oct 13 18:18:18 2014 */ #include "knu1.h" using namespace NS_yacco2_T_enum;// enumerate using namespace NS_yacco2_err_symbols;// error symbols using namespace NS_yacco2_k_symbols;// lrk using namespace NS_yacco2_terminals;// terminals using namespace NS_yacco2_characters;// rc using namespace yacco2;// yacco2 library using namespace NS_knu1;// grammar's ns // first set terminals // LR1_eog yacco2::UCHAR LA1_Cknu1[] ={ 1 ,0,2 }; // raw_b yacco2::UCHAR LA2_Cknu1[] ={ 1 ,13,4 }; // raw_a yacco2::UCHAR LA3_Cknu1[] ={ 1 ,13,2 }; // LR1_eolr yacco2::UCHAR LA4_Cknu1[] ={ 1 ,0,4 }; extern yacco2::State S1_Cknu1; extern yacco2::State S2_Cknu1; extern yacco2::State S3_Cknu1; extern yacco2::State S4_Cknu1; extern yacco2::State S5_Cknu1; extern yacco2::State S6_Cknu1; extern yacco2::State S7_Cknu1; extern yacco2::State S8_Cknu1; extern yacco2::State S9_Cknu1; extern yacco2::State S10_Cknu1; extern yacco2::State S11_Cknu1; extern yacco2::State S12_Cknu1; extern yacco2::State S13_Cknu1; extern yacco2::State S14_Cknu1; extern yacco2::State S15_Cknu1; extern yacco2::State S16_Cknu1; extern yacco2::State S17_Cknu1; extern yacco2::State S18_Cknu1; extern yacco2::State S19_Cknu1; struct S1std_Cknu1{ yacco2::USINT no_entries_; yacco2::Shift_entry shift_entries_[4]; }; S1std_Cknu1 S1st_Cknu1 = { 4 , {// start of table {105,(State*)&S2_Cknu1} // shift sym: raw_a ,{106,(State*)&S5_Cknu1} // shift sym: raw_b ,{569,(State*)&S1_Cknu1} // accept sym: Rstart ,{570,(State*)&S10_Cknu1} // shift sym: RS }// end of shift table }; struct S1rtd_Cknu1{ yacco2::USINT no_entries_; yacco2::Reduce_entry reduce_entries_[1]; }; S1rtd_Cknu1 S1rt_Cknu1 = { 1 , {// start of table {(Set_tbl*)&LA1_Cknu1,Cknu1::rhs1_RS_} }// end of reduce table }; yacco2::State S1_Cknu1 = //State's vectored into symbol: " No symbol" {1 ,0,0,0,0,(Shift_tbl*)&S1st_Cknu1,(Reduce_tbl*)&S1rt_Cknu1,0,0,0}; struct S2std_Cknu1{ yacco2::USINT no_entries_; yacco2::Shift_entry shift_entries_[2]; }; S2std_Cknu1 S2st_Cknu1 = { 2 , {// start of table {105,(State*)&S12_Cknu1} // shift sym: raw_a ,{571,(State*)&S3_Cknu1} // shift sym: RA }// end of shift table }; struct S2rtd_Cknu1{ yacco2::USINT no_entries_; yacco2::Reduce_entry reduce_entries_[1]; }; S2rtd_Cknu1 S2rt_Cknu1 = { 1 , {// start of table {(Set_tbl*)&LA2_Cknu1,Cknu1::rhs1_RA_} }// end of reduce table }; yacco2::State S2_Cknu1 = //State's vectored into symbol: "a" {2 ,0,0,0,0,(Shift_tbl*)&S2st_Cknu1,(Reduce_tbl*)&S2rt_Cknu1,0,0,0}; struct S3std_Cknu1{ yacco2::USINT no_entries_; yacco2::Shift_entry shift_entries_[1]; }; S3std_Cknu1 S3st_Cknu1 = { 1 , {// start of table {106,(State*)&S4_Cknu1} // shift sym: raw_b }// end of shift table }; yacco2::State S3_Cknu1 = //State's vectored into symbol: "RA" {3 ,0,0,0,0,(Shift_tbl*)&S3st_Cknu1,0,0,0,0}; struct S4std_Cknu1{ yacco2::USINT no_entries_; yacco2::Shift_entry shift_entries_[3]; }; S4std_Cknu1 S4st_Cknu1 = { 3 , {// start of table {105,(State*)&S2_Cknu1} // shift sym: raw_a ,{106,(State*)&S5_Cknu1} // shift sym: raw_b ,{570,(State*)&S9_Cknu1} // shift sym: RS }// end of shift table }; struct S4rtd_Cknu1{ yacco2::USINT no_entries_; yacco2::Reduce_entry reduce_entries_[1]; }; S4rtd_Cknu1 S4rt_Cknu1 = { 1 , {// start of table {(Set_tbl*)&LA1_Cknu1,Cknu1::rhs1_RS_} }// end of reduce table }; yacco2::State S4_Cknu1 = //State's vectored into symbol: "b" {4 ,0,0,0,0,(Shift_tbl*)&S4st_Cknu1,(Reduce_tbl*)&S4rt_Cknu1,0,0,0}; struct S5std_Cknu1{ yacco2::USINT no_entries_; yacco2::Shift_entry shift_entries_[2]; }; S5std_Cknu1 S5st_Cknu1 = { 2 , {// start of table {106,(State*)&S16_Cknu1} // shift sym: raw_b ,{572,(State*)&S6_Cknu1} // shift sym: RB }// end of shift table }; struct S5rtd_Cknu1{ yacco2::USINT no_entries_; yacco2::Reduce_entry reduce_entries_[1]; }; S5rtd_Cknu1 S5rt_Cknu1 = { 1 , {// start of table {(Set_tbl*)&LA3_Cknu1,Cknu1::rhs1_RB_} }// end of reduce table }; yacco2::State S5_Cknu1 = //State's vectored into symbol: "b" {5 ,0,0,0,0,(Shift_tbl*)&S5st_Cknu1,(Reduce_tbl*)&S5rt_Cknu1,0,0,0}; struct S6std_Cknu1{ yacco2::USINT no_entries_; yacco2::Shift_entry shift_entries_[1]; }; S6std_Cknu1 S6st_Cknu1 = { 1 , {// start of table {105,(State*)&S7_Cknu1} // shift sym: raw_a }// end of shift table }; yacco2::State S6_Cknu1 = //State's vectored into symbol: "RB" {6 ,0,0,0,0,(Shift_tbl*)&S6st_Cknu1,0,0,0,0}; struct S7std_Cknu1{ yacco2::USINT no_entries_; yacco2::Shift_entry shift_entries_[3]; }; S7std_Cknu1 S7st_Cknu1 = { 3 , {// start of table {105,(State*)&S2_Cknu1} // shift sym: raw_a ,{106,(State*)&S5_Cknu1} // shift sym: raw_b ,{570,(State*)&S8_Cknu1} // shift sym: RS }// end of shift table }; struct S7rtd_Cknu1{ yacco2::USINT no_entries_; yacco2::Reduce_entry reduce_entries_[1]; }; S7rtd_Cknu1 S7rt_Cknu1 = { 1 , {// start of table {(Set_tbl*)&LA1_Cknu1,Cknu1::rhs1_RS_} }// end of reduce table }; yacco2::State S7_Cknu1 = //State's vectored into symbol: "a" {7 ,0,0,0,0,(Shift_tbl*)&S7st_Cknu1,(Reduce_tbl*)&S7rt_Cknu1,0,0,0}; struct S8rtd_Cknu1{ yacco2::USINT no_entries_; yacco2::Reduce_entry reduce_entries_[1]; }; S8rtd_Cknu1 S8rt_Cknu1 = { 1 , {// start of table {(Set_tbl*)&LA1_Cknu1,Cknu1::rhs3_RS_} }// end of reduce table }; yacco2::State S8_Cknu1 = //State's vectored into symbol: "RS" {8 ,0,0,0,0,0,(Reduce_tbl*)&S8rt_Cknu1,0,0,0}; struct S9rtd_Cknu1{ yacco2::USINT no_entries_; yacco2::Reduce_entry reduce_entries_[1]; }; S9rtd_Cknu1 S9rt_Cknu1 = { 1 , {// start of table {(Set_tbl*)&LA1_Cknu1,Cknu1::rhs2_RS_} }// end of reduce table }; yacco2::State S9_Cknu1 = //State's vectored into symbol: "RS" {9 ,0,0,0,0,0,(Reduce_tbl*)&S9rt_Cknu1,0,0,0}; struct S10std_Cknu1{ yacco2::USINT no_entries_; yacco2::Shift_entry shift_entries_[1]; }; S10std_Cknu1 S10st_Cknu1 = { 1 , {// start of table {1,(State*)&S11_Cknu1} // shift sym: LR1_eog }// end of shift table }; yacco2::State S10_Cknu1 = //State's vectored into symbol: "RS" {10 ,0,0,0,0,(Shift_tbl*)&S10st_Cknu1,0,0,0,0}; struct S11rtd_Cknu1{ yacco2::USINT no_entries_; yacco2::Reduce_entry reduce_entries_[1]; }; S11rtd_Cknu1 S11rt_Cknu1 = { 1 , {// start of table {(Set_tbl*)&LA4_Cknu1,Cknu1::rhs1_Rstart_} }// end of reduce table }; yacco2::State S11_Cknu1 = //State's vectored into symbol: "eog" {11 ,0,0,0,0,0,(Reduce_tbl*)&S11rt_Cknu1,0,0,0}; struct S12std_Cknu1{ yacco2::USINT no_entries_; yacco2::Shift_entry shift_entries_[2]; }; S12std_Cknu1 S12st_Cknu1 = { 2 , {// start of table {105,(State*)&S12_Cknu1} // shift sym: raw_a ,{571,(State*)&S13_Cknu1} // shift sym: RA }// end of shift table }; struct S12rtd_Cknu1{ yacco2::USINT no_entries_; yacco2::Reduce_entry reduce_entries_[1]; }; S12rtd_Cknu1 S12rt_Cknu1 = { 1 , {// start of table {(Set_tbl*)&LA2_Cknu1,Cknu1::rhs1_RA_} }// end of reduce table }; yacco2::State S12_Cknu1 = //State's vectored into symbol: "a" {12 ,0,0,0,0,(Shift_tbl*)&S12st_Cknu1,(Reduce_tbl*)&S12rt_Cknu1,0,0,0}; struct S13std_Cknu1{ yacco2::USINT no_entries_; yacco2::Shift_entry shift_entries_[1]; }; S13std_Cknu1 S13st_Cknu1 = { 1 , {// start of table {106,(State*)&S14_Cknu1} // shift sym: raw_b }// end of shift table }; yacco2::State S13_Cknu1 = //State's vectored into symbol: "RA" {13 ,0,0,0,0,(Shift_tbl*)&S13st_Cknu1,0,0,0,0}; struct S14std_Cknu1{ yacco2::USINT no_entries_; yacco2::Shift_entry shift_entries_[2]; }; S14std_Cknu1 S14st_Cknu1 = { 2 , {// start of table {105,(State*)&S12_Cknu1} // shift sym: raw_a ,{571,(State*)&S15_Cknu1} // shift sym: RA }// end of shift table }; struct S14rtd_Cknu1{ yacco2::USINT no_entries_; yacco2::Reduce_entry reduce_entries_[1]; }; S14rtd_Cknu1 S14rt_Cknu1 = { 1 , {// start of table {(Set_tbl*)&LA2_Cknu1,Cknu1::rhs1_RA_} }// end of reduce table }; yacco2::State S14_Cknu1 = //State's vectored into symbol: "b" {14 ,0,0,0,0,(Shift_tbl*)&S14st_Cknu1,(Reduce_tbl*)&S14rt_Cknu1,0,0,0}; struct S15rtd_Cknu1{ yacco2::USINT no_entries_; yacco2::Reduce_entry reduce_entries_[1]; }; S15rtd_Cknu1 S15rt_Cknu1 = { 1 , {// start of table {(Set_tbl*)&LA2_Cknu1,Cknu1::rhs2_RA_} }// end of reduce table }; yacco2::State S15_Cknu1 = //State's vectored into symbol: "RA" {15 ,0,0,0,0,0,(Reduce_tbl*)&S15rt_Cknu1,0,0,0}; struct S16std_Cknu1{ yacco2::USINT no_entries_; yacco2::Shift_entry shift_entries_[2]; }; S16std_Cknu1 S16st_Cknu1 = { 2 , {// start of table {106,(State*)&S16_Cknu1} // shift sym: raw_b ,{572,(State*)&S17_Cknu1} // shift sym: RB }// end of shift table }; struct S16rtd_Cknu1{ yacco2::USINT no_entries_; yacco2::Reduce_entry reduce_entries_[1]; }; S16rtd_Cknu1 S16rt_Cknu1 = { 1 , {// start of table {(Set_tbl*)&LA3_Cknu1,Cknu1::rhs1_RB_} }// end of reduce table }; yacco2::State S16_Cknu1 = //State's vectored into symbol: "b" {16 ,0,0,0,0,(Shift_tbl*)&S16st_Cknu1,(Reduce_tbl*)&S16rt_Cknu1,0,0,0}; struct S17std_Cknu1{ yacco2::USINT no_entries_; yacco2::Shift_entry shift_entries_[1]; }; S17std_Cknu1 S17st_Cknu1 = { 1 , {// start of table {105,(State*)&S18_Cknu1} // shift sym: raw_a }// end of shift table }; yacco2::State S17_Cknu1 = //State's vectored into symbol: "RB" {17 ,0,0,0,0,(Shift_tbl*)&S17st_Cknu1,0,0,0,0}; struct S18std_Cknu1{ yacco2::USINT no_entries_; yacco2::Shift_entry shift_entries_[2]; }; S18std_Cknu1 S18st_Cknu1 = { 2 , {// start of table {106,(State*)&S16_Cknu1} // shift sym: raw_b ,{572,(State*)&S19_Cknu1} // shift sym: RB }// end of shift table }; struct S18rtd_Cknu1{ yacco2::USINT no_entries_; yacco2::Reduce_entry reduce_entries_[1]; }; S18rtd_Cknu1 S18rt_Cknu1 = { 1 , {// start of table {(Set_tbl*)&LA3_Cknu1,Cknu1::rhs1_RB_} }// end of reduce table }; yacco2::State S18_Cknu1 = //State's vectored into symbol: "a" {18 ,0,0,0,0,(Shift_tbl*)&S18st_Cknu1,(Reduce_tbl*)&S18rt_Cknu1,0,0,0}; struct S19rtd_Cknu1{ yacco2::USINT no_entries_; yacco2::Reduce_entry reduce_entries_[1]; }; S19rtd_Cknu1 S19rt_Cknu1 = { 1 , {// start of table {(Set_tbl*)&LA3_Cknu1,Cknu1::rhs2_RB_} }// end of reduce table }; yacco2::State S19_Cknu1 = //State's vectored into symbol: "RB" {19 ,0,0,0,0,0,(Reduce_tbl*)&S19rt_Cknu1,0,0,0};