RecursionError: maximum recursion depth exceeded lark 0.6.0
See original GitHub issueHi,
I tried to run my program to parse a text with my grammar (which you can find in issue #175 ) with lark 0.6.0, and I get this error :
File "/home/venvpypy3/site-packages/lark/visitors.py", line 44, in _transform_tree
children = list(self._transform_children(tree.children))
File "/home/venvpypy3/site-packages/lark/visitors.py", line 39, in _transform_children
yield self._transform_tree(c) if isinstance(c, Tree) else c
File "/home/venvpypy3/site-packages/lark/visitors.py", line 43, in _transform_tree
def _transform_tree(self, tree):
RecursionError: maximum recursion depth exceeded
The line 44 and 39 are repeated some hundred of times before this.
The grammar used to work with lark 0.5.6 (as you still can see in issue #175 ).
Any ideas why this is happening ?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
maximum recursion depth exceeded while using lark in ...
RecursionError : maximum recursion depth exceeded. I'm using lark for the first time. python · parsing · compiler-construction · lark-parser.
Read more >Maximum recursion depth exceeded when report success
RecursionError : maximum recursion depth exceeded. ERROR:pika.callback:Calling <bound method Connection.
Read more >maximum recursion depth exceeded while calling a Python ...
In this article, we shall be looking into one such recursionerror: maximum recursion depth exceeded while calling a Python object.
Read more >maximum recursion depth exceeded in comparison
Recursion error : maximum recursion depth exceeded in comparison This can happen with very large or deeply nested source files. You can carefully...
Read more >Python RecursionError: Maximum Recursion Depth Exceeded ...
RecursionError : Maximum Recursion Depth Exceeded in Comparison · What is the Recursion Limit in Python? · How to Catch a Python Recursion...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes it worked well, thanks.
I’m closing this issue as it’s resolved.
You’re right, thanks for bringing this to my attention.
I pushed a fix to master. Let me know if it helps.