hare

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

commit 5500c505e2b6cd76cd7b7d28e306cfc1d0b2bed7
parent 41554c8429bd34efdd885c163bff8590205df604
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Fri,  7 May 2021 13:06:59 -0400

hare::lex: fix float literals

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

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

diff --git a/hare/lex/lex.ha b/hare/lex/lex.ha @@ -467,6 +467,7 @@ fn lex_literal(lex: *lexer, loc: location) (token | error) = { }; val; }, + val: f64 => val, strconv::invalid => abort(), // Shouldn't be lexed in strconv::overflow => return syntaxerr(loc, "overflow in exponent"),