diff options
Diffstat (limited to 'web/yacco2/qa/lr1_sp3tbl.cpp')
-rw-r--r-- | web/yacco2/qa/lr1_sp3tbl.cpp | 320 |
1 files changed, 320 insertions, 0 deletions
diff --git a/web/yacco2/qa/lr1_sp3tbl.cpp b/web/yacco2/qa/lr1_sp3tbl.cpp new file mode 100644 index 0000000000..884aef9368 --- /dev/null +++ b/web/yacco2/qa/lr1_sp3tbl.cpp @@ -0,0 +1,320 @@ +/* + File: lr1_sp3tbl.cpp + Date and Time: Mon Oct 13 18:18:13 2014 +*/ +#include "lr1_sp3.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_sp3;// grammar's ns +// first set terminals +// raw_b +yacco2::UCHAR LA1_Clr1_sp3[] ={ +1 +,13,4 +}; +// raw_c +yacco2::UCHAR LA2_Clr1_sp3[] ={ +1 +,13,8 +}; +// LR1_eolr +yacco2::UCHAR LA3_Clr1_sp3[] ={ +1 +,0,4 +}; +// LR1_eog +yacco2::UCHAR LA4_Clr1_sp3[] ={ +1 +,0,2 +}; +extern yacco2::State S1_Clr1_sp3; +extern yacco2::State S2_Clr1_sp3; +extern yacco2::State S3_Clr1_sp3; +extern yacco2::State S4_Clr1_sp3; +extern yacco2::State S5_Clr1_sp3; +extern yacco2::State S6_Clr1_sp3; +extern yacco2::State S7_Clr1_sp3; +extern yacco2::State S8_Clr1_sp3; +extern yacco2::State S9_Clr1_sp3; +extern yacco2::State S10_Clr1_sp3; +extern yacco2::State S11_Clr1_sp3; +extern yacco2::State S12_Clr1_sp3; +extern yacco2::State S13_Clr1_sp3; +extern yacco2::State S14_Clr1_sp3; +extern yacco2::State S15_Clr1_sp3; +extern yacco2::State S16_Clr1_sp3; +extern yacco2::State S17_Clr1_sp3; +struct S1std_Clr1_sp3{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[5]; +}; +S1std_Clr1_sp3 S1st_Clr1_sp3 = { + 5 + , + {// start of table + {105,(State*)&S2_Clr1_sp3} // shift sym: raw_a + ,{569,(State*)&S1_Clr1_sp3} // accept sym: Rlr1_sp3 + ,{570,(State*)&S7_Clr1_sp3} // shift sym: RS + ,{571,(State*)&S9_Clr1_sp3} // shift sym: RA + ,{572,(State*)&S11_Clr1_sp3} // shift sym: RB + }// end of shift table +}; +yacco2::State S1_Clr1_sp3 = //State's vectored into symbol: " No symbol" +{1 +,0,0,0,0,(Shift_tbl*)&S1st_Clr1_sp3,0,0,0,0}; +struct S2std_Clr1_sp3{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[3]; +}; +S2std_Clr1_sp3 S2st_Clr1_sp3 = { + 3 + , + {// start of table + {105,(State*)&S13_Clr1_sp3} // shift sym: raw_a + ,{571,(State*)&S3_Clr1_sp3} // shift sym: RA + ,{572,(State*)&S5_Clr1_sp3} // shift sym: RB + }// end of shift table +}; +struct S2rtd_Clr1_sp3{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[2]; +}; +S2rtd_Clr1_sp3 S2rt_Clr1_sp3 = { + 2 + , + {// start of table + {(Set_tbl*)&LA1_Clr1_sp3,Clr1_sp3::rhs2_RA_} + ,{(Set_tbl*)&LA2_Clr1_sp3,Clr1_sp3::rhs2_RB_} + }// end of reduce table +}; +yacco2::State S2_Clr1_sp3 = //State's vectored into symbol: "a" +{2 +,0,0,0,0,(Shift_tbl*)&S2st_Clr1_sp3,(Reduce_tbl*)&S2rt_Clr1_sp3,0,0,0}; +struct S3std_Clr1_sp3{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[1]; +}; +S3std_Clr1_sp3 S3st_Clr1_sp3 = { + 1 + , + {// start of table + {107,(State*)&S4_Clr1_sp3} // shift sym: raw_c + }// end of shift table +}; +yacco2::State S3_Clr1_sp3 = //State's vectored into symbol: "RA" +{3 +,0,0,0,0,(Shift_tbl*)&S3st_Clr1_sp3,0,0,0,0}; +struct S4rtd_Clr1_sp3{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S4rtd_Clr1_sp3 S4rt_Clr1_sp3 = { + 1 + , + {// start of table + {(Set_tbl*)&LA1_Clr1_sp3,Clr1_sp3::rhs1_RA_} + }// end of reduce table +}; +yacco2::State S4_Clr1_sp3 = //State's vectored into symbol: "c" +{4 +,0,0,0,0,0,(Reduce_tbl*)&S4rt_Clr1_sp3,0,0,0}; +struct S5std_Clr1_sp3{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[1]; +}; +S5std_Clr1_sp3 S5st_Clr1_sp3 = { + 1 + , + {// start of table + {106,(State*)&S6_Clr1_sp3} // shift sym: raw_b + }// end of shift table +}; +yacco2::State S5_Clr1_sp3 = //State's vectored into symbol: "RB" +{5 +,0,0,0,0,(Shift_tbl*)&S5st_Clr1_sp3,0,0,0,0}; +struct S6rtd_Clr1_sp3{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S6rtd_Clr1_sp3 S6rt_Clr1_sp3 = { + 1 + , + {// start of table + {(Set_tbl*)&LA2_Clr1_sp3,Clr1_sp3::rhs1_RB_} + }// end of reduce table +}; +yacco2::State S6_Clr1_sp3 = //State's vectored into symbol: "b" +{6 +,0,0,0,0,0,(Reduce_tbl*)&S6rt_Clr1_sp3,0,0,0}; +struct S7std_Clr1_sp3{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[1]; +}; +S7std_Clr1_sp3 S7st_Clr1_sp3 = { + 1 + , + {// start of table + {1,(State*)&S8_Clr1_sp3} // shift sym: LR1_eog + }// end of shift table +}; +yacco2::State S7_Clr1_sp3 = //State's vectored into symbol: "RS" +{7 +,0,0,0,0,(Shift_tbl*)&S7st_Clr1_sp3,0,0,0,0}; +struct S8rtd_Clr1_sp3{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S8rtd_Clr1_sp3 S8rt_Clr1_sp3 = { + 1 + , + {// start of table + {(Set_tbl*)&LA3_Clr1_sp3,Clr1_sp3::rhs1_Rlr1_sp3_} + }// end of reduce table +}; +yacco2::State S8_Clr1_sp3 = //State's vectored into symbol: "eog" +{8 +,0,0,0,0,0,(Reduce_tbl*)&S8rt_Clr1_sp3,0,0,0}; +struct S9std_Clr1_sp3{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[1]; +}; +S9std_Clr1_sp3 S9st_Clr1_sp3 = { + 1 + , + {// start of table + {106,(State*)&S10_Clr1_sp3} // shift sym: raw_b + }// end of shift table +}; +yacco2::State S9_Clr1_sp3 = //State's vectored into symbol: "RA" +{9 +,0,0,0,0,(Shift_tbl*)&S9st_Clr1_sp3,0,0,0,0}; +struct S10rtd_Clr1_sp3{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S10rtd_Clr1_sp3 S10rt_Clr1_sp3 = { + 1 + , + {// start of table + {(Set_tbl*)&LA4_Clr1_sp3,Clr1_sp3::rhs1_RS_} + }// end of reduce table +}; +yacco2::State S10_Clr1_sp3 = //State's vectored into symbol: "b" +{10 +,0,0,0,0,0,(Reduce_tbl*)&S10rt_Clr1_sp3,0,0,0}; +struct S11std_Clr1_sp3{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[1]; +}; +S11std_Clr1_sp3 S11st_Clr1_sp3 = { + 1 + , + {// start of table + {107,(State*)&S12_Clr1_sp3} // shift sym: raw_c + }// end of shift table +}; +yacco2::State S11_Clr1_sp3 = //State's vectored into symbol: "RB" +{11 +,0,0,0,0,(Shift_tbl*)&S11st_Clr1_sp3,0,0,0,0}; +struct S12rtd_Clr1_sp3{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S12rtd_Clr1_sp3 S12rt_Clr1_sp3 = { + 1 + , + {// start of table + {(Set_tbl*)&LA4_Clr1_sp3,Clr1_sp3::rhs2_RS_} + }// end of reduce table +}; +yacco2::State S12_Clr1_sp3 = //State's vectored into symbol: "c" +{12 +,0,0,0,0,0,(Reduce_tbl*)&S12rt_Clr1_sp3,0,0,0}; +struct S13std_Clr1_sp3{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[3]; +}; +S13std_Clr1_sp3 S13st_Clr1_sp3 = { + 3 + , + {// start of table + {105,(State*)&S13_Clr1_sp3} // shift sym: raw_a + ,{571,(State*)&S14_Clr1_sp3} // shift sym: RA + ,{572,(State*)&S16_Clr1_sp3} // shift sym: RB + }// end of shift table +}; +struct S13rtd_Clr1_sp3{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[2]; +}; +S13rtd_Clr1_sp3 S13rt_Clr1_sp3 = { + 2 + , + {// start of table + {(Set_tbl*)&LA2_Clr1_sp3,Clr1_sp3::rhs2_RA_} + ,{(Set_tbl*)&LA1_Clr1_sp3,Clr1_sp3::rhs2_RB_} + }// end of reduce table +}; +yacco2::State S13_Clr1_sp3 = //State's vectored into symbol: "a" +{13 +,0,0,0,0,(Shift_tbl*)&S13st_Clr1_sp3,(Reduce_tbl*)&S13rt_Clr1_sp3,0,0,0}; +struct S14std_Clr1_sp3{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[1]; +}; +S14std_Clr1_sp3 S14st_Clr1_sp3 = { + 1 + , + {// start of table + {107,(State*)&S15_Clr1_sp3} // shift sym: raw_c + }// end of shift table +}; +yacco2::State S14_Clr1_sp3 = //State's vectored into symbol: "RA" +{14 +,0,0,0,0,(Shift_tbl*)&S14st_Clr1_sp3,0,0,0,0}; +struct S15rtd_Clr1_sp3{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S15rtd_Clr1_sp3 S15rt_Clr1_sp3 = { + 1 + , + {// start of table + {(Set_tbl*)&LA2_Clr1_sp3,Clr1_sp3::rhs1_RA_} + }// end of reduce table +}; +yacco2::State S15_Clr1_sp3 = //State's vectored into symbol: "c" +{15 +,0,0,0,0,0,(Reduce_tbl*)&S15rt_Clr1_sp3,0,0,0}; +struct S16std_Clr1_sp3{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[1]; +}; +S16std_Clr1_sp3 S16st_Clr1_sp3 = { + 1 + , + {// start of table + {106,(State*)&S17_Clr1_sp3} // shift sym: raw_b + }// end of shift table +}; +yacco2::State S16_Clr1_sp3 = //State's vectored into symbol: "RB" +{16 +,0,0,0,0,(Shift_tbl*)&S16st_Clr1_sp3,0,0,0,0}; +struct S17rtd_Clr1_sp3{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S17rtd_Clr1_sp3 S17rt_Clr1_sp3 = { + 1 + , + {// start of table + {(Set_tbl*)&LA1_Clr1_sp3,Clr1_sp3::rhs1_RB_} + }// end of reduce table +}; +yacco2::State S17_Clr1_sp3 = //State's vectored into symbol: "b" +{17 +,0,0,0,0,0,(Reduce_tbl*)&S17rt_Clr1_sp3,0,0,0}; |