add a destructor call to the grammar

This commit is contained in:
2020-03-05 16:21:11 +01:00
parent 441466c83f
commit 31460860d5

View File

@@ -92,6 +92,7 @@ expression
| NOT expression #NotExpression
| functionCall #functionCallExpression
| CREATE IDENT OPAR arguments CPAR # constructorCallExpression
| DESTROY IDENT # destructorCallExpression
;
atom
@@ -146,6 +147,7 @@ WHILE: 'while';
DO: 'do';
FOR: 'for';
CREATE: 'create';
DESTROY: 'destroy';
NULL: 'naught';
PERIOD: '.';