mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
16 lines
122 B
Text
16 lines
122 B
Text
|
|
class A
|
|
rule
|
|
|
|
a: A c C expr;
|
|
|
|
b: A B; # useless
|
|
|
|
c: A;
|
|
c: A;
|
|
|
|
expr: expr '+' expr
|
|
expr: expr '-' expr
|
|
expr: NUMBER
|
|
|
|
end
|