diff options
Diffstat (limited to 'web/yacco2/compiler/grammars/lint_ballstbl.cpp')
-rw-r--r-- | web/yacco2/compiler/grammars/lint_ballstbl.cpp | 218 |
1 files changed, 218 insertions, 0 deletions
diff --git a/web/yacco2/compiler/grammars/lint_ballstbl.cpp b/web/yacco2/compiler/grammars/lint_ballstbl.cpp new file mode 100644 index 0000000000..c2b3fd59de --- /dev/null +++ b/web/yacco2/compiler/grammars/lint_ballstbl.cpp @@ -0,0 +1,218 @@ +/* + File: lint_ballstbl.cpp + Date and Time: Fri Jan 30 18:55:15 2015 +*/ +#include "lint_balls.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_lint_balls;// grammar's ns +// first set terminals +// LR1_reduce_operator +// LR1_invisible_shift_operator +yacco2::UCHAR LA1_Clint_balls[] ={ +1 +,0,48 +}; +// LR1_eolr +yacco2::UCHAR LA2_Clint_balls[] ={ +1 +,0,4 +}; +extern yacco2::State S1_Clint_balls; +extern yacco2::State S2_Clint_balls; +struct S2ttd_Clint_balls{ + yacco2::USINT no_entries_; + yacco2::Type_pp_fnct_ptr ar_fnct_ptr_; + yacco2::ULINT (*thd_id_bit_map_ptr__)[]; + yacco2::Thread_entry* thread_entries_[3]; +}; +S2ttd_Clint_balls S2tt_Clint_balls = { + 3 // no of threads + ,0 //AR_rulename or 0 + ,0// ptr to thread id bit map + ,(yacco2::Thread_entry*)&ITH_eol + ,(yacco2::Thread_entry*)&ITH_c_comments + ,(yacco2::Thread_entry*)&ITH_ws +}; +extern yacco2::State S3_Clint_balls; +extern yacco2::State S4_Clint_balls; +extern yacco2::State S5_Clint_balls; +extern yacco2::State S6_Clint_balls; +extern yacco2::State S7_Clint_balls; +extern yacco2::State S8_Clint_balls; +extern yacco2::State S9_Clint_balls; +extern yacco2::State S10_Clint_balls; +extern yacco2::State S11_Clint_balls; +struct S1std_Clint_balls{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[5]; +}; +S1std_Clint_balls S1st_Clint_balls = { + 5 + , + {// start of table + {3,(State*)&S2_Clint_balls} // shift sym: LR1_parallel_operator + ,{569,(State*)&S1_Clint_balls} // accept sym: Rlint_balls + ,{570,(State*)&S7_Clint_balls} // shift sym: Rlint + ,{571,(State*)&S8_Clint_balls} // shift sym: Rfluffs + ,{572,(State*)&S11_Clint_balls} // shift sym: Rfluff + }// end of shift table +}; +yacco2::Shift_entry S1pse_Clint_balls = {3,(State*)&S2_Clint_balls}; +yacco2::State S1_Clint_balls = //State's vectored into symbol: " No symbol" +{1 +,(Shift_entry*)&S1pse_Clint_balls,0,0,0,(Shift_tbl*)&S1st_Clint_balls,0,(State_s_thread_tbl*)&S2tt_Clint_balls,0,0}; +struct S2std_Clint_balls{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[4]; +}; +S2std_Clint_balls S2st_Clint_balls = { + 4 + , + {// start of table + {0,(State*)&S3_Clint_balls} // shift sym: LR1_questionable_shift_operator + ,{268,(State*)&S4_Clint_balls} // shift sym: T_eol + ,{271,(State*)&S5_Clint_balls} // shift sym: T_comment + ,{272,(State*)&S6_Clint_balls} // shift sym: T_ws + }// end of shift table +}; +yacco2::Shift_entry S2qse_Clint_balls = {0,(State*)&S3_Clint_balls}; +yacco2::State S2_Clint_balls = //State's vectored into symbol: "|||" +{2 +,0,0,0,0,(Shift_tbl*)&S2st_Clint_balls,0,0,0,(Shift_entry*)&S2qse_Clint_balls +}; +struct S3rtd_Clint_balls{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S3rtd_Clint_balls S3rt_Clint_balls = { + 1 + , + {// start of table + {(Set_tbl*)&LA1_Clint_balls,Clint_balls::rhs3_Rfluff_} + }// end of reduce table +}; +yacco2::State S3_Clint_balls = //State's vectored into symbol: "|?|" +{3 +,0,0,0,0,0,(Reduce_tbl*)&S3rt_Clint_balls,0,0,0}; +struct S4rtd_Clint_balls{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S4rtd_Clint_balls S4rt_Clint_balls = { + 1 + , + {// start of table + {(Set_tbl*)&LA1_Clint_balls,Clint_balls::rhs4_Rfluff_} + }// end of reduce table +}; +yacco2::State S4_Clint_balls = //State's vectored into symbol: "eol" +{4 +,0,0,0,0,0,(Reduce_tbl*)&S4rt_Clint_balls,0,0,0}; +struct S5rtd_Clint_balls{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S5rtd_Clint_balls S5rt_Clint_balls = { + 1 + , + {// start of table + {(Set_tbl*)&LA1_Clint_balls,Clint_balls::rhs2_Rfluff_} + }// end of reduce table +}; +yacco2::State S5_Clint_balls = //State's vectored into symbol: "comment" +{5 +,0,0,0,0,0,(Reduce_tbl*)&S5rt_Clint_balls,0,0,0}; +struct S6rtd_Clint_balls{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S6rtd_Clint_balls S6rt_Clint_balls = { + 1 + , + {// start of table + {(Set_tbl*)&LA1_Clint_balls,Clint_balls::rhs1_Rfluff_} + }// end of reduce table +}; +yacco2::State S6_Clint_balls = //State's vectored into symbol: "ws" +{6 +,0,0,0,0,0,(Reduce_tbl*)&S6rt_Clint_balls,0,0,0}; +struct S7rtd_Clint_balls{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S7rtd_Clint_balls S7rt_Clint_balls = { + 1 + , + {// start of table + {(Set_tbl*)&LA2_Clint_balls,Clint_balls::rhs1_Rlint_balls_} + }// end of reduce table +}; +yacco2::State S7_Clint_balls = //State's vectored into symbol: "Rlint" +{7 +,0,0,0,0,0,(Reduce_tbl*)&S7rt_Clint_balls,0,0,0}; +struct S8std_Clint_balls{ + yacco2::USINT no_entries_; + yacco2::Shift_entry shift_entries_[3]; +}; +S8std_Clint_balls S8st_Clint_balls = { + 3 + , + {// start of table + {3,(State*)&S2_Clint_balls} // shift sym: LR1_parallel_operator + ,{5,(State*)&S9_Clint_balls} // shift sym: LR1_invisible_shift_operator + ,{572,(State*)&S10_Clint_balls} // shift sym: Rfluff + }// end of shift table +}; +yacco2::Shift_entry S8pse_Clint_balls = {3,(State*)&S2_Clint_balls}; +yacco2::Shift_entry S8ise_Clint_balls = {5,(State*)&S9_Clint_balls}; +yacco2::State S8_Clint_balls = //State's vectored into symbol: "Rfluffs" +{8 +,(Shift_entry*)&S8pse_Clint_balls,0,(Shift_entry*)&S8ise_Clint_balls +,0,(Shift_tbl*)&S8st_Clint_balls,0,(State_s_thread_tbl*)&S2tt_Clint_balls,0,0}; +struct S9rtd_Clint_balls{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S9rtd_Clint_balls S9rt_Clint_balls = { + 1 + , + {// start of table + {(Set_tbl*)&LA2_Clint_balls,Clint_balls::rhs1_Rlint_} + }// end of reduce table +}; +yacco2::State S9_Clint_balls = //State's vectored into symbol: "|.|" +{9 +,0,0,0,0,0,(Reduce_tbl*)&S9rt_Clint_balls,0,0,0}; +struct S10rtd_Clint_balls{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S10rtd_Clint_balls S10rt_Clint_balls = { + 1 + , + {// start of table + {(Set_tbl*)&LA1_Clint_balls,Clint_balls::rhs2_Rfluffs_} + }// end of reduce table +}; +yacco2::State S10_Clint_balls = //State's vectored into symbol: "Rfluff" +{10 +,0,0,0,0,0,(Reduce_tbl*)&S10rt_Clint_balls,0,0,0}; +struct S11rtd_Clint_balls{ + yacco2::USINT no_entries_; + yacco2::Reduce_entry reduce_entries_[1]; +}; +S11rtd_Clint_balls S11rt_Clint_balls = { + 1 + , + {// start of table + {(Set_tbl*)&LA1_Clint_balls,Clint_balls::rhs1_Rfluffs_} + }// end of reduce table +}; +yacco2::State S11_Clint_balls = //State's vectored into symbol: "Rfluff" +{11 +,0,0,0,0,0,(Reduce_tbl*)&S11rt_Clint_balls,0,0,0}; |