You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all: I really like parsec. It is solid work, but I encountered a problem. I really don't know what one can do about that in python but (at least on my machine) one can only compose ~200 parsers. I used python 3.6.2.
...
File "/nix/store/fikb92d9was1qg3h4lwnay70i2ayzzd4-python3.6-parsec-3.3/lib/python3.6/site-packages/parsec/__init__.py", line 57, in success
return Value(True, index, actual, None)
RecursionError: maximum recursion depth exceeded while calling a Python object
The text was updated successfully, but these errors were encountered:
I think the only for your problem is to increase the system's recursion limit, using sys.setrecursionlimit. You even will encounter the same problem in a trivial hand-written recursive decent parser when you stack the same parser (call the same function recursively) so many times.
The default recursion depth limit is 1000 and it is too small for specific applications.
First of all: I really like parsec. It is solid work, but I encountered a problem. I really don't know what one can do about that in python but (at least on my machine) one can only compose ~200 parsers. I used
python 3.6.2
.gives
The text was updated successfully, but these errors were encountered: