Handling recursive syntax using def
throws StackOverflowException
#116
Labels
bug
Something isn't working
def
throws StackOverflowException
#116
Parsing something like this —
In the above syntax,
FOO
can be wrapped any number of times inside a square bracket.The parser is implemented using the following code —
Failing Test: https://github.com/zio/zio-parser/pull/115/files
Update 1:
Using a
lazy val
instead of adef
works properly.The text was updated successfully, but these errors were encountered: