mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-28 16:28:04 +00:00
fixed compilation errors
This commit is contained in:
parent
c3cd7a7015
commit
7d1b7bc5b0
@ -68,7 +68,7 @@ public class StatementGenerator extends DecafBaseVisitor<Statement> {
|
|||||||
|
|
||||||
private Assignment generateAssign(DecafParser.AssignContext ctx) {
|
private Assignment generateAssign(DecafParser.AssignContext ctx) {
|
||||||
Id id = new Id(ctx.id().getText());
|
Id id = new Id(ctx.id().getText());
|
||||||
Expression expr = resolveFancyAssign(ctx.assignSign(), id, new ExpressionGenerator().visit(ctx.expr()););
|
Expression expr = resolveFancyAssign(ctx.assignSign(), id, new ExpressionGenerator().visit(ctx.expr()));
|
||||||
return new Assignment(id, expr);
|
return new Assignment(id, expr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@ package de.maishai.typedast.typedclass;
|
|||||||
|
|
||||||
import de.maishai.ast.AssignSign;
|
import de.maishai.ast.AssignSign;
|
||||||
import de.maishai.ast.records.Assignment;
|
import de.maishai.ast.records.Assignment;
|
||||||
|
import de.maishai.typedast.MethodContext;
|
||||||
import de.maishai.typedast.TypedExpression;
|
import de.maishai.typedast.TypedExpression;
|
||||||
import de.maishai.typedast.TypedNode;
|
import de.maishai.typedast.TypedNode;
|
||||||
import de.maishai.typedast.TypedStatement;
|
import de.maishai.typedast.TypedStatement;
|
||||||
@ -41,7 +42,6 @@ public class TypedAssignment implements TypedStatement {
|
|||||||
return typedAssignment;
|
return typedAssignment;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void codeGen(MethodVisitor mv, MethodContext ctx) {
|
public void codeGen(MethodVisitor mv, MethodContext ctx) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user