diff --git a/src/main/java/parser/ASTBuilder.java b/src/main/java/parser/ASTBuilder.java index 7e7422d..9d16758 100644 --- a/src/main/java/parser/ASTBuilder.java +++ b/src/main/java/parser/ASTBuilder.java @@ -252,11 +252,11 @@ public class ASTBuilder extends SimpleJavaBaseVisitor { @Override public ASTNode visitBooleanLiteral(SimpleJavaParser.BooleanLiteralContext ctx) { - return super.visitBooleanLiteral(ctx); + return (ASTNode) new BooleanLiteralNode(ctx.getText()); } @Override public ASTNode visitCharLiteral(SimpleJavaParser.CharLiteralContext ctx) { - return super.visitCharLiteral(ctx); + return (ASTNode) new CharLiteralNode(ctx.getText()); } }