hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 48d467b1bec34d91d50a5ddaa7e9b7b699d638ea
parent 7e4d07553ab83ae3e9ebbe40004860a9da1659c4
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Thu,  2 Sep 2021 04:07:58 +0000

hare::parse::append_expr: drop *unary-expression form

Signed-off-by: Eyal Sawady <ecs@d2evs.net>

Diffstat:
Mhare/parse/expr.ha | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/hare/parse/expr.ha b/hare/parse/expr.ha @@ -162,9 +162,7 @@ fn append_expr(lexer: *lex::lexer) (ast::expr | error) = { const tok = want(lexer, ltok::APPEND)?; want(lexer, ltok::LPAREN)?; - const object = - if (try(lexer, ltok::TIMES)? is lex::token) unarithm(lexer)? - else objsel(lexer)?; + const object = objsel(lexer)?; want(lexer, ltok::COMMA)?; let variadic: nullable *ast::expr = null;