summaryrefslogtreecommitdiff
path: root/web/yacco2/qa/rule4.dat
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /web/yacco2/qa/rule4.dat
Initial commit
Diffstat (limited to 'web/yacco2/qa/rule4.dat')
-rw-r--r--web/yacco2/qa/rule4.dat39
1 files changed, 39 insertions, 0 deletions
diff --git a/web/yacco2/qa/rule4.dat b/web/yacco2/qa/rule4.dat
new file mode 100644
index 0000000000..28f39234f1
--- /dev/null
+++ b/web/yacco2/qa/rule4.dat
@@ -0,0 +1,39 @@
+/*
+$echo file: rule4.dat
+$echo test: bad sub rule: missing ->
+$echo Error
+*/
+fsm (fsm-id "lr1_br1.lex",fsm-filename lr1_br1,fsm-namespace NS_lr1_br1
+ ,fsm-class Clr1_br1_rul_fsm
+ ,fsm-version "1.0",fsm-date "8-oct-96"
+ ,fsm-debug "true",fsm-comments "test out lr1")
+@"/yacco2/compiler/grammars/yacco2_T_includes.T"
+
+rules{
+Reol (){
+ -> Rdelimiters
+}
+
+Rdelimiters ()
+{
+ -> Rsubrule_def
+}
+
+Rsubrule_def AD AB(
+parallel-control-monitor{
+ arbitrator-code
+ int s(0);//cccccccc
+ ***
+ }
+){
+ -> x{
+ op
+ Csubrule_def* fsm = (Csubrule_def*)abs_parser()->fsm_tbl();
+ RSVP(fsm->subrule_def_)
+ ***
+ }
+ ***
+ - >
+}
+
+}// end of rules