peggyjs / peggy

Peggy: Parser generator for JavaScript
https://peggyjs.org/
MIT License
914 stars 65 forks source link

Overload #543

Closed hildjj closed 3 weeks ago

hildjj commented 3 weeks ago

Further tweak to #538 to fix #477.

Add a final overload to parse that includes the union of all possible types. This allows passing in a startRule value of type StartRules, in addition to just a constant string.