repo.or.cz
/
ruby-80x24.org.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* 2022-01-18 [ci skip]
[ruby-80x24.org.git]
/
test
/
racc
/
start.y
blob
86296899b8444ae3eb6c08b61b7fbafa1a7a74b1
1
class S
2
3
start st
4
5
rule
6
7
n:
D
{
result
=
'no'
}
8
st
:
A B C n
{
result
=
'ok'
}
9
10
end
11
12
----
inner
13
14
def parse
15
do_parse
16
end
17
18
----
footer
19
20
S.new.parse
==
'ok'
or raise
'start stmt not worked'