daeisbae / AParser

Yet another programming language for educational purpose and simplicity
MIT License
0 stars 0 forks source link

Error in lexing negative number #60

Closed daeisbae closed 4 months ago

daeisbae commented 4 months ago

Problem

Demo

/AParser                                                                                                                                                                                ─╯
>>> -1
libc++abi: terminating due to uncaught exception of type UnexpectedTokenParsedException: Unexpected Operator: 'Operator( Value: '-' )' is not allowed
[1]    17509 abort      ./AParser

and

./AParser                                                                                                                                                                                ─╯
>>> set a = -1
libc++abi: terminating due to uncaught exception of type UnexpectedTokenParsedException: Unexpected Operator: 'Operator( Value: '-' )' is not allowed
[1]    17512 abort      ./AParser
daeisbae commented 4 months ago

Fixed in #61