Commit 05148a2b authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[antlr] Sync condexp parser with new api of the grammar

parent 27a345d5
......@@ -2070,13 +2070,19 @@ class CTransition(object):
lexer = condexpLexer(reader)
parser = condexpParser(CommonTokenStream(lexer))
try:
return parser.sig_bool()
# sig_bool() returns a local context object;
# we just want the idents variable
return parser.sig_bool().idents
except Exception as e:
import traceback
print(traceback.format_exc())
LOGGER.error(
"CTransition::get_influencing_places: %s - %s",
"CTransition::get_influencing_places: for %s: %s - %s",
self.condition,
e.__class__.__name__,
e
)
return set()
def is_me(self, mox, moy, dstyle, w_coef, h_coef):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment