First implementation of Debugger for SyaNodeParser
This commit is contained in:
@@ -1296,12 +1296,14 @@ class BnfNodeParser(BaseNodeParser):
|
||||
if not concepts:
|
||||
if debugger.is_enabled():
|
||||
debugger.debug_log(debug_prefix + ", no concept found.")
|
||||
|
||||
for concept_parser in not_locked:
|
||||
concept_parser.eat_unrecognized(token)
|
||||
continue
|
||||
|
||||
if debugger.is_enabled():
|
||||
debugger.debug_log(debug_prefix + f", concept(s) found={concepts}")
|
||||
|
||||
if len(concepts) == 1:
|
||||
for concept_parser in not_locked:
|
||||
concept_parser.eat_concept(concepts[0], token)
|
||||
|
||||
Reference in New Issue
Block a user