Add orx-expression-evaluator-typed

This commit is contained in:
Edwin Jakobs
2024-06-10 14:41:57 +02:00
parent f43a322cb0
commit e8ed9ebbe8
24 changed files with 2484 additions and 37 deletions

View File

@@ -6,14 +6,6 @@ channels { WHITESPACE }
NEWLINE : '\r\n' | '\r' | '\n' ;
WS : [\t ]+ -> channel(WHITESPACE) ;
// Keywords
INPUT : 'input' ;
VAR : 'var' ;
PRINT : 'print';
AS : 'as';
INT : 'Int';
DECIMAL : 'Decimal';
STRING : 'String';
// Identifiers
ID : [$_]*[a-zA-Z][A-Za-z0-9_]* | '`'[$_]*[A-Za-z0-9_-]*'`';
@@ -34,8 +26,21 @@ ASSIGN : '=' ;
LPAREN : '(' ;
RPAREN : ')' ;
QUESTION_MARK : '?' ;
COLON : ':' ;
COMMA : ',' ;
DOT : '.' ;
EQ : '==' ;
LT : '<' ;
LTEQ : '<=' ;
GT : '>=' ;
GTEQ : '>' ;
AND : '&&' ;
OR : '||' ;
NOT : '!' ;
STRING_OPEN : '"' -> pushMode(MODE_IN_STRING);