NichtHaskell/Source/abstractSyntaxTree/Class/MethodDecl.java
2024-05-08 11:22:12 +02:00

25 lines
525 B
Java

package abstractSyntaxTree.Class;
import TypeCheck.TypeCheckResult;
import abstractSyntaxTree.Program;
import java.util.HashMap;
import java.util.List;
public class MethodDecl implements IClass {
private Program program;
private HashMap<String, String> localVars;
public MethodDecl(Program program){
this.program = program;
}
public TypeCheckResult typeCheck(List<MethodDecl> fieldsOrMethods) throws Exception {
return null;
// write localvars
// write method table
}
}