package ast; import ast.definition.Definition; import visitor.Visitor; import java.util.ArrayList; import java.util.List; public class Program extends AbstractASTNode { private List definitions; public Program(int line, int column, List definition) { super(line, column); this.definitions = new ArrayList<>(definition); } @Override public TR accept(Visitor v, TP param) { return v.visit(this, param); } public List getDefinitions() { return definitions; } }