add local and field var

This commit is contained in:

View File

@ -55,6 +55,8 @@ data Expression
| BooleanLiteral Bool | BooleanLiteral Bool
| NullLiteral | NullLiteral
| Reference Identifier | Reference Identifier
| LocalVariable Identifier
| FieldVariable Identifier
| BinaryOperation BinaryOperator Expression Expression | BinaryOperation BinaryOperator Expression Expression
| UnaryOperation UnaryOperator Expression | UnaryOperation UnaryOperator Expression
| StatementExpressionExpression StatementExpression | StatementExpressionExpression StatementExpression