Fixed parser test case
The octal literals with 9 in them were causing the parser to fail.
This commit is contained in:
parent
ed44795664
commit
32e5b0ce98
@ -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)
|
||||
|
@ -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
|
||||
---
|
||||
|
Reference in New Issue
Block a user