Changed: AS1/2 P-code double Push values have suffix ".0" to properly distinguish them

Changed: AS1/2 P-code float Push values have suffix "f" to properly distinguish them
This commit is contained in:
Jindra Petřík
2025-07-05 11:49:32 +02:00
parent 338f31e27b
commit dba9fd702d
11 changed files with 1964 additions and 2070 deletions

View File

@@ -130,7 +130,8 @@ Constant= constant{NumberLiteral}
/* numeric literals */
{NumberLiteral} { return token(TokenType.NUMBER); }
{FloatLiteral} { return token(TokenType.NUMBER); }
{FloatLiteral} "f" { return token(TokenType.NUMBER); }
{FloatLiteral} { return token(TokenType.NUMBER); }
{LineTerminator} {yybegin(YYINITIAL); return token(TokenType.NEWLINE);}
{Comment} {return token(TokenType.COMMENT);}
{StartOfBlock} {return token(TokenType.WHITESPACE);}