diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /web/yacco2/qa/not_lr1_1.lex |
Initial commit
Diffstat (limited to 'web/yacco2/qa/not_lr1_1.lex')
-rw-r--r-- | web/yacco2/qa/not_lr1_1.lex | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/web/yacco2/qa/not_lr1_1.lex b/web/yacco2/qa/not_lr1_1.lex new file mode 100644 index 0000000000..996909ed14 --- /dev/null +++ b/web/yacco2/qa/not_lr1_1.lex @@ -0,0 +1,25 @@ +/* +$echo FILE: not_lr1_1.lex +$echo Error --- reduce / reduce conflict +*/ +/@ +@** |not_lr1_1| grammar.\fbreak + Test out a shift conflict on 2 reducing productions. +@/ +fsm + (fsm-id "not_lr1_1.lex",fsm-filename not_lr1_1,fsm-namespace NS_not_lr1_1 + ,fsm-class Cnot_lr1_1 + ,fsm-version "1.0",fsm-date "13-sep-97" + ,fsm-debug "true",fsm-comments "test out lr1") +@"/usr/local/yacco2/compiler/grammars/yacco2_T_includes.T" +rules +{ + Rnot_lr1_1(){ + -> RS1 eog + } + + RS1(){ + -> a + -> a + } +} // end of grammar |