summaryrefslogtreecommitdiff
path: root/web/yacco2/qa/not_lr1_1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'web/yacco2/qa/not_lr1_1.cpp')
-rw-r--r--web/yacco2/qa/not_lr1_1.cpp59
1 files changed, 59 insertions, 0 deletions
diff --git a/web/yacco2/qa/not_lr1_1.cpp b/web/yacco2/qa/not_lr1_1.cpp
new file mode 100644
index 0000000000..bad5958a56
--- /dev/null
+++ b/web/yacco2/qa/not_lr1_1.cpp
@@ -0,0 +1,59 @@
+/*
+ File: not_lr1_1.cpp
+ Date and Time: Mon Oct 13 18:18:15 2014
+*/
+#include "not_lr1_1.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_not_lr1_1;// grammar's ns
+// first set terminals
+fsm_rules_reuse_table_type::fsm_rules_reuse_table_type(){
+ no_rules_entries_ = 2;
+ per_rule_s_table_[0] = new Per_rule_s_reuse_table();
+ per_rule_s_table_[1] = new Per_rule_s_reuse_table();
+}
+ Cnot_lr1_1::
+ Cnot_lr1_1()
+ :yacco2::CAbs_fsm
+ ("not_lr1_1.lex"
+ ,"1.0"
+ ,"13-sep-97"
+ ,true
+ ,"test out lr1"
+ ,"Mon Oct 13 18:18:15 2014 "
+ ,S1_Cnot_lr1_1){
+
+ }
+
+Cnot_lr1_1::~Cnot_lr1_1(){
+
+ for(int x = 0;x < 2;++x){
+ ///delete fsm_rules_reuse_table.per_rule_s_table_[x];
+ }
+}
+
+ bool Cnot_lr1_1::failed(){
+ return false;
+ }
+ void Cnot_lr1_1::op(){
+}
+int Cnot_lr1_1::rhs_to_rules_mapping_[4] = {
+ -1
+ ,0 // subrule 1 for rule 1
+ ,1 // subrule 2 for rule 2
+ ,1 // subrule 3 for rule 2
+};
+Rnot_lr1_1::Rnot_lr1_1(yacco2::Parser* P)
+ :CAbs_lr1_sym
+ ("Rnot_lr1_1",0,Cnot_lr1_1::R_Rnot_lr1_1_,P,false,false){
+}
+
+RS1::RS1(yacco2::Parser* P)
+ :CAbs_lr1_sym
+ ("RS1",0,Cnot_lr1_1::R_RS1_,P,false,false){
+}
+