mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
30 lines
283 B
Text
30 lines
283 B
Text
|
# ? detect digraph bug
|
||
|
|
||
|
class P
|
||
|
token A B C D
|
||
|
rule
|
||
|
target : a b c d
|
||
|
a : A
|
||
|
|
|
||
|
b : B
|
||
|
|
|
||
|
c : C
|
||
|
|
|
||
|
d : D
|
||
|
|
|
||
|
end
|
||
|
|
||
|
---- inner
|
||
|
|
||
|
def parse
|
||
|
do_parse
|
||
|
end
|
||
|
|
||
|
def next_token
|
||
|
[false, '$']
|
||
|
end
|
||
|
|
||
|
---- footer
|
||
|
|
||
|
P.new.parse
|