diff options
Diffstat (limited to 'web/yacco2/compiler/grammars/prt_fs_of_rulestbl.cpp')
-rw-r--r-- | web/yacco2/compiler/grammars/prt_fs_of_rulestbl.cpp | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/web/yacco2/compiler/grammars/prt_fs_of_rulestbl.cpp b/web/yacco2/compiler/grammars/prt_fs_of_rulestbl.cpp new file mode 100644 index 0000000000..4ef66c3263 --- /dev/null +++ b/web/yacco2/compiler/grammars/prt_fs_of_rulestbl.cpp @@ -0,0 +1,120 @@ +/* + File: prt_fs_of_rulestbl.cpp + Date and Time: Fri Jan 30 18:55:20 2015 +*/ +#include "prt_fs_of_rules.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_prt_fs_of_rules;// grammar's ns +// first set terminals +// LR1_eog +// rule_def +yacco2::UCHAR LA1_Cprt_fs_of_rules[] ={ +2 +,0,2 +,42,16 +}; +// LR1_eolr +yacco2::UCHAR LA2_Cprt_fs_of_rules[] ={ +1 +,0,4 +}; +extern yacco2::State S1_Cprt_fs_of_rules; +extern yacco2::State S2_Cprt_fs_of_rules; +extern yacco2::State S3_Cprt_fs_of_rules; +extern yacco2::State S4_Cprt_fs_of_rules; +extern yacco2::State S5_Cprt_fs_of_rules; +extern yacco2::State S6_Cprt_fs_of_rules; +struct S1std_Cprt_fs_of_rules{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[4]; +}; +S1std_Cprt_fs_of_rules S1st_Cprt_fs_of_rules = { + 4 + , + {// start of table + {340,(State*)&S2_Cprt_fs_of_rules} // shift sym: rule_def + ,{569,(State*)&S1_Cprt_fs_of_rules} // accept sym: Rprt_first_set_rules + ,{570,(State*)&S3_Cprt_fs_of_rules} // shift sym: Rrules + ,{571,(State*)&S6_Cprt_fs_of_rules} // shift sym: Rrule_def + }// end of shift table +}; +yacco2::State S1_Cprt_fs_of_rules = //State's vectored into symbol: " No symbol" +{1 +,0,0,0,0,(Shift_tbl*)&S1st_Cprt_fs_of_rules,0,0,0,0}; +struct S2rtd_Cprt_fs_of_rules{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S2rtd_Cprt_fs_of_rules S2rt_Cprt_fs_of_rules = { + 1 + , + {// start of table + {(Set_tbl*)&LA1_Cprt_fs_of_rules,Cprt_fs_of_rules::rhs1_Rrule_def_} + }// end of reduce table +}; +yacco2::State S2_Cprt_fs_of_rules = //State's vectored into symbol: "rule-def" +{2 +,0,0,0,0,0,(Reduce_tbl*)&S2rt_Cprt_fs_of_rules,0,0,0}; +struct S3std_Cprt_fs_of_rules{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[3]; +}; +S3std_Cprt_fs_of_rules S3st_Cprt_fs_of_rules = { + 3 + , + {// start of table + {1,(State*)&S4_Cprt_fs_of_rules} // shift sym: LR1_eog + ,{340,(State*)&S2_Cprt_fs_of_rules} // shift sym: rule_def + ,{571,(State*)&S5_Cprt_fs_of_rules} // shift sym: Rrule_def + }// end of shift table +}; +yacco2::State S3_Cprt_fs_of_rules = //State's vectored into symbol: "Rrules" +{3 +,0,0,0,0,(Shift_tbl*)&S3st_Cprt_fs_of_rules,0,0,0,0}; +struct S4rtd_Cprt_fs_of_rules{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S4rtd_Cprt_fs_of_rules S4rt_Cprt_fs_of_rules = { + 1 + , + {// start of table + {(Set_tbl*)&LA2_Cprt_fs_of_rules,Cprt_fs_of_rules::rhs1_Rprt_first_set_rules_} + }// end of reduce table +}; +yacco2::State S4_Cprt_fs_of_rules = //State's vectored into symbol: "eog" +{4 +,0,0,0,0,0,(Reduce_tbl*)&S4rt_Cprt_fs_of_rules,0,0,0}; +struct S5rtd_Cprt_fs_of_rules{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S5rtd_Cprt_fs_of_rules S5rt_Cprt_fs_of_rules = { + 1 + , + {// start of table + {(Set_tbl*)&LA1_Cprt_fs_of_rules,Cprt_fs_of_rules::rhs2_Rrules_} + }// end of reduce table +}; +yacco2::State S5_Cprt_fs_of_rules = //State's vectored into symbol: "Rrule_def" +{5 +,0,0,0,0,0,(Reduce_tbl*)&S5rt_Cprt_fs_of_rules,0,0,0}; +struct S6rtd_Cprt_fs_of_rules{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S6rtd_Cprt_fs_of_rules S6rt_Cprt_fs_of_rules = { + 1 + , + {// start of table + {(Set_tbl*)&LA1_Cprt_fs_of_rules,Cprt_fs_of_rules::rhs1_Rrules_} + }// end of reduce table +}; +yacco2::State S6_Cprt_fs_of_rules = //State's vectored into symbol: "Rrule_def" +{6 +,0,0,0,0,0,(Reduce_tbl*)&S6rt_Cprt_fs_of_rules,0,0,0}; |