Fixed #32 : concept groups are not correctly updated
Fixed #35 : Refactor test helper class (CNC, CC, CIO) Fixed #36 : Concept values are not used when declared with variable expression Fixed #37 : Objects in memory lose their values are restart Fixed #38 : func(a=b, c) (which is not allowed) raise an exception
This commit is contained in:
@@ -168,15 +168,22 @@ class BaseParser:
|
||||
if expected_parser and parser_input.parser != expected_parser:
|
||||
return None
|
||||
|
||||
if len(parser_input.value) == 0:
|
||||
return None
|
||||
|
||||
for node in parser_input.value:
|
||||
from parsers.BaseNodeParser import LexerNode
|
||||
if not isinstance(node, LexerNode):
|
||||
from parsers.BaseNodeParser import LexerNode
|
||||
if isinstance(parser_input.value, list):
|
||||
if len(parser_input.value) == 0:
|
||||
return None
|
||||
|
||||
return parser_input.value
|
||||
for node in parser_input.value:
|
||||
if not isinstance(node, LexerNode):
|
||||
return None
|
||||
|
||||
return parser_input.value
|
||||
|
||||
else:
|
||||
if not isinstance(parser_input.value, LexerNode):
|
||||
return None
|
||||
|
||||
return [parser_input.value]
|
||||
|
||||
@staticmethod
|
||||
def get_tokens_boundaries(tokens):
|
||||
|
||||
Reference in New Issue
Block a user