Fixed parser test case

The octal literals with 9 in them were causing the parser to fail.
This commit is contained in:
Sasha Koshka 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)

View File

@ -15,15 +15,15 @@ func ro bMethod
func ro cBasicPhrases
---
fn 329 983 09
[fn 329 983 09]
fn 329 983 07
[fn 329 983 07]
[fn
329
983
091]
071]
fn [gn
329 983
091] 123
071] 123
func ro dArgumentTypes
---
@ -74,7 +74,7 @@ func ro fReturnDirection
[fn
329
983
091] -> thing:Int err
071] -> thing:Int err
func ro gControlFlow
---