Fixed infinite recursion when parsing complex BNF node

This commit is contained in:
2020-06-23 15:22:27 +02:00
parent 912455c343
commit 7310bc5522
28 changed files with 1082 additions and 276 deletions
@@ -173,6 +173,17 @@ class SheerkaExecute(BaseService):
return pi
def call_parsers(self, context, return_values):
"""
Call all the parsers, ordered by priority
Possible return value for a parser:
None : indicate that you do no need to care about the result
ParserResult with status False : Success
ParserResult with status False : failed to parse, but the result will be reused by other parsers
NotForMe (status is False) : Failed to parse. Do no reuse the result
:param context:
:param return_values:
:return:
"""
# return_values must be a list
if not isinstance(return_values, list):