Skip to content
Snippets Groups Projects
Commit cdfb8b1b authored by Johannes Mey's avatar Johannes Mey
Browse files

create special printer for intrinsic references (to be completed)

parent 3586b6d9
No related branches found
No related tags found
No related merge requests found
aspect RefinedPrinting {
refine Printing public String ASTNode.getASTString() {
String result = this.getNodeTitle() + "\n";
for(int childIndex = 0; childIndex < getNumChildNoTransform(); childIndex++) {
ASTNode<?> child = getChildNoTransform(childIndex);
String childString = "N\n";
String pointString = ".";
if(child != null) {
childString = child.getASTString();
// pointString = child.pointName() + ".";
}
if(childIndex < getNumChildNoTransform() - 1) {
childString = childString.replaceAll("(?m)^", "| ");
} else {
childString = childString.replaceAll("(?m)^", " ");
}
if(pointString.equals(".")) {
pointString = "";
}
result += "|\n|-----" + pointString + childString;
}
return result;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment