Removed unnecessary interface implementation.

main
Deryck Brown 3 years ago
parent bffeafba10
commit fbada163d4
  1. 8
      Triangle.Compiler/src/main/java/triangle/codeGenerator/Encoder.java
  2. 9
      Triangle.Compiler/src/main/java/triangle/contextualAnalyzer/Checker.java
  3. 9
      Triangle.Compiler/src/main/java/triangle/treeDrawer/LayoutVisitor.java

@ -88,7 +88,6 @@ import triangle.abstractSyntaxTrees.visitors.CommandVisitor;
import triangle.abstractSyntaxTrees.visitors.DeclarationVisitor; import triangle.abstractSyntaxTrees.visitors.DeclarationVisitor;
import triangle.abstractSyntaxTrees.visitors.ExpressionVisitor; import triangle.abstractSyntaxTrees.visitors.ExpressionVisitor;
import triangle.abstractSyntaxTrees.visitors.FormalParameterSequenceVisitor; import triangle.abstractSyntaxTrees.visitors.FormalParameterSequenceVisitor;
import triangle.abstractSyntaxTrees.visitors.FormalParameterVisitor;
import triangle.abstractSyntaxTrees.visitors.IdentifierVisitor; import triangle.abstractSyntaxTrees.visitors.IdentifierVisitor;
import triangle.abstractSyntaxTrees.visitors.LiteralVisitor; import triangle.abstractSyntaxTrees.visitors.LiteralVisitor;
import triangle.abstractSyntaxTrees.visitors.OperatorVisitor; import triangle.abstractSyntaxTrees.visitors.OperatorVisitor;
@ -114,10 +113,9 @@ import triangle.codeGenerator.entities.UnknownAddress;
import triangle.codeGenerator.entities.UnknownRoutine; import triangle.codeGenerator.entities.UnknownRoutine;
import triangle.codeGenerator.entities.UnknownValue; import triangle.codeGenerator.entities.UnknownValue;
public final class Encoder public final class Encoder implements ActualParameterVisitor<Frame, Integer>,
implements ActualParameterVisitor<Frame, Integer>, ActualParameterSequenceVisitor<Frame, Integer>, ActualParameterSequenceVisitor<Frame, Integer>, ArrayAggregateVisitor<Frame, Integer>,
ArrayAggregateVisitor<Frame, Integer>, CommandVisitor<Frame, Void>, DeclarationVisitor<Frame, Integer>, CommandVisitor<Frame, Void>, DeclarationVisitor<Frame, Integer>, ExpressionVisitor<Frame, Integer>,
ExpressionVisitor<Frame, Integer>, FormalParameterVisitor<Frame, Integer>,
FormalParameterSequenceVisitor<Frame, Integer>, IdentifierVisitor<Frame, Void>, LiteralVisitor<Void, Void>, FormalParameterSequenceVisitor<Frame, Integer>, IdentifierVisitor<Frame, Void>, LiteralVisitor<Void, Void>,
OperatorVisitor<Frame, Void>, ProgramVisitor<Frame, Void>, RecordAggregateVisitor<Frame, Integer>, OperatorVisitor<Frame, Void>, ProgramVisitor<Frame, Void>, RecordAggregateVisitor<Frame, Integer>,
TypeDenoterVisitor<Frame, Integer>, VnameVisitor<Frame, RuntimeEntity> { TypeDenoterVisitor<Frame, Integer>, VnameVisitor<Frame, RuntimeEntity> {

@ -88,7 +88,6 @@ import triangle.abstractSyntaxTrees.visitors.CommandVisitor;
import triangle.abstractSyntaxTrees.visitors.DeclarationVisitor; import triangle.abstractSyntaxTrees.visitors.DeclarationVisitor;
import triangle.abstractSyntaxTrees.visitors.ExpressionVisitor; import triangle.abstractSyntaxTrees.visitors.ExpressionVisitor;
import triangle.abstractSyntaxTrees.visitors.FormalParameterSequenceVisitor; import triangle.abstractSyntaxTrees.visitors.FormalParameterSequenceVisitor;
import triangle.abstractSyntaxTrees.visitors.FormalParameterVisitor;
import triangle.abstractSyntaxTrees.visitors.IdentifierVisitor; import triangle.abstractSyntaxTrees.visitors.IdentifierVisitor;
import triangle.abstractSyntaxTrees.visitors.LiteralVisitor; import triangle.abstractSyntaxTrees.visitors.LiteralVisitor;
import triangle.abstractSyntaxTrees.visitors.OperatorVisitor; import triangle.abstractSyntaxTrees.visitors.OperatorVisitor;
@ -104,10 +103,10 @@ import triangle.syntacticAnalyzer.SourcePosition;
public final class Checker implements ActualParameterVisitor<FormalParameter, Void>, public final class Checker implements ActualParameterVisitor<FormalParameter, Void>,
ActualParameterSequenceVisitor<FormalParameterSequence, Void>, ArrayAggregateVisitor<Void, TypeDenoter>, ActualParameterSequenceVisitor<FormalParameterSequence, Void>, ArrayAggregateVisitor<Void, TypeDenoter>,
CommandVisitor<Void, Void>, DeclarationVisitor<Void, Void>, ExpressionVisitor<Void, TypeDenoter>, CommandVisitor<Void, Void>, DeclarationVisitor<Void, Void>, ExpressionVisitor<Void, TypeDenoter>,
FormalParameterVisitor<Void, Void>, FormalParameterSequenceVisitor<Void, Void>, FormalParameterSequenceVisitor<Void, Void>, IdentifierVisitor<Void, Declaration>,
IdentifierVisitor<Void, Declaration>, LiteralVisitor<Void, TypeDenoter>, OperatorVisitor<Void, Declaration>, LiteralVisitor<Void, TypeDenoter>, OperatorVisitor<Void, Declaration>, ProgramVisitor<Void, Void>,
ProgramVisitor<Void, Void>, RecordAggregateVisitor<Void, FieldTypeDenoter>, RecordAggregateVisitor<Void, FieldTypeDenoter>, TypeDenoterVisitor<Void, TypeDenoter>,
TypeDenoterVisitor<Void, TypeDenoter>, VnameVisitor<Void, TypeDenoter> { VnameVisitor<Void, TypeDenoter> {
// Commands // Commands

@ -82,7 +82,6 @@ import triangle.abstractSyntaxTrees.visitors.CommandVisitor;
import triangle.abstractSyntaxTrees.visitors.DeclarationVisitor; import triangle.abstractSyntaxTrees.visitors.DeclarationVisitor;
import triangle.abstractSyntaxTrees.visitors.ExpressionVisitor; import triangle.abstractSyntaxTrees.visitors.ExpressionVisitor;
import triangle.abstractSyntaxTrees.visitors.FormalParameterSequenceVisitor; import triangle.abstractSyntaxTrees.visitors.FormalParameterSequenceVisitor;
import triangle.abstractSyntaxTrees.visitors.FormalParameterVisitor;
import triangle.abstractSyntaxTrees.visitors.IdentifierVisitor; import triangle.abstractSyntaxTrees.visitors.IdentifierVisitor;
import triangle.abstractSyntaxTrees.visitors.LiteralVisitor; import triangle.abstractSyntaxTrees.visitors.LiteralVisitor;
import triangle.abstractSyntaxTrees.visitors.OperatorVisitor; import triangle.abstractSyntaxTrees.visitors.OperatorVisitor;
@ -97,10 +96,10 @@ import triangle.abstractSyntaxTrees.vnames.SubscriptVname;
public class LayoutVisitor implements ActualParameterVisitor<Void, DrawingTree>, public class LayoutVisitor implements ActualParameterVisitor<Void, DrawingTree>,
ActualParameterSequenceVisitor<Void, DrawingTree>, ArrayAggregateVisitor<Void, DrawingTree>, ActualParameterSequenceVisitor<Void, DrawingTree>, ArrayAggregateVisitor<Void, DrawingTree>,
CommandVisitor<Void, DrawingTree>, DeclarationVisitor<Void, DrawingTree>, ExpressionVisitor<Void, DrawingTree>, CommandVisitor<Void, DrawingTree>, DeclarationVisitor<Void, DrawingTree>, ExpressionVisitor<Void, DrawingTree>,
FormalParameterVisitor<Void, DrawingTree>, FormalParameterSequenceVisitor<Void, DrawingTree>, FormalParameterSequenceVisitor<Void, DrawingTree>, IdentifierVisitor<Void, DrawingTree>,
IdentifierVisitor<Void, DrawingTree>, LiteralVisitor<Void, DrawingTree>, OperatorVisitor<Void, DrawingTree>, LiteralVisitor<Void, DrawingTree>, OperatorVisitor<Void, DrawingTree>, ProgramVisitor<Void, DrawingTree>,
ProgramVisitor<Void, DrawingTree>, RecordAggregateVisitor<Void, DrawingTree>, RecordAggregateVisitor<Void, DrawingTree>, TypeDenoterVisitor<Void, DrawingTree>,
TypeDenoterVisitor<Void, DrawingTree>, VnameVisitor<Void, DrawingTree> { VnameVisitor<Void, DrawingTree> {
private final int BORDER = 5; private final int BORDER = 5;
private final int PARENT_SEP = 30; private final int PARENT_SEP = 30;