hare

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

commit cfeb5e2a92f48a5ad900af1312d95c9c818c4980
parent 326fb39fdeda4062dca9abcb268a1d8a56c1af04
Author: Drew DeVault <sir@cmpwn.com>
Date:   Fri, 16 Apr 2021 15:18:00 -0400

hare::parse: add defer placeholder to builtin

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

diff --git a/hare/parse/expr.ha b/hare/parse/expr.ha @@ -67,7 +67,7 @@ fn binarithm( fn builtin(lexer: *lex::lexer) (ast::expr | error) = { let tok = match (peek(lexer, ltok::ALLOC, ltok::APPEND, ltok::FREE, ltok::DELETE, ltok::ABORT, ltok::ASSERT, ltok::STATIC, - ltok::SIZE, ltok::LEN, ltok::OFFSET)?) { + ltok::SIZE, ltok::LEN, ltok::OFFSET, ltok::DEFER)?) { tok: lex::token => tok, void => return postfix(lexer, void), }; @@ -80,6 +80,7 @@ fn builtin(lexer: *lex::lexer) (ast::expr | error) = { ltok::ASSERT => abort(), ltok::STATIC => abort(), ltok::SIZE, ltok::LEN, ltok::OFFSET => abort(), + ltok::DEFER => abort(), * => abort(), // Invariant }; };