hare

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

commit db3a364664ba1652b4b0713408b80c93ad877830
parent d1986c5d017a318d589b0706c3839203a34e6cdf
Author: Sebastian <sebastian@sebsite.pw>
Date:   Tue, 17 Oct 2023 22:30:19 -0400

hare::lex: use top-level static assertion

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

Diffstat:
Mhare/lex/token.ha | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/hare/lex/token.ha b/hare/lex/token.ha @@ -282,8 +282,7 @@ const bmap: [_]str = [ "*=", ]; -// XXX: get rid of @test fn once top-level static assertions are supported -@test fn bmaplen() void = static assert(len(bmap) == ltok::LAST_BTOK: size + 1); +static assert(len(bmap) == ltok::LAST_BTOK: size + 1); // A token value, used for tokens such as '1337' (an integer). export type value = (str | rune | u64 | f64 | void);