hare

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

commit 65c30a82133df4643b92e0a0e50549f71720b6a3
parent 14e4c0d2fbbad560031532901a7d0f6aff22cf5a
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Wed, 27 Apr 2022 20:44:48 +0000

hare::lex: implement labels in tokstr

Fixes: https://todo.sr.ht/~sircmpwn/hare/662
Signed-off-by: Eyal Sawady <ecs@d2evs.net>

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

diff --git a/hare/lex/token.ha b/hare/lex/token.ha @@ -338,7 +338,8 @@ export fn tokstr(tok: token) const str = { case ltok::NAME => return tok.1 as str; case ltok::LABEL => - abort(); // TODO + // XXX: strings::concat(":", tok.1 as str)? + return "label"; case ltok::EOF => return "EOF"; case =>