Ejemplo n.º 1
0
 public static string PlotDotGraph(this ASTLeaf leaf)
 {
     return($"{leaf.GetHashCode()}\n{leaf.GetDotProperty()}");
 }
Ejemplo n.º 2
0
 public static string GetDotProperty(this ASTLeaf leaf)
 {
     return($"{leaf.GetHashCode()} [label=\"{leaf.GetType().Name}:\n{Escape(leaf.Token.ToString())}\", color=\"#A8D281\", style=filled]\n");
 }