summaryrefslogtreecommitdiff
path: root/web/yacco2/compiler/grammars/la_exprtbl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'web/yacco2/compiler/grammars/la_exprtbl.cpp')
-rw-r--r--web/yacco2/compiler/grammars/la_exprtbl.cpp285
1 files changed, 285 insertions, 0 deletions
diff --git a/web/yacco2/compiler/grammars/la_exprtbl.cpp b/web/yacco2/compiler/grammars/la_exprtbl.cpp
new file mode 100644
index 0000000000..7bb2cee77f
--- /dev/null
+++ b/web/yacco2/compiler/grammars/la_exprtbl.cpp
@@ -0,0 +1,285 @@
+/*
+ File: la_exprtbl.cpp
+ Date and Time: Fri Jan 30 18:55:13 2015
+*/
+#include "la_expr.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_la_expr;// grammar's ns
+// first set terminals
+// LR1_questionable_shift_operator
+// LR1_eog
+// raw_plus
+// raw_minus
+yacco2::UCHAR LA1_Cla_expr[] ={
+2
+,0,3
+,6,40
+};
+// LR1_eolr
+yacco2::UCHAR LA2_Cla_expr[] ={
+1
+,0,4
+};
+// LR1_all_shift_operator
+// T_in_stbl
+// rule_in_stbl
+yacco2::UCHAR LA3_Cla_expr[] ={
+2
+,0,64
+,43,5
+};
+extern yacco2::State S1_Cla_expr;
+extern yacco2::State S2_Cla_expr;
+extern yacco2::State S3_Cla_expr;
+extern yacco2::State S4_Cla_expr;
+extern yacco2::State S5_Cla_expr;
+extern yacco2::State S6_Cla_expr;
+extern yacco2::State S7_Cla_expr;
+extern yacco2::State S8_Cla_expr;
+extern yacco2::State S9_Cla_expr;
+extern yacco2::State S10_Cla_expr;
+extern yacco2::State S11_Cla_expr;
+extern yacco2::State S12_Cla_expr;
+extern yacco2::State S13_Cla_expr;
+extern yacco2::State S14_Cla_expr;
+extern yacco2::State S15_Cla_expr;
+struct S1std_Cla_expr{
+ yacco2::USINT no_entries_;
+ yacco2::Shift_entry shift_entries_[6];
+};
+S1std_Cla_expr S1st_Cla_expr = {
+ 6
+ ,
+ {// start of table
+ {6,(State*)&S2_Cla_expr} // shift sym: LR1_all_shift_operator
+ ,{344,(State*)&S3_Cla_expr} // shift sym: T_in_stbl
+ ,{346,(State*)&S4_Cla_expr} // shift sym: rule_in_stbl
+ ,{569,(State*)&S1_Cla_expr} // accept sym: Rla_expr
+ ,{570,(State*)&S5_Cla_expr} // shift sym: Re
+ ,{572,(State*)&S15_Cla_expr} // shift sym: Rt
+ }// end of shift table
+};
+yacco2::Shift_entry S1ase_Cla_expr = {6,(State*)&S2_Cla_expr};
+yacco2::State S1_Cla_expr = //State's vectored into symbol: " No symbol"
+{1
+,0,(Shift_entry*)&S1ase_Cla_expr
+,0,0,(Shift_tbl*)&S1st_Cla_expr,0,0,0,0};
+struct S2rtd_Cla_expr{
+ yacco2::USINT no_entries_;
+ yacco2::Reduce_entry reduce_entries_[1];
+};
+S2rtd_Cla_expr S2rt_Cla_expr = {
+ 1
+ ,
+ {// start of table
+ {(Set_tbl*)&LA1_Cla_expr,Cla_expr::rhs3_Rt_}
+ }// end of reduce table
+};
+yacco2::State S2_Cla_expr = //State's vectored into symbol: "|+|"
+{2
+,0,0,0,0,0,(Reduce_tbl*)&S2rt_Cla_expr,0,0,0};
+struct S3rtd_Cla_expr{
+ yacco2::USINT no_entries_;
+ yacco2::Reduce_entry reduce_entries_[1];
+};
+S3rtd_Cla_expr S3rt_Cla_expr = {
+ 1
+ ,
+ {// start of table
+ {(Set_tbl*)&LA1_Cla_expr,Cla_expr::rhs1_Rt_}
+ }// end of reduce table
+};
+yacco2::State S3_Cla_expr = //State's vectored into symbol: "T-in-stbl"
+{3
+,0,0,0,0,0,(Reduce_tbl*)&S3rt_Cla_expr,0,0,0};
+struct S4rtd_Cla_expr{
+ yacco2::USINT no_entries_;
+ yacco2::Reduce_entry reduce_entries_[1];
+};
+S4rtd_Cla_expr S4rt_Cla_expr = {
+ 1
+ ,
+ {// start of table
+ {(Set_tbl*)&LA1_Cla_expr,Cla_expr::rhs2_Rt_}
+ }// end of reduce table
+};
+yacco2::State S4_Cla_expr = //State's vectored into symbol: "rule-in-stbl"
+{4
+,0,0,0,0,0,(Reduce_tbl*)&S4rt_Cla_expr,0,0,0};
+struct S5std_Cla_expr{
+ yacco2::USINT no_entries_;
+ yacco2::Shift_entry shift_entries_[7];
+};
+S5std_Cla_expr S5st_Cla_expr = {
+ 7
+ ,
+ {// start of table
+ {0,(State*)&S6_Cla_expr} // shift sym: LR1_questionable_shift_operator
+ ,{1,(State*)&S7_Cla_expr} // shift sym: LR1_eog
+ ,{51,(State*)&S8_Cla_expr} // shift sym: raw_plus
+ ,{53,(State*)&S9_Cla_expr} // shift sym: raw_minus
+ ,{571,(State*)&S10_Cla_expr} // shift sym: Rerr_bad_oper
+ ,{573,(State*)&S11_Cla_expr} // shift sym: Rminus
+ ,{574,(State*)&S13_Cla_expr} // shift sym: Rplus
+ }// end of shift table
+};
+yacco2::Shift_entry S5qse_Cla_expr = {0,(State*)&S6_Cla_expr};
+yacco2::State S5_Cla_expr = //State's vectored into symbol: "Re"
+{5
+,0,0,0,0,(Shift_tbl*)&S5st_Cla_expr,0,0,0,(Shift_entry*)&S5qse_Cla_expr
+};
+struct S6rtd_Cla_expr{
+ yacco2::USINT no_entries_;
+ yacco2::Reduce_entry reduce_entries_[1];
+};
+S6rtd_Cla_expr S6rt_Cla_expr = {
+ 1
+ ,
+ {// start of table
+ {(Set_tbl*)&LA1_Cla_expr,Cla_expr::rhs1_Rerr_bad_oper_}
+ }// end of reduce table
+};
+yacco2::State S6_Cla_expr = //State's vectored into symbol: "|?|"
+{6
+,0,0,0,0,0,(Reduce_tbl*)&S6rt_Cla_expr,0,0,0};
+struct S7rtd_Cla_expr{
+ yacco2::USINT no_entries_;
+ yacco2::Reduce_entry reduce_entries_[1];
+};
+S7rtd_Cla_expr S7rt_Cla_expr = {
+ 1
+ ,
+ {// start of table
+ {(Set_tbl*)&LA2_Cla_expr,Cla_expr::rhs1_Rla_expr_}
+ }// end of reduce table
+};
+yacco2::State S7_Cla_expr = //State's vectored into symbol: "eog"
+{7
+,0,0,0,0,0,(Reduce_tbl*)&S7rt_Cla_expr,0,0,0};
+struct S8rtd_Cla_expr{
+ yacco2::USINT no_entries_;
+ yacco2::Reduce_entry reduce_entries_[1];
+};
+S8rtd_Cla_expr S8rt_Cla_expr = {
+ 1
+ ,
+ {// start of table
+ {(Set_tbl*)&LA3_Cla_expr,Cla_expr::rhs1_Rplus_}
+ }// end of reduce table
+};
+yacco2::State S8_Cla_expr = //State's vectored into symbol: "+"
+{8
+,0,0,0,0,0,(Reduce_tbl*)&S8rt_Cla_expr,0,0,0};
+struct S9rtd_Cla_expr{
+ yacco2::USINT no_entries_;
+ yacco2::Reduce_entry reduce_entries_[1];
+};
+S9rtd_Cla_expr S9rt_Cla_expr = {
+ 1
+ ,
+ {// start of table
+ {(Set_tbl*)&LA3_Cla_expr,Cla_expr::rhs1_Rminus_}
+ }// end of reduce table
+};
+yacco2::State S9_Cla_expr = //State's vectored into symbol: "-"
+{9
+,0,0,0,0,0,(Reduce_tbl*)&S9rt_Cla_expr,0,0,0};
+struct S10rtd_Cla_expr{
+ yacco2::USINT no_entries_;
+ yacco2::Reduce_entry reduce_entries_[1];
+};
+S10rtd_Cla_expr S10rt_Cla_expr = {
+ 1
+ ,
+ {// start of table
+ {(Set_tbl*)&LA1_Cla_expr,Cla_expr::rhs3_Re_}
+ }// end of reduce table
+};
+yacco2::State S10_Cla_expr = //State's vectored into symbol: "Rerr_bad_oper"
+{10
+,0,0,0,0,0,(Reduce_tbl*)&S10rt_Cla_expr,0,0,0};
+struct S11std_Cla_expr{
+ yacco2::USINT no_entries_;
+ yacco2::Shift_entry shift_entries_[4];
+};
+S11std_Cla_expr S11st_Cla_expr = {
+ 4
+ ,
+ {// start of table
+ {6,(State*)&S2_Cla_expr} // shift sym: LR1_all_shift_operator
+ ,{344,(State*)&S3_Cla_expr} // shift sym: T_in_stbl
+ ,{346,(State*)&S4_Cla_expr} // shift sym: rule_in_stbl
+ ,{572,(State*)&S12_Cla_expr} // shift sym: Rt
+ }// end of shift table
+};
+yacco2::Shift_entry S11ase_Cla_expr = {6,(State*)&S2_Cla_expr};
+yacco2::State S11_Cla_expr = //State's vectored into symbol: "Rminus"
+{11
+,0,(Shift_entry*)&S11ase_Cla_expr
+,0,0,(Shift_tbl*)&S11st_Cla_expr,0,0,0,0};
+struct S12rtd_Cla_expr{
+ yacco2::USINT no_entries_;
+ yacco2::Reduce_entry reduce_entries_[1];
+};
+S12rtd_Cla_expr S12rt_Cla_expr = {
+ 1
+ ,
+ {// start of table
+ {(Set_tbl*)&LA1_Cla_expr,Cla_expr::rhs2_Re_}
+ }// end of reduce table
+};
+yacco2::State S12_Cla_expr = //State's vectored into symbol: "Rt"
+{12
+,0,0,0,0,0,(Reduce_tbl*)&S12rt_Cla_expr,0,0,0};
+struct S13std_Cla_expr{
+ yacco2::USINT no_entries_;
+ yacco2::Shift_entry shift_entries_[4];
+};
+S13std_Cla_expr S13st_Cla_expr = {
+ 4
+ ,
+ {// start of table
+ {6,(State*)&S2_Cla_expr} // shift sym: LR1_all_shift_operator
+ ,{344,(State*)&S3_Cla_expr} // shift sym: T_in_stbl
+ ,{346,(State*)&S4_Cla_expr} // shift sym: rule_in_stbl
+ ,{572,(State*)&S14_Cla_expr} // shift sym: Rt
+ }// end of shift table
+};
+yacco2::Shift_entry S13ase_Cla_expr = {6,(State*)&S2_Cla_expr};
+yacco2::State S13_Cla_expr = //State's vectored into symbol: "Rplus"
+{13
+,0,(Shift_entry*)&S13ase_Cla_expr
+,0,0,(Shift_tbl*)&S13st_Cla_expr,0,0,0,0};
+struct S14rtd_Cla_expr{
+ yacco2::USINT no_entries_;
+ yacco2::Reduce_entry reduce_entries_[1];
+};
+S14rtd_Cla_expr S14rt_Cla_expr = {
+ 1
+ ,
+ {// start of table
+ {(Set_tbl*)&LA1_Cla_expr,Cla_expr::rhs1_Re_}
+ }// end of reduce table
+};
+yacco2::State S14_Cla_expr = //State's vectored into symbol: "Rt"
+{14
+,0,0,0,0,0,(Reduce_tbl*)&S14rt_Cla_expr,0,0,0};
+struct S15rtd_Cla_expr{
+ yacco2::USINT no_entries_;
+ yacco2::Reduce_entry reduce_entries_[1];
+};
+S15rtd_Cla_expr S15rt_Cla_expr = {
+ 1
+ ,
+ {// start of table
+ {(Set_tbl*)&LA1_Cla_expr,Cla_expr::rhs4_Re_}
+ }// end of reduce table
+};
+yacco2::State S15_Cla_expr = //State's vectored into symbol: "Rt"
+{15
+,0,0,0,0,0,(Reduce_tbl*)&S15rt_Cla_expr,0,0,0};