ruby/test/racc/start.y

21 строка
195 B
Plaintext

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'