toStringTree method

  1. @override
String toStringTree({
  1. List<String>? ruleNames,
  2. Parser? parser,
})
override

Print out a whole tree, not just a node, in LISP format (root child1 .. childN). Print just a node if this is a leaf.

Implementation

@override
String toStringTree({List<String>? ruleNames, Parser? parser}) {
  return Trees.toStringTree(this, ruleNames: ruleNames, recog: parser);
}