add constructor call expression to the grammar
This commit is contained in:
@@ -91,6 +91,7 @@ expression
|
|||||||
| SUB expression #negateExpression
|
| SUB expression #negateExpression
|
||||||
| NOT expression #NotExpression
|
| NOT expression #NotExpression
|
||||||
| functionCall #functionCallExpression
|
| functionCall #functionCallExpression
|
||||||
|
| CREATE IDENT OPAR arguments CPAR # constructorCallExpression
|
||||||
;
|
;
|
||||||
|
|
||||||
atom
|
atom
|
||||||
@@ -143,6 +144,7 @@ LET: 'let';
|
|||||||
WHILE: 'while';
|
WHILE: 'while';
|
||||||
DO: 'do';
|
DO: 'do';
|
||||||
FOR: 'for';
|
FOR: 'for';
|
||||||
|
CREATE: 'create';
|
||||||
|
|
||||||
PERIOD: '.';
|
PERIOD: '.';
|
||||||
COL: ':';
|
COL: ':';
|
||||||
|
|||||||
Reference in New Issue
Block a user