warden-protocol / wardenprotocol

Monorepo for the Warden Protocol.
https://wardenprotocol.org
Apache License 2.0
1.1k stars 107 forks source link

shield: Correctly parse negative numbers #328

Closed Pitasi closed 4 months ago

Pitasi commented 4 months ago

After #260 we'll be able to have negative numbers as result of math operations, but we aren't able to parse negative integer literals.

Fix the lexer to include the - sign in front of numbers in integers tokens. Add unit tests.