summaryrefslogtreecommitdiff
path: root/test/racc/assets/normal.y
blob: 96ae352c828a0ba1db949857dcc0c5de1d0a89b2 (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

class Testp

  convert
    A '2'
    B '3'
  end

  prechigh
    left B
  preclow

rule

/* comment */
  target: A B C nonterminal { action "string" == /regexp/o
                              1 /= 3 }
        ;   # comment

  nonterminal: A '+' B  = A;

/* end */
end

---- driver

  # driver is old name