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/assets/syntax.y

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

51 lines
620 B
Text
Raw Normal View History

2019-05-13 08:25:22 -04:00
#
# racc syntax checker
#
class M1::M2::ParserClass < S1::S2::SuperClass
token A
| B C
convert
A '5'
end
prechigh
left B
preclow
start target
expect 0
rule
target: A B C
{
print 'abc'
}
| B C A
| C B A
{
print 'cba'
}
| cont
2019-05-13 08:25:22 -04:00
cont : A c2 B c2 C
c2 : C C C C C
end
---- inner
junk code !!!!
kjaljlajrlaolanbla /// %%% (*((( token rule
akiurtlajluealjflaj @@@@ end end end end __END__
laieu2o879urkq96ga(Q#*&%Q#
#&lkji END
q395q?/// liutjqlkr7