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