File: reduce_conflict.jison

package info (click to toggle)
node-jison 0.4.17%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 344 kB
  • sloc: javascript: 1,923; yacc: 32; makefile: 23; sh: 1
file content (23 lines) | stat: -rw-r--r-- 181 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

/* description: Produces a reduce-reduce conflict unless using LR(1). */


%start S

%%

S
    : a A c
    | a B d
    | b A d
    | b B c
    ;

A
    : z
    ;

B
    : z
    ;