From 9712c582edd519dbbcda382b0f33b35cae94d307 Mon Sep 17 00:00:00 2001 From: Alex Kuzmin Date: Wed, 28 Aug 2024 13:11:14 +0800 Subject: [PATCH] Move call grammar declaration --- src/parser/chiquito.lalrpop | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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,