-
-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
This issue is a continuation of rethinkdb/rethinkdb#5012
Implement ReQL AST printing. It is fairly easy.
Base code (taken from Avarel/Kaiper:Kaiper-AST/xyz.avarel.kaiper.ast.Expr, Apache-2.0 License)
public void ast(StringBuilder builder, String indent, boolean isTail) {
builder.append(indent).append(isTail ? "└── " : "├── ").append(toString());
}
public void ast(String label, StringBuilder builder, String indent, boolean tail) {
builder.append(indent).append(tail ? "└── " : "├── ").append(label).append(':');
builder.append('\n');
ast(builder, indent + (tail ? " " : "│ "), true);
}Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request