Package examples.ast
Class ASTNode
java.lang.Object
examples.ast.ASTNode
- Direct Known Subclasses:
Expression,Program,Statement,Type
All nodes in the AST implement this ASTNode class.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
line
int lineLine where the node is located in the source code. -
column
int columnColumn where the node is located in the source code.
-
-
Constructor Details
-
ASTNode
public ASTNode(int line, int column) Constructor of the ASTNode class.- Parameters:
line- Line where the node is located in the source code.column- Column where the node is located in the source code.
-