Gist 772368
✓ Published0🌍 Public
XXXX
Last edited Jan 10, 2011
Created on Jan 10, 2011
A Ruby script attempts to visualize an ANTLR3 parse tree by generating Graphviz DOT output. The code parses the search expression "a and b or c and not d" using a custom `SearchExpression` parser, then calls `ANTLR3::DOT::TreeGenerator.generate(tree)` to render the tree. The example shows a runtime error: the generator raises a `NoMethodError` for `node_number`, indicating a version mismatch or API break in the ANTLR3 library. The visible output is the terminal stack trace, not a rendered graph.
AI-generated description