Fixed Boolean and Char Literal
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
This commit is contained in:
parent
8a5f307947
commit
e395c4d96b
@ -252,11 +252,11 @@ public class ASTBuilder extends SimpleJavaBaseVisitor<ASTNode> {
|
||||
|
||||
@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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user