import abstractSyntaxTree.Class.FieldDecl; import abstractSyntaxTree.Class.MethodDecl; import abstractSyntaxTree.Class.RefType; import abstractSyntaxTree.Program; import java.util.ArrayList; import java.util.List; public class Compiler { public static void Main(String[] args) throws Exception{ // get file Program abstractSyntaxTree = new Program(); List emptyFieldDecl = new ArrayList<>(); List emptyMethodDecl = new ArrayList<>(); abstractSyntaxTree.classes.add(new RefType(emptyFieldDecl, emptyMethodDecl, null, null)); abstractSyntaxTree.typeCheck(); abstractSyntaxTree.codeGen(); } }