Fixed parser test case

The octal literals with 9 in them were causing the parser to fail.
This commit is contained in:
2022-09-02 01:40:33 -04:00
parent ed44795664
commit 32e5b0ce98
2 changed files with 6 additions and 6 deletions

View File

@@ -36,7 +36,7 @@ func (lexer *LexingOperation) tokenizeNumberBeginning (negative bool) (err error
isFloat, amountRead,
err = lexer.tokenizeNumber(10)
} else if lexer.char >= '0' && lexer.char <= '8' {
} else if lexer.char >= '0' && lexer.char <= '7' {
intNumber, floatNumber,
isFloat, amountRead,
err = lexer.tokenizeNumber(8)