Signed-off-by: Jean Privat <jean@pryen.org>
import location
import ordered_tree
import location
import ordered_tree
# Root of the AST class-hierarchy
abstract class ANode
# Root of the AST class-hierarchy
abstract class ANode
do
return "{n.class_name} {n.dump_info(self)} @{n.location}"
end
do
return "{n.class_name} {n.dump_info(self)} @{n.location}"
end
+
+ # `s` as yellow
+ fun yellow(s: String): String do return s.yellow
+
+ # `s` as red
+ fun red(s: String): String do return s.red
end
# A sequence of nodes
end
# A sequence of nodes