blob: 996909ed1427c3a159f14ae6e89f23ea67b8430a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
|