From abd1c75c4aa70a83884e0509820dff8a6e51430c Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Mon, 31 May 2021 19:14:33 +0000 Subject: stage1: disallow 1.e9 and 0x1.p9 as float literals --- src/stage1/tokenizer.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/stage1/tokenizer.cpp') diff --git a/src/stage1/tokenizer.cpp b/src/stage1/tokenizer.cpp index 4550f32e8c..f10579c966 100644 --- a/src/stage1/tokenizer.cpp +++ b/src/stage1/tokenizer.cpp @@ -1286,10 +1286,6 @@ void tokenize(const char *source, Tokenization *out) { t.column -= 1; t.state = TokenizeState_start; continue; - case 'e': - case 'E': - t.state = TokenizeState_float_exponent_unsigned; - break; case DIGIT: t.state = TokenizeState_float_fraction_dec; break; @@ -1308,10 +1304,6 @@ void tokenize(const char *source, Tokenization *out) { t.column -= 1; t.state = TokenizeState_start; continue; - case 'p': - case 'P': - t.state = TokenizeState_float_exponent_unsigned; - break; case HEXDIGIT: t.out->ids.last() = TokenIdFloatLiteral; t.state = TokenizeState_float_fraction_hex; -- cgit v1.2.3