update identical rule spec to use lookahead symbol
This commit is contained in:
parent
5f7e548fe3
commit
850e639e3a
@ -65,13 +65,13 @@ EOF
|
|||||||
build_parser
|
build_parser
|
||||||
end
|
end
|
||||||
|
|
||||||
it "generates a parser with duplicate rules" do
|
it "distinguishes between multiple identical rules with lookahead symbol" do
|
||||||
write_grammar <<EOF
|
write_grammar <<EOF
|
||||||
token a
|
token a
|
||||||
token b
|
token b
|
||||||
Start: [R1] <<
|
Start: [R1 a] <<
|
||||||
>>
|
>>
|
||||||
Start: [R2] <<
|
Start: [R2 b] <<
|
||||||
>>
|
>>
|
||||||
R1: [a b] <<
|
R1: [a b] <<
|
||||||
>>
|
>>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user