Closed KCreate closed 8 years ago
The following code:
(print)("test");
Will produce this AST:
#: Program - BT: ms └╴#: Block - BT: 0 ms │ └╴#: Statement - BT: 0 ms │ │ ├╴#: Expression - BT: 0 ms │ │ │ ├╴#: CallExpressionNode - BT: 0 ms │ │ │ │ ├╴#: LeftParenLiteral - ( │ │ │ │ ├╴#: LeftParenLiteral - ( │ │ │ │ ├╴#: ExpressionList - BT: 0 ms │ │ │ │ │ └╴#: StringLiteral - test │ │ │ │ ├╴#: RightParenLiteral - ) │ │ │ ├╴#: IdentifierLiteral - print │ │ │ ├╴#: RightParenLiteral - ) ------
Fixed in #36
The following code:
Will produce this AST: