1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/racc/assets/ifelse.y
2020-09-28 18:07:24 +09:00

14 lines
246 B
Text

class C::Parser
token tSOMETHING
rule
statement
: tSOMETHING
| 'if' statement 'then' statement
| 'if' statement 'then' statement 'else' statement
;
dummy
: tSOMETHING '+' tSOMETHING
| tSOMETHING '-' tSOMETHING
;