diff options
Diffstat (limited to 'web/yacco2/qa/knu2tbl.cpp')
-rw-r--r-- | web/yacco2/qa/knu2tbl.cpp | 168 |
1 files changed, 168 insertions, 0 deletions
diff --git a/web/yacco2/qa/knu2tbl.cpp b/web/yacco2/qa/knu2tbl.cpp new file mode 100644 index 0000000000..9e05c3215c --- /dev/null +++ b/web/yacco2/qa/knu2tbl.cpp @@ -0,0 +1,168 @@ +/* + File: knu2tbl.cpp + Date and Time: Sun Oct 5 16:04:59 2014 +*/ +#include "knu2.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_knu2;// grammar's ns +// first set terminals +// LR1_eog +// raw_close_bracket +// raw_plus +yacco2::UCHAR LA1_Cknu2[] ={ +2 +,0,2 +,6,10 +}; +// LR1_eolr +yacco2::UCHAR LA2_Cknu2[] ={ +1 +,0,4 +}; +extern yacco2::State S1_Cknu2; +extern yacco2::State S2_Cknu2; +extern yacco2::State S3_Cknu2; +extern yacco2::State S4_Cknu2; +extern yacco2::State S5_Cknu2; +extern yacco2::State S6_Cknu2; +extern yacco2::State S7_Cknu2; +extern yacco2::State S8_Cknu2; +extern yacco2::State S9_Cknu2; +struct S1std_Cknu2{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[4]; +}; +S1std_Cknu2 S1st_Cknu2 = { + 4 + , + {// start of table + {48,(State*)&S2_Cknu2} // shift sym: raw_open_bracket + ,{105,(State*)&S7_Cknu2} // shift sym: raw_a + ,{569,(State*)&S1_Cknu2} // accept sym: Rstart + ,{570,(State*)&S8_Cknu2} // shift sym: RS + }// end of shift table +}; +yacco2::State S1_Cknu2 = //State's vectored into symbol: " No symbol" +{1 +,0,0,0,0,(Shift_tbl*)&S1st_Cknu2,0,0,0,0}; +struct S2std_Cknu2{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[3]; +}; +S2std_Cknu2 S2st_Cknu2 = { + 3 + , + {// start of table + {48,(State*)&S2_Cknu2} // shift sym: raw_open_bracket + ,{105,(State*)&S7_Cknu2} // shift sym: raw_a + ,{570,(State*)&S3_Cknu2} // shift sym: RS + }// end of shift table +}; +yacco2::State S2_Cknu2 = //State's vectored into symbol: "(" +{2 +,0,0,0,0,(Shift_tbl*)&S2st_Cknu2,0,0,0,0}; +struct S3std_Cknu2{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[1]; +}; +S3std_Cknu2 S3st_Cknu2 = { + 1 + , + {// start of table + {51,(State*)&S4_Cknu2} // shift sym: raw_plus + }// end of shift table +}; +yacco2::State S3_Cknu2 = //State's vectored into symbol: "RS" +{3 +,0,0,0,0,(Shift_tbl*)&S3st_Cknu2,0,0,0,0}; +struct S4std_Cknu2{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[3]; +}; +S4std_Cknu2 S4st_Cknu2 = { + 3 + , + {// start of table + {48,(State*)&S2_Cknu2} // shift sym: raw_open_bracket + ,{105,(State*)&S7_Cknu2} // shift sym: raw_a + ,{570,(State*)&S5_Cknu2} // shift sym: RS + }// end of shift table +}; +yacco2::State S4_Cknu2 = //State's vectored into symbol: "+" +{4 +,0,0,0,0,(Shift_tbl*)&S4st_Cknu2,0,0,0,0}; +struct S5std_Cknu2{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[1]; +}; +S5std_Cknu2 S5st_Cknu2 = { + 1 + , + {// start of table + {49,(State*)&S6_Cknu2} // shift sym: raw_close_bracket + }// end of shift table +}; +yacco2::State S5_Cknu2 = //State's vectored into symbol: "RS" +{5 +,0,0,0,0,(Shift_tbl*)&S5st_Cknu2,0,0,0,0}; +struct S6rtd_Cknu2{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S6rtd_Cknu2 S6rt_Cknu2 = { + 1 + , + {// start of table + {(Set_tbl*)&LA1_Cknu2,Cknu2::rhs2_RS_} + }// end of reduce table +}; +yacco2::State S6_Cknu2 = //State's vectored into symbol: ")" +{6 +,0,0,0,0,0,(Reduce_tbl*)&S6rt_Cknu2,0,0,0}; +struct S7rtd_Cknu2{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S7rtd_Cknu2 S7rt_Cknu2 = { + 1 + , + {// start of table + {(Set_tbl*)&LA1_Cknu2,Cknu2::rhs1_RS_} + }// end of reduce table +}; +yacco2::State S7_Cknu2 = //State's vectored into symbol: "a" +{7 +,0,0,0,0,0,(Reduce_tbl*)&S7rt_Cknu2,0,0,0}; +struct S8std_Cknu2{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[1]; +}; +S8std_Cknu2 S8st_Cknu2 = { + 1 + , + {// start of table + {1,(State*)&S9_Cknu2} // shift sym: LR1_eog + }// end of shift table +}; +yacco2::State S8_Cknu2 = //State's vectored into symbol: "RS" +{8 +,0,0,0,0,(Shift_tbl*)&S8st_Cknu2,0,0,0,0}; +struct S9rtd_Cknu2{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S9rtd_Cknu2 S9rt_Cknu2 = { + 1 + , + {// start of table + {(Set_tbl*)&LA2_Cknu2,Cknu2::rhs1_Rstart_} + }// end of reduce table +}; +yacco2::State S9_Cknu2 = //State's vectored into symbol: "eog" +{9 +,0,0,0,0,0,(Reduce_tbl*)&S9rt_Cknu2,0,0,0}; |