summaryrefslogtreecommitdiff
path: root/test/racc/assets/digraph.y
blob: 17a034ee54d0cb3909f54a4f79ae2cb7299ef14d (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
26
27
28
29
# ? detect digraph bug

class P
  token A B C D
rule
  target : a b c d
  a      : A
         |
  b      : B
         |
  c      : C
         |
  d      : D
         |
end

---- inner

  def parse
    do_parse
  end

  def next_token
    [false, '$']
  end

---- footer

P.new.parse