* 2022-01-18 [ci skip]
[ruby-80x24.org.git] / test / racc / start.y
blob86296899b8444ae3eb6c08b61b7fbafa1a7a74b1
1 class S
3 start st
5 rule
7 n: D { result = 'no' }
8 st : A B C n { result = 'ok' }
10 end
12 ---- inner
14 def parse
15 do_parse
16 end
18 ---- footer
20 S.new.parse == 'ok' or raise 'start stmt not worked'