fix ast
This commit is contained in:
parent
112c5f2c1b
commit
b00979c1a8
@ -282,7 +282,6 @@ public class ASTGenerator extends DecafBaseVisitor<Node> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//todo
|
|
||||||
@Override
|
@Override
|
||||||
public Node visitDotSubExpr(DecafParser.DotSubExprContext ctx) {
|
public Node visitDotSubExpr(DecafParser.DotSubExprContext ctx) {
|
||||||
if (ctx.IntValue() != null) {
|
if (ctx.IntValue() != null) {
|
||||||
@ -293,6 +292,8 @@ public class ASTGenerator extends DecafBaseVisitor<Node> {
|
|||||||
return new LocalVarIdentifier(identifier);
|
return new LocalVarIdentifier(identifier);
|
||||||
} else if(ctx.instVar() != null) {
|
} else if(ctx.instVar() != null) {
|
||||||
return visitInstVar(ctx.instVar());
|
return visitInstVar(ctx.instVar());
|
||||||
|
} else if(ctx.methodCall() != null) {
|
||||||
|
return visitMethodCall(ctx.methodCall());
|
||||||
} else if(ctx.calcExpr() != null) {
|
} else if(ctx.calcExpr() != null) {
|
||||||
return visitCalcExpr(ctx.calcExpr());
|
return visitCalcExpr(ctx.calcExpr());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user