diff options
Diffstat (limited to 'web/yacco2/compiler/grammars/xc_strtbl.cpp')
-rw-r--r-- | web/yacco2/compiler/grammars/xc_strtbl.cpp | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/web/yacco2/compiler/grammars/xc_strtbl.cpp b/web/yacco2/compiler/grammars/xc_strtbl.cpp new file mode 100644 index 0000000000..034327182b --- /dev/null +++ b/web/yacco2/compiler/grammars/xc_strtbl.cpp @@ -0,0 +1,87 @@ +/* + File: xc_strtbl.cpp + Date and Time: Fri Jan 30 18:55:28 2015 +*/ +#include "xc_str.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_xc_str;// grammar's ns +// first set terminals +// LR1_invisible_shift_operator +yacco2::UCHAR LA1_Cxc_str[] ={ +1 +,0,32 +}; +// LR1_eolr +yacco2::UCHAR LA2_Cxc_str[] ={ +1 +,0,4 +}; +extern yacco2::State S1_Cxc_str; +extern yacco2::State S2_Cxc_str; +extern yacco2::State S3_Cxc_str; +extern yacco2::State S4_Cxc_str; +struct S1std_Cxc_str{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[3]; +}; +S1std_Cxc_str S1st_Cxc_str = { + 3 + , + {// start of table + {42,(State*)&S2_Cxc_str} // shift sym: raw_dbl_quote + ,{569,(State*)&S1_Cxc_str} // accept sym: Rxc_str + ,{570,(State*)&S3_Cxc_str} // shift sym: Rquote + }// end of shift table +}; +yacco2::State S1_Cxc_str = //State's vectored into symbol: " No symbol" +{1 +,0,0,0,0,(Shift_tbl*)&S1st_Cxc_str,0,0,0,0}; +struct S2rtd_Cxc_str{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S2rtd_Cxc_str S2rt_Cxc_str = { + 1 + , + {// start of table + {(Set_tbl*)&LA1_Cxc_str,Cxc_str::rhs1_Rquote_} + }// end of reduce table +}; +yacco2::State S2_Cxc_str = //State's vectored into symbol: "\"" +{2 +,0,0,0,0,0,(Reduce_tbl*)&S2rt_Cxc_str,0,0,0}; +struct S3std_Cxc_str{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[1]; +}; +S3std_Cxc_str S3st_Cxc_str = { + 1 + , + {// start of table + {5,(State*)&S4_Cxc_str} // shift sym: LR1_invisible_shift_operator + }// end of shift table +}; +yacco2::Shift_entry S3ise_Cxc_str = {5,(State*)&S4_Cxc_str}; +yacco2::State S3_Cxc_str = //State's vectored into symbol: "Rquote" +{3 +,0,0,(Shift_entry*)&S3ise_Cxc_str +,0,(Shift_tbl*)&S3st_Cxc_str,0,0,0,0}; +struct S4rtd_Cxc_str{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S4rtd_Cxc_str S4rt_Cxc_str = { + 1 + , + {// start of table + {(Set_tbl*)&LA2_Cxc_str,Cxc_str::rhs1_Rxc_str_} + }// end of reduce table +}; +yacco2::State S4_Cxc_str = //State's vectored into symbol: "|.|" +{4 +,0,0,0,0,0,(Reduce_tbl*)&S4rt_Cxc_str,0,0,0}; |