From e89625c2e9315088acf806822712a5fe1f2bf8b8 Mon Sep 17 00:00:00 2001 From: 0x4261756D <38735823+0x4261756D@users.noreply.github.com> Date: Tue, 19 Mar 2024 20:26:24 +0100 Subject: [PATCH] Throw on hex floats --- Tokenizer.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Tokenizer.cs b/Tokenizer.cs index 3bf618a..edc0169 100644 --- a/Tokenizer.cs +++ b/Tokenizer.cs @@ -958,6 +958,10 @@ class Tokenizer AppendDataIntHex(ch); state = State.HexNumber; } + else if(ch == '.') + { + throw new NotImplementedException($"{currentLocation}: Hex floats at are not implemented"); + } else { if(currentToken == null || currentToken.type == null) @@ -986,6 +990,10 @@ class Tokenizer currentToken!.type = TokenType.Numeral; AppendDataIntHex(ch); } + else if(ch == '.') + { + throw new NotImplementedException($"{currentLocation}: Hex floats at are not implemented"); + } else { if(currentToken == null || currentToken.type == null)