update identical rule spec to use lookahead symbol

This commit is contained in:
Josh Holtrop 2021-09-06 20:18:17 -04:00
parent 5f7e548fe3
commit 850e639e3a

View File

@ -65,13 +65,13 @@ EOF
build_parser
end
it "generates a parser with duplicate rules" do
it "distinguishes between multiple identical rules with lookahead symbol" do
write_grammar <<EOF
token a
token b
Start: [R1] <<
Start: [R1 a] <<
>>
Start: [R2] <<
Start: [R2 b] <<
>>
R1: [a b] <<
>>