yhirose / cpp-peglib

A single file C++ header-only PEG (Parsing Expression Grammars) library
MIT License
884 stars 112 forks source link

Infinite loop detector. Fix #85 #86

Closed yhirose closed 4 years ago

yhirose commented 4 years ago

This PR fixed the infinite loop bug that #76 reported in a different approach. Instead of detecting an infinite loop at running a parser, it catches the error when making a parser.