Esempio n. 1
0
 public static string PlotDotGraph(this ASTLeaf leaf)
 {
     return($"{leaf.GetHashCode()}\n{leaf.GetDotProperty()}");
 }
Esempio 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");
 }