Refactored NumberUnit and FunctionDefinition. Added OctalNumber. Fixed number followed by identifier with no whitespace.

This commit is contained in:
Matheus Aguiar
2023-03-24 16:19:33 -03:00
parent 2ca349c69a
commit 0158de60be
11 changed files with 75 additions and 6 deletions
@@ -0,0 +1,5 @@
contract C {
uint x = 0x1000abcdefgh;
}
// ----
// ParserError 8936: (26-38): Identifier-start is not allowed at end of a number.
@@ -0,0 +1,5 @@
contract C {
uint y = 01gwei;
}
// ----
// ParserError 8936: (26-27): Octal numbers not allowed.
@@ -0,0 +1,5 @@
contract C {
uint y = 098;
}
// ----
// ParserError 8936: (26-27): Octal numbers not allowed.
@@ -0,0 +1,5 @@
contract C {
uint x = 0100;
}
// ----
// ParserError 8936: (26-27): Octal numbers not allowed.