hare

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

commit 00b36bd06abd82c54b82108f9a0c4a0468fdd398
parent 39d1afc010b4eeb485cae03b982bd8d7612cc39f
Author: Sebastian <sebastian@sebsite.pw>
Date:   Fri, 29 Sep 2023 22:19:59 -0400

hare::parse: use objsel for vaarg/vaend operand

Signed-off-by: Sebastian <sebastian@sebsite.pw>

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

diff --git a/hare/parse/expr.ha b/hare/parse/expr.ha @@ -398,7 +398,7 @@ fn builtin(lexer: *lex::lexer) (ast::expr | error) = { case ltok::VAARG => want(lexer, ltok::VAARG)?; want(lexer, ltok::LPAREN)?; - const expr = alloc(expr(lexer)?); + const expr = alloc(objsel(lexer)?); want(lexer, ltok::RPAREN)?; return ast::expr { start = tok.2, @@ -408,7 +408,7 @@ fn builtin(lexer: *lex::lexer) (ast::expr | error) = { case ltok::VAEND => want(lexer, ltok::VAEND)?; want(lexer, ltok::LPAREN)?; - const expr = alloc(expr(lexer)?); + const expr = alloc(objsel(lexer)?); want(lexer, ltok::RPAREN)?; return ast::expr { start = tok.2,