diff options
Diffstat (limited to 'web/yacco2/grammar-testsuite/sp_2tbl.cpp')
-rw-r--r-- | web/yacco2/grammar-testsuite/sp_2tbl.cpp | 267 |
1 files changed, 267 insertions, 0 deletions
diff --git a/web/yacco2/grammar-testsuite/sp_2tbl.cpp b/web/yacco2/grammar-testsuite/sp_2tbl.cpp new file mode 100644 index 0000000000..6bc32de307 --- /dev/null +++ b/web/yacco2/grammar-testsuite/sp_2tbl.cpp @@ -0,0 +1,267 @@ +/* + File: sp_2tbl.cpp + Date and Time: Sat Jan 31 11:58:57 2015 +*/ +#include "sp_2.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_sp_2;// grammar's ns +// first set terminals +// LR1_eog +yacco2::UCHAR LA1_Csp_2[] ={ +1 +,0,2 +}; +// LR1_eolr +yacco2::UCHAR LA2_Csp_2[] ={ +1 +,0,4 +}; +// raw_c +yacco2::UCHAR LA3_Csp_2[] ={ +1 +,13,8 +}; +// raw_d +yacco2::UCHAR LA4_Csp_2[] ={ +1 +,13,16 +}; +extern yacco2::State S1_Csp_2; +extern yacco2::State S2_Csp_2; +extern yacco2::State S3_Csp_2; +extern yacco2::State S4_Csp_2; +extern yacco2::State S5_Csp_2; +extern yacco2::State S6_Csp_2; +extern yacco2::State S7_Csp_2; +extern yacco2::State S8_Csp_2; +extern yacco2::State S9_Csp_2; +extern yacco2::State S10_Csp_2; +extern yacco2::State S11_Csp_2; +extern yacco2::State S12_Csp_2; +extern yacco2::State S13_Csp_2; +extern yacco2::State S14_Csp_2; +extern yacco2::State S15_Csp_2; +struct S1std_Csp_2{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[4]; +}; +S1std_Csp_2 S1st_Csp_2 = { + 4 + , + {// start of table + {105,(State*)&S2_Csp_2} // shift sym: raw_a + ,{106,(State*)&S7_Csp_2} // shift sym: raw_b + ,{569,(State*)&S1_Csp_2} // accept sym: Rg + ,{570,(State*)&S12_Csp_2} // shift sym: Rs + }// end of shift table +}; +yacco2::State S1_Csp_2 = //State's vectored into symbol: " No symbol" +{1 +,0,0,0,0,(Shift_tbl*)&S1st_Csp_2,0,0,0,0}; +struct S2std_Csp_2{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[3]; +}; +S2std_Csp_2 S2st_Csp_2 = { + 3 + , + {// start of table + {110,(State*)&S14_Csp_2} // shift sym: raw_f + ,{571,(State*)&S3_Csp_2} // shift sym: Ra + ,{572,(State*)&S5_Csp_2} // shift sym: Rb + }// end of shift table +}; +yacco2::State S2_Csp_2 = //State's vectored into symbol: "a" +{2 +,0,0,0,0,(Shift_tbl*)&S2st_Csp_2,0,0,0,0}; +struct S3std_Csp_2{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[1]; +}; +S3std_Csp_2 S3st_Csp_2 = { + 1 + , + {// start of table + {107,(State*)&S4_Csp_2} // shift sym: raw_c + }// end of shift table +}; +yacco2::State S3_Csp_2 = //State's vectored into symbol: "Ra" +{3 +,0,0,0,0,(Shift_tbl*)&S3st_Csp_2,0,0,0,0}; +struct S4rtd_Csp_2{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S4rtd_Csp_2 S4rt_Csp_2 = { + 1 + , + {// start of table + {(Set_tbl*)&LA1_Csp_2,Csp_2::rhs1_Rs_} + }// end of reduce table +}; +yacco2::State S4_Csp_2 = //State's vectored into symbol: "c" +{4 +,0,0,0,0,0,(Reduce_tbl*)&S4rt_Csp_2,0,0,0}; +struct S5std_Csp_2{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[1]; +}; +S5std_Csp_2 S5st_Csp_2 = { + 1 + , + {// start of table + {108,(State*)&S6_Csp_2} // shift sym: raw_d + }// end of shift table +}; +yacco2::State S5_Csp_2 = //State's vectored into symbol: "Rb" +{5 +,0,0,0,0,(Shift_tbl*)&S5st_Csp_2,0,0,0,0}; +struct S6rtd_Csp_2{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S6rtd_Csp_2 S6rt_Csp_2 = { + 1 + , + {// start of table + {(Set_tbl*)&LA1_Csp_2,Csp_2::rhs2_Rs_} + }// end of reduce table +}; +yacco2::State S6_Csp_2 = //State's vectored into symbol: "d" +{6 +,0,0,0,0,0,(Reduce_tbl*)&S6rt_Csp_2,0,0,0}; +struct S7std_Csp_2{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[3]; +}; +S7std_Csp_2 S7st_Csp_2 = { + 3 + , + {// start of table + {110,(State*)&S15_Csp_2} // shift sym: raw_f + ,{571,(State*)&S8_Csp_2} // shift sym: Ra + ,{572,(State*)&S10_Csp_2} // shift sym: Rb + }// end of shift table +}; +yacco2::State S7_Csp_2 = //State's vectored into symbol: "b" +{7 +,0,0,0,0,(Shift_tbl*)&S7st_Csp_2,0,0,0,0}; +struct S8std_Csp_2{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[1]; +}; +S8std_Csp_2 S8st_Csp_2 = { + 1 + , + {// start of table + {108,(State*)&S9_Csp_2} // shift sym: raw_d + }// end of shift table +}; +yacco2::State S8_Csp_2 = //State's vectored into symbol: "Ra" +{8 +,0,0,0,0,(Shift_tbl*)&S8st_Csp_2,0,0,0,0}; +struct S9rtd_Csp_2{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S9rtd_Csp_2 S9rt_Csp_2 = { + 1 + , + {// start of table + {(Set_tbl*)&LA1_Csp_2,Csp_2::rhs3_Rs_} + }// end of reduce table +}; +yacco2::State S9_Csp_2 = //State's vectored into symbol: "d" +{9 +,0,0,0,0,0,(Reduce_tbl*)&S9rt_Csp_2,0,0,0}; +struct S10std_Csp_2{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[1]; +}; +S10std_Csp_2 S10st_Csp_2 = { + 1 + , + {// start of table + {107,(State*)&S11_Csp_2} // shift sym: raw_c + }// end of shift table +}; +yacco2::State S10_Csp_2 = //State's vectored into symbol: "Rb" +{10 +,0,0,0,0,(Shift_tbl*)&S10st_Csp_2,0,0,0,0}; +struct S11rtd_Csp_2{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S11rtd_Csp_2 S11rt_Csp_2 = { + 1 + , + {// start of table + {(Set_tbl*)&LA1_Csp_2,Csp_2::rhs4_Rs_} + }// end of reduce table +}; +yacco2::State S11_Csp_2 = //State's vectored into symbol: "c" +{11 +,0,0,0,0,0,(Reduce_tbl*)&S11rt_Csp_2,0,0,0}; +struct S12std_Csp_2{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[1]; +}; +S12std_Csp_2 S12st_Csp_2 = { + 1 + , + {// start of table + {1,(State*)&S13_Csp_2} // shift sym: LR1_eog + }// end of shift table +}; +yacco2::State S12_Csp_2 = //State's vectored into symbol: "Rs" +{12 +,0,0,0,0,(Shift_tbl*)&S12st_Csp_2,0,0,0,0}; +struct S13rtd_Csp_2{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S13rtd_Csp_2 S13rt_Csp_2 = { + 1 + , + {// start of table + {(Set_tbl*)&LA2_Csp_2,Csp_2::rhs1_Rg_} + }// end of reduce table +}; +yacco2::State S13_Csp_2 = //State's vectored into symbol: "eog" +{13 +,0,0,0,0,0,(Reduce_tbl*)&S13rt_Csp_2,0,0,0}; +struct S14rtd_Csp_2{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[2]; +}; +S14rtd_Csp_2 S14rt_Csp_2 = { + 2 + , + {// start of table + {(Set_tbl*)&LA3_Csp_2,Csp_2::rhs1_Ra_} + ,{(Set_tbl*)&LA4_Csp_2,Csp_2::rhs1_Rb_} + }// end of reduce table +}; +yacco2::State S14_Csp_2 = //State's vectored into symbol: "f" +{14 +,0,0,0,0,0,(Reduce_tbl*)&S14rt_Csp_2,0,0,0}; +struct S15rtd_Csp_2{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[2]; +}; +S15rtd_Csp_2 S15rt_Csp_2 = { + 2 + , + {// start of table + {(Set_tbl*)&LA4_Csp_2,Csp_2::rhs1_Ra_} + ,{(Set_tbl*)&LA3_Csp_2,Csp_2::rhs1_Rb_} + }// end of reduce table +}; +yacco2::State S15_Csp_2 = //State's vectored into symbol: "f" +{15 +,0,0,0,0,0,(Reduce_tbl*)&S15rt_Csp_2,0,0,0}; |