- added 'null' token to the ZScript parser which is needed for null pointers.
- removed function declaration parser from DECORATE because it is not needed anymore. - fixed: comparison operators could not handle names.
This commit is contained in:
parent
f6b3cdc23d
commit
665d752686
7 changed files with 23 additions and 272 deletions
|
|
@ -956,6 +956,13 @@ primary(X) ::= IDENTIFIER(A).
|
|||
expr->Type = NULL;
|
||||
X = expr;
|
||||
}
|
||||
primary(X) ::= NULL(T).
|
||||
{
|
||||
NEW_AST_NODE(Expression, expr, T);
|
||||
expr->Operation = PEX_Null;
|
||||
expr->Type = NULL;
|
||||
X = expr;
|
||||
}
|
||||
primary(X) ::= SUPER(T).
|
||||
{
|
||||
NEW_AST_NODE(Expression, expr, T);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue