fix generator hang when state transition cycle is present - close #20
This commit is contained in:
1 parent
5b2cbe53e6
commit
918dc7b2bb
3 files changed
+29
-5
No files matched your search
@@ -851,6 +851,20 @@ EOF
|
||||
"R",
|
||||
])
|
||||
end
|
||||
|
||||
it "handles when an item set leads to itself" do
|
||||
write_grammar <<EOF
|
||||
token one;
|
||||
token two;
|
||||
|
||||
Start -> Opt one Start;
|
||||
Start -> ;
|
||||
|
||||
Opt -> two;
|
||||
Opt -> ;
|
||||
EOF
|
||||
build_parser(language: language)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user