public class ASTProgram extends ASTNode
ASTVariable
and ASTFunction
declarations.ASTNode.DataType
Modifier and Type | Field and Description |
---|---|
List<ASTFunction> |
functions |
List<ASTVariable> |
variables |
attributes
Constructor and Description |
---|
ASTProgram() |
Modifier and Type | Method and Description |
---|---|
void |
traverse(ASTVisitor visitor)
Generic traversal method for the visitor pattern.
|
getASTTypeStr, getDepth, getParent, getSourceInfo, getType, setDepth, setParent, setSourceInfo, setType, typeToString
public List<ASTVariable> variables
public List<ASTFunction> functions
public void traverse(ASTVisitor visitor)
ASTNode
Copyright © 2019. All rights reserved.