diff --git a/src/parser/chiquito.lalrpop b/src/parser/chiquito.lalrpop index e05882f2..36b50a3c 100644 --- a/src/parser/chiquito.lalrpop +++ b/src/parser/chiquito.lalrpop @@ -116,10 +116,6 @@ HyperTransition: Statement = { "<==" "->" => build_hyper_transition(dsym_factory.create(l,r), ids, call, st), } -Call: Expression = { - "(" ")" => Expression::Call(dsym_factory.create(l,r), fun, es), -} - ParseSignalDecl: Statement = { "signal" => Statement::SignalDecl(dsym_factory.create(l,r), ids), } @@ -205,6 +201,10 @@ ParsePrefix: Expr = { ExpressionTerm } +Call: Expr = { + "(" ")" => Expression::Call(dsym_factory.create(l,r), fun, es), +} + ExpressionTerm: Expr = { => build_query(id, dsym_factory.create(l,r)), => lit,