From d38ce800e6804d95778b0501bbcd11cdf469d755 Mon Sep 17 00:00:00 2001 From: Cory Mikida Date: Fri, 2 Feb 2018 17:21:46 -0600 Subject: [PATCH] Small fix to aid bootstrap testing in Leap --- dagrt/expression.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dagrt/expression.py b/dagrt/expression.py index 871cba5..41f5318 100644 --- a/dagrt/expression.py +++ b/dagrt/expression.py @@ -375,8 +375,9 @@ class _ExtendedParser(Parser): identifier += pstate.next_str_and_advance() pstate.expect(_greater) identifier += pstate.next_str_and_advance() - pstate.expect(_identifier) - identifier += pstate.next_str_and_advance() + if pstate.is_next(_identifier): + identifier += pstate.next_str_and_advance() + return primitives.Variable(identifier) else: return super(_ExtendedParser, self).parse_terminal(pstate) -- GitLab