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/start.y

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
195 B
Text
Raw Normal View History

2019-05-13 08:25:22 -04:00
class S
start st
rule
n: D { result = 'no' }
st : A B C n { result = 'ok' }
end
---- inner
def parse
do_parse
end
---- footer
S.new.parse == 'ok' or raise 'start stmt not worked'