add constructor call expression to the grammar

This commit is contained in:
2020-02-14 13:05:34 +01:00
parent 19daaa63af
commit 317c2c52ca

View File

@@ -91,6 +91,7 @@ expression
| SUB expression #negateExpression
| NOT expression #NotExpression
| functionCall #functionCallExpression
| CREATE IDENT OPAR arguments CPAR # constructorCallExpression
;
atom
@@ -143,6 +144,7 @@ LET: 'let';
WHILE: 'while';
DO: 'do';
FOR: 'for';
CREATE: 'create';
PERIOD: '.';
COL: ':';