blob: 86296899b8444ae3eb6c08b61b7fbafa1a7a74b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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'
|