# File lib/journey/visitors.rb, line 144 144: def binary node 145: node.children.each do |c| 146: @edges << "#{node.object_id} -> #{c.object_id};" 147: end 148: super 149: end
# File lib/journey/visitors.rb, line 151 151: def nary node 152: node.children.each do |c| 153: @edges << "#{node.object_id} -> #{c.object_id};" 154: end 155: super 156: end
# File lib/journey/visitors.rb, line 183 183: def terminal node 184: value = node.left 185: 186: @nodes << "#{node.object_id} [label=\"#{value}\"];" 187: end
# File lib/journey/visitors.rb, line 158 158: def unary node 159: @edges << "#{node.object_id} -> #{node.left.object_id};" 160: super 161: end
# File lib/journey/visitors.rb, line 168 168: def visit_CAT node 169: @nodes << "#{node.object_id} [label=\"○\"];" 170: super 171: end
# File lib/journey/visitors.rb, line 163 163: def visit_GROUP node 164: @nodes << "#{node.object_id} [label=\"()\"];" 165: super 166: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.