diff options
Diffstat (limited to 'web/yacco2/qa/test_use_cnttbl.cpp')
-rw-r--r-- | web/yacco2/qa/test_use_cnttbl.cpp | 350 |
1 files changed, 350 insertions, 0 deletions
diff --git a/web/yacco2/qa/test_use_cnttbl.cpp b/web/yacco2/qa/test_use_cnttbl.cpp new file mode 100644 index 0000000000..f382490e75 --- /dev/null +++ b/web/yacco2/qa/test_use_cnttbl.cpp @@ -0,0 +1,350 @@ +/* + File: test_use_cnttbl.cpp + Date and Time: Mon Oct 13 18:18:15 2014 +*/ +#include "test_use_cnt.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_test_use_cnt;// grammar's ns +// first set terminals +// LR1_eog +// raw_a +// raw_b +// raw_x +yacco2::UCHAR LA1_CTS_la1[] ={ +3 +,0,2 +,13,6 +,16,1 +}; +// raw_a +yacco2::UCHAR LA2_CTS_la1[] ={ +1 +,13,2 +}; +// LR1_eog +yacco2::UCHAR LA3_CTS_la1[] ={ +1 +,0,2 +}; +// LR1_eolr +yacco2::UCHAR LA4_CTS_la1[] ={ +1 +,0,4 +}; +extern yacco2::State S1_CTS_la1; +extern yacco2::State S2_CTS_la1; +extern yacco2::State S3_CTS_la1; +extern yacco2::State S4_CTS_la1; +extern yacco2::State S5_CTS_la1; +extern yacco2::State S6_CTS_la1; +extern yacco2::State S7_CTS_la1; +extern yacco2::State S8_CTS_la1; +extern yacco2::State S9_CTS_la1; +extern yacco2::State S10_CTS_la1; +extern yacco2::State S11_CTS_la1; +extern yacco2::State S12_CTS_la1; +extern yacco2::State S13_CTS_la1; +extern yacco2::State S14_CTS_la1; +extern yacco2::State S15_CTS_la1; +extern yacco2::State S16_CTS_la1; +extern yacco2::State S17_CTS_la1; +extern yacco2::State S18_CTS_la1; +extern yacco2::State S19_CTS_la1; +struct S1std_CTS_la1{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[3]; +}; +S1std_CTS_la1 S1st_CTS_la1 = { + 3 + , + {// start of table + {105,(State*)&S2_CTS_la1} // shift sym: raw_a + ,{569,(State*)&S1_CTS_la1} // accept sym: Rtest_use_cnt + ,{572,(State*)&S3_CTS_la1} // shift sym: Ra + }// end of shift table +}; +yacco2::State S1_CTS_la1 = //State's vectored into symbol: " No symbol" +{1 +,0,0,0,0,(Shift_tbl*)&S1st_CTS_la1,0,0,0,0}; +struct S2rtd_CTS_la1{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S2rtd_CTS_la1 S2rt_CTS_la1 = { + 1 + , + {// start of table + {(Set_tbl*)&LA1_CTS_la1,CTS_la1::rhs1_Ra_} + }// end of reduce table +}; +yacco2::State S2_CTS_la1 = //State's vectored into symbol: "a" +{2 +,0,0,0,0,0,(Reduce_tbl*)&S2rt_CTS_la1,0,0,0}; +struct S3std_CTS_la1{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[3]; +}; +S3std_CTS_la1 S3st_CTS_la1 = { + 3 + , + {// start of table + {105,(State*)&S4_CTS_la1} // shift sym: raw_a + ,{128,(State*)&S5_CTS_la1} // shift sym: raw_x + ,{570,(State*)&S10_CTS_la1} // shift sym: Rxx + }// end of shift table +}; +yacco2::State S3_CTS_la1 = //State's vectored into symbol: "Ra" +{3 +,0,0,0,0,(Shift_tbl*)&S3st_CTS_la1,0,0,0,0}; +struct S4rtd_CTS_la1{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S4rtd_CTS_la1 S4rt_CTS_la1 = { + 1 + , + {// start of table + {(Set_tbl*)&LA1_CTS_la1,CTS_la1::rhs2_Ra_} + }// end of reduce table +}; +yacco2::State S4_CTS_la1 = //State's vectored into symbol: "a" +{4 +,0,0,0,0,0,(Reduce_tbl*)&S4rt_CTS_la1,0,0,0}; +struct S5std_CTS_la1{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[2]; +}; +S5std_CTS_la1 S5st_CTS_la1 = { + 2 + , + {// start of table + {105,(State*)&S2_CTS_la1} // shift sym: raw_a + ,{572,(State*)&S6_CTS_la1} // shift sym: Ra + }// end of shift table +}; +yacco2::State S5_CTS_la1 = //State's vectored into symbol: "x" +{5 +,0,0,0,0,(Shift_tbl*)&S5st_CTS_la1,0,0,0,0}; +struct S6std_CTS_la1{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[2]; +}; +S6std_CTS_la1 S6st_CTS_la1 = { + 2 + , + {// start of table + {105,(State*)&S4_CTS_la1} // shift sym: raw_a + ,{128,(State*)&S7_CTS_la1} // shift sym: raw_x + }// end of shift table +}; +yacco2::State S6_CTS_la1 = //State's vectored into symbol: "Ra" +{6 +,0,0,0,0,(Shift_tbl*)&S6st_CTS_la1,0,0,0,0}; +struct S7std_CTS_la1{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[2]; +}; +S7std_CTS_la1 S7st_CTS_la1 = { + 2 + , + {// start of table + {105,(State*)&S2_CTS_la1} // shift sym: raw_a + ,{572,(State*)&S8_CTS_la1} // shift sym: Ra + }// end of shift table +}; +yacco2::State S7_CTS_la1 = //State's vectored into symbol: "x" +{7 +,0,0,0,0,(Shift_tbl*)&S7st_CTS_la1,0,0,0,0}; +struct S8std_CTS_la1{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[2]; +}; +S8std_CTS_la1 S8st_CTS_la1 = { + 2 + , + {// start of table + {105,(State*)&S4_CTS_la1} // shift sym: raw_a + ,{106,(State*)&S9_CTS_la1} // shift sym: raw_b + }// end of shift table +}; +yacco2::State S8_CTS_la1 = //State's vectored into symbol: "Ra" +{8 +,0,0,0,0,(Shift_tbl*)&S8st_CTS_la1,0,0,0,0}; +struct S9rtd_CTS_la1{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S9rtd_CTS_la1 S9rt_CTS_la1 = { + 1 + , + {// start of table + {(Set_tbl*)&LA2_CTS_la1,CTS_la1::rhs1_Rxx_} + }// end of reduce table +}; +yacco2::State S9_CTS_la1 = //State's vectored into symbol: "b" +{9 +,0,0,0,0,0,(Reduce_tbl*)&S9rt_CTS_la1,0,0,0}; +struct S10std_CTS_la1{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[2]; +}; +S10std_CTS_la1 S10st_CTS_la1 = { + 2 + , + {// start of table + {105,(State*)&S2_CTS_la1} // shift sym: raw_a + ,{572,(State*)&S11_CTS_la1} // shift sym: Ra + }// end of shift table +}; +yacco2::State S10_CTS_la1 = //State's vectored into symbol: "Rxx" +{10 +,0,0,0,0,(Shift_tbl*)&S10st_CTS_la1,0,0,0,0}; +struct S11std_CTS_la1{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[3]; +}; +S11std_CTS_la1 S11st_CTS_la1 = { + 3 + , + {// start of table + {105,(State*)&S4_CTS_la1} // shift sym: raw_a + ,{128,(State*)&S12_CTS_la1} // shift sym: raw_x + ,{571,(State*)&S18_CTS_la1} // shift sym: Rxxx + }// end of shift table +}; +yacco2::State S11_CTS_la1 = //State's vectored into symbol: "Ra" +{11 +,0,0,0,0,(Shift_tbl*)&S11st_CTS_la1,0,0,0,0}; +struct S12std_CTS_la1{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[2]; +}; +S12std_CTS_la1 S12st_CTS_la1 = { + 2 + , + {// start of table + {105,(State*)&S2_CTS_la1} // shift sym: raw_a + ,{572,(State*)&S13_CTS_la1} // shift sym: Ra + }// end of shift table +}; +yacco2::State S12_CTS_la1 = //State's vectored into symbol: "x" +{12 +,0,0,0,0,(Shift_tbl*)&S12st_CTS_la1,0,0,0,0}; +struct S13std_CTS_la1{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[2]; +}; +S13std_CTS_la1 S13st_CTS_la1 = { + 2 + , + {// start of table + {105,(State*)&S4_CTS_la1} // shift sym: raw_a + ,{128,(State*)&S14_CTS_la1} // shift sym: raw_x + }// end of shift table +}; +yacco2::State S13_CTS_la1 = //State's vectored into symbol: "Ra" +{13 +,0,0,0,0,(Shift_tbl*)&S13st_CTS_la1,0,0,0,0}; +struct S14std_CTS_la1{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[2]; +}; +S14std_CTS_la1 S14st_CTS_la1 = { + 2 + , + {// start of table + {105,(State*)&S2_CTS_la1} // shift sym: raw_a + ,{572,(State*)&S15_CTS_la1} // shift sym: Ra + }// end of shift table +}; +yacco2::State S14_CTS_la1 = //State's vectored into symbol: "x" +{14 +,0,0,0,0,(Shift_tbl*)&S14st_CTS_la1,0,0,0,0}; +struct S15std_CTS_la1{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[2]; +}; +S15std_CTS_la1 S15st_CTS_la1 = { + 2 + , + {// start of table + {105,(State*)&S4_CTS_la1} // shift sym: raw_a + ,{128,(State*)&S16_CTS_la1} // shift sym: raw_x + }// end of shift table +}; +yacco2::State S15_CTS_la1 = //State's vectored into symbol: "Ra" +{15 +,0,0,0,0,(Shift_tbl*)&S15st_CTS_la1,0,0,0,0}; +struct S16std_CTS_la1{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[2]; +}; +S16std_CTS_la1 S16st_CTS_la1 = { + 2 + , + {// start of table + {105,(State*)&S2_CTS_la1} // shift sym: raw_a + ,{572,(State*)&S17_CTS_la1} // shift sym: Ra + }// end of shift table +}; +yacco2::State S16_CTS_la1 = //State's vectored into symbol: "x" +{16 +,0,0,0,0,(Shift_tbl*)&S16st_CTS_la1,0,0,0,0}; +struct S17std_CTS_la1{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[1]; +}; +S17std_CTS_la1 S17st_CTS_la1 = { + 1 + , + {// start of table + {105,(State*)&S4_CTS_la1} // shift sym: raw_a + }// end of shift table +}; +struct S17rtd_CTS_la1{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S17rtd_CTS_la1 S17rt_CTS_la1 = { + 1 + , + {// start of table + {(Set_tbl*)&LA3_CTS_la1,CTS_la1::rhs1_Rxxx_} + }// end of reduce table +}; +yacco2::State S17_CTS_la1 = //State's vectored into symbol: "Ra" +{17 +,0,0,0,0,(Shift_tbl*)&S17st_CTS_la1,(Reduce_tbl*)&S17rt_CTS_la1,0,0,0}; +struct S18std_CTS_la1{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[1]; +}; +S18std_CTS_la1 S18st_CTS_la1 = { + 1 + , + {// start of table + {1,(State*)&S19_CTS_la1} // shift sym: LR1_eog + }// end of shift table +}; +yacco2::State S18_CTS_la1 = //State's vectored into symbol: "Rxxx" +{18 +,0,0,0,0,(Shift_tbl*)&S18st_CTS_la1,0,0,0,0}; +struct S19rtd_CTS_la1{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S19rtd_CTS_la1 S19rt_CTS_la1 = { + 1 + , + {// start of table + {(Set_tbl*)&LA4_CTS_la1,CTS_la1::rhs1_Rtest_use_cnt_} + }// end of reduce table +}; +yacco2::State S19_CTS_la1 = //State's vectored into symbol: "eog" +{19 +,0,0,0,0,0,(Reduce_tbl*)&S19rt_CTS_la1,0,0,0}; |