module RegularExpression::AST
Public Class Methods
to_dot(root)
click to toggle source
# File lib/regular_expression/ast.rb, line 5 def self.to_dot(root) graph = Graphviz::Graph.new root.to_dot(graph) Graphviz.output(graph, path: "build/ast.svg", format: "svg") graph.to_dot end