Add orx-expression-evaluator-typed
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user