/* File: LR1_sp4tbl.cpp Date and Time: Mon Oct 13 18:18:13 2014 */ #include "LR1_sp4.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_LR1_sp4;// grammar's ns // first set terminals // LR1_eog yacco2::UCHAR LA1_Clr1_sp4_fsm[] ={ 1 ,0,2 }; // LR1_eolr yacco2::UCHAR LA2_Clr1_sp4_fsm[] ={ 1 ,0,4 }; // raw_d yacco2::UCHAR LA3_Clr1_sp4_fsm[] ={ 1 ,13,16 }; // raw_c yacco2::UCHAR LA4_Clr1_sp4_fsm[] ={ 1 ,13,8 }; extern yacco2::State S1_Clr1_sp4_fsm; extern yacco2::State S2_Clr1_sp4_fsm; extern yacco2::State S3_Clr1_sp4_fsm; extern yacco2::State S4_Clr1_sp4_fsm; extern yacco2::State S5_Clr1_sp4_fsm; extern yacco2::State S6_Clr1_sp4_fsm; extern yacco2::State S7_Clr1_sp4_fsm; extern yacco2::State S8_Clr1_sp4_fsm; extern yacco2::State S9_Clr1_sp4_fsm; extern yacco2::State S10_Clr1_sp4_fsm; extern yacco2::State S11_Clr1_sp4_fsm; extern yacco2::State S12_Clr1_sp4_fsm; extern yacco2::State S13_Clr1_sp4_fsm; extern yacco2::State S14_Clr1_sp4_fsm; extern yacco2::State S15_Clr1_sp4_fsm; struct S1std_Clr1_sp4_fsm{ yacco2::USINT no_entries_; yacco2::Shift_entry shift_entries_[4]; }; S1std_Clr1_sp4_fsm S1st_Clr1_sp4_fsm = { 4 , {// start of table {105,(State*)&S2_Clr1_sp4_fsm} // shift sym: raw_a ,{106,(State*)&S7_Clr1_sp4_fsm} // shift sym: raw_b ,{569,(State*)&S1_Clr1_sp4_fsm} // accept sym: Rlr1_sp4 ,{570,(State*)&S12_Clr1_sp4_fsm} // shift sym: RS }// end of shift table }; yacco2::State S1_Clr1_sp4_fsm = //State's vectored into symbol: " No symbol" {1 ,0,0,0,0,(Shift_tbl*)&S1st_Clr1_sp4_fsm,0,0,0,0}; struct S2std_Clr1_sp4_fsm{ yacco2::USINT no_entries_; yacco2::Shift_entry shift_entries_[3]; }; S2std_Clr1_sp4_fsm S2st_Clr1_sp4_fsm = { 3 , {// start of table {110,(State*)&S14_Clr1_sp4_fsm} // shift sym: raw_f ,{571,(State*)&S3_Clr1_sp4_fsm} // shift sym: RA ,{572,(State*)&S5_Clr1_sp4_fsm} // shift sym: RB }// end of shift table }; yacco2::State S2_Clr1_sp4_fsm = //State's vectored into symbol: "a" {2 ,0,0,0,0,(Shift_tbl*)&S2st_Clr1_sp4_fsm,0,0,0,0}; struct S3std_Clr1_sp4_fsm{ yacco2::USINT no_entries_; yacco2::Shift_entry shift_entries_[1]; }; S3std_Clr1_sp4_fsm S3st_Clr1_sp4_fsm = { 1 , {// start of table {107,(State*)&S4_Clr1_sp4_fsm} // shift sym: raw_c }// end of shift table }; yacco2::State S3_Clr1_sp4_fsm = //State's vectored into symbol: "RA" {3 ,0,0,0,0,(Shift_tbl*)&S3st_Clr1_sp4_fsm,0,0,0,0}; struct S4rtd_Clr1_sp4_fsm{ yacco2::USINT no_entries_; yacco2::Reduce_entry reduce_entries_[1]; }; S4rtd_Clr1_sp4_fsm S4rt_Clr1_sp4_fsm = { 1 , {// start of table {(Set_tbl*)&LA1_Clr1_sp4_fsm,Clr1_sp4_fsm::rhs1_RS_} }// end of reduce table }; yacco2::State S4_Clr1_sp4_fsm = //State's vectored into symbol: "c" {4 ,0,0,0,0,0,(Reduce_tbl*)&S4rt_Clr1_sp4_fsm,0,0,0}; struct S5std_Clr1_sp4_fsm{ yacco2::USINT no_entries_; yacco2::Shift_entry shift_entries_[1]; }; S5std_Clr1_sp4_fsm S5st_Clr1_sp4_fsm = { 1 , {// start of table {108,(State*)&S6_Clr1_sp4_fsm} // shift sym: raw_d }// end of shift table }; yacco2::State S5_Clr1_sp4_fsm = //State's vectored into symbol: "RB" {5 ,0,0,0,0,(Shift_tbl*)&S5st_Clr1_sp4_fsm,0,0,0,0}; struct S6rtd_Clr1_sp4_fsm{ yacco2::USINT no_entries_; yacco2::Reduce_entry reduce_entries_[1]; }; S6rtd_Clr1_sp4_fsm S6rt_Clr1_sp4_fsm = { 1 , {// start of table {(Set_tbl*)&LA1_Clr1_sp4_fsm,Clr1_sp4_fsm::rhs2_RS_} }// end of reduce table }; yacco2::State S6_Clr1_sp4_fsm = //State's vectored into symbol: "d" {6 ,0,0,0,0,0,(Reduce_tbl*)&S6rt_Clr1_sp4_fsm,0,0,0}; struct S7std_Clr1_sp4_fsm{ yacco2::USINT no_entries_; yacco2::Shift_entry shift_entries_[3]; }; S7std_Clr1_sp4_fsm S7st_Clr1_sp4_fsm = { 3 , {// start of table {110,(State*)&S15_Clr1_sp4_fsm} // shift sym: raw_f ,{571,(State*)&S8_Clr1_sp4_fsm} // shift sym: RA ,{572,(State*)&S10_Clr1_sp4_fsm} // shift sym: RB }// end of shift table }; yacco2::State S7_Clr1_sp4_fsm = //State's vectored into symbol: "b" {7 ,0,0,0,0,(Shift_tbl*)&S7st_Clr1_sp4_fsm,0,0,0,0}; struct S8std_Clr1_sp4_fsm{ yacco2::USINT no_entries_; yacco2::Shift_entry shift_entries_[1]; }; S8std_Clr1_sp4_fsm S8st_Clr1_sp4_fsm = { 1 , {// start of table {108,(State*)&S9_Clr1_sp4_fsm} // shift sym: raw_d }// end of shift table }; yacco2::State S8_Clr1_sp4_fsm = //State's vectored into symbol: "RA" {8 ,0,0,0,0,(Shift_tbl*)&S8st_Clr1_sp4_fsm,0,0,0,0}; struct S9rtd_Clr1_sp4_fsm{ yacco2::USINT no_entries_; yacco2::Reduce_entry reduce_entries_[1]; }; S9rtd_Clr1_sp4_fsm S9rt_Clr1_sp4_fsm = { 1 , {// start of table {(Set_tbl*)&LA1_Clr1_sp4_fsm,Clr1_sp4_fsm::rhs3_RS_} }// end of reduce table }; yacco2::State S9_Clr1_sp4_fsm = //State's vectored into symbol: "d" {9 ,0,0,0,0,0,(Reduce_tbl*)&S9rt_Clr1_sp4_fsm,0,0,0}; struct S10std_Clr1_sp4_fsm{ yacco2::USINT no_entries_; yacco2::Shift_entry shift_entries_[1]; }; S10std_Clr1_sp4_fsm S10st_Clr1_sp4_fsm = { 1 , {// start of table {107,(State*)&S11_Clr1_sp4_fsm} // shift sym: raw_c }// end of shift table }; yacco2::State S10_Clr1_sp4_fsm = //State's vectored into symbol: "RB" {10 ,0,0,0,0,(Shift_tbl*)&S10st_Clr1_sp4_fsm,0,0,0,0}; struct S11rtd_Clr1_sp4_fsm{ yacco2::USINT no_entries_; yacco2::Reduce_entry reduce_entries_[1]; }; S11rtd_Clr1_sp4_fsm S11rt_Clr1_sp4_fsm = { 1 , {// start of table {(Set_tbl*)&LA1_Clr1_sp4_fsm,Clr1_sp4_fsm::rhs4_RS_} }// end of reduce table }; yacco2::State S11_Clr1_sp4_fsm = //State's vectored into symbol: "c" {11 ,0,0,0,0,0,(Reduce_tbl*)&S11rt_Clr1_sp4_fsm,0,0,0}; struct S12std_Clr1_sp4_fsm{ yacco2::USINT no_entries_; yacco2::Shift_entry shift_entries_[1]; }; S12std_Clr1_sp4_fsm S12st_Clr1_sp4_fsm = { 1 , {// start of table {1,(State*)&S13_Clr1_sp4_fsm} // shift sym: LR1_eog }// end of shift table }; yacco2::State S12_Clr1_sp4_fsm = //State's vectored into symbol: "RS" {12 ,0,0,0,0,(Shift_tbl*)&S12st_Clr1_sp4_fsm,0,0,0,0}; struct S13rtd_Clr1_sp4_fsm{ yacco2::USINT no_entries_; yacco2::Reduce_entry reduce_entries_[1]; }; S13rtd_Clr1_sp4_fsm S13rt_Clr1_sp4_fsm = { 1 , {// start of table {(Set_tbl*)&LA2_Clr1_sp4_fsm,Clr1_sp4_fsm::rhs1_Rlr1_sp4_} }// end of reduce table }; yacco2::State S13_Clr1_sp4_fsm = //State's vectored into symbol: "eog" {13 ,0,0,0,0,0,(Reduce_tbl*)&S13rt_Clr1_sp4_fsm,0,0,0}; struct S14rtd_Clr1_sp4_fsm{ yacco2::USINT no_entries_; yacco2::Reduce_entry reduce_entries_[2]; }; S14rtd_Clr1_sp4_fsm S14rt_Clr1_sp4_fsm = { 2 , {// start of table {(Set_tbl*)&LA3_Clr1_sp4_fsm,Clr1_sp4_fsm::rhs1_RB_} ,{(Set_tbl*)&LA4_Clr1_sp4_fsm,Clr1_sp4_fsm::rhs1_RA_} }// end of reduce table }; yacco2::State S14_Clr1_sp4_fsm = //State's vectored into symbol: "f" {14 ,0,0,0,0,0,(Reduce_tbl*)&S14rt_Clr1_sp4_fsm,0,0,0}; struct S15rtd_Clr1_sp4_fsm{ yacco2::USINT no_entries_; yacco2::Reduce_entry reduce_entries_[2]; }; S15rtd_Clr1_sp4_fsm S15rt_Clr1_sp4_fsm = { 2 , {// start of table {(Set_tbl*)&LA4_Clr1_sp4_fsm,Clr1_sp4_fsm::rhs1_RB_} ,{(Set_tbl*)&LA3_Clr1_sp4_fsm,Clr1_sp4_fsm::rhs1_RA_} }// end of reduce table }; yacco2::State S15_Clr1_sp4_fsm = //State's vectored into symbol: "f" {15 ,0,0,0,0,0,(Reduce_tbl*)&S15rt_Clr1_sp4_fsm,0,0,0};