Decimal assembler support.

This commit is contained in:
Jindra Petřík
2024-08-10 12:02:00 +02:00
parent 534ac03314
commit 08c3c5a469
20 changed files with 6222 additions and 6239 deletions

View File

@@ -70,11 +70,11 @@ Label = {Identifier}:
/* integer literals */
NumberLiteral = 0 | -?[1-9][0-9]*
NumberLiteral = (0 | -?[1-9][0-9]*) [ui]?
PositiveNumberLiteral = 0 | [1-9][0-9]*
/* floating point literals */
FloatLiteral = -?({FLit1}|{FLit2}|{FLit3}) {Exponent}?
FloatLiteral = -?({FLit1}|{FLit2}|{FLit3}) {Exponent}? [mdf]?
FLit1 = [0-9]+ \. [0-9]*
FLit2 = \. [0-9]+