blitzmaxmods / packrat.parser

A Packrat parser for BlitzMaxNG
MIT License
0 stars 0 forks source link

Infinite Loop Issue #1

Open Scaremonger opened 11 months ago

Scaremonger commented 11 months ago

When using operators that return empty results (E*, &E and E?); an infinite loop can be created when placed inside a repeating pattern (Choice, ZeroOrMore)

Scaremonger commented 11 months ago

I have added a test file "tests/issue001_infinite-loop.bmx" with known examples.

Scaremonger commented 11 months ago

Added basic loop detection.