-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOT Tree Generation throws exception #10
Comments
Hey there, I'm sorry, but the DOT Generator library is a library that I ported from the Python binding early on in this project without writing extensive test code for it. I suppose I kind of forgot about it while I was expanding the project over time, as I just reviewed that utility and found out that it was horrifically broken. Fortunately, it's a pretty simple class, so I was able to patch it up and get it working again, at least for the purposes of the simple script you cited. I just pushed this new version (1.8.8), and I tested it against the code you gave. It should work for you now. Thanks for reporting that. Let me know if you have any questions. |
Thanks for the quick fix! I can confirm the previous error is gone, but the DOT files are being generated with a syntax error - There is no name on the digraph being generated, so it's not parsing. i.e.:
should be
or something. After doing that, the graphs work fine for me. Thanks again. |
Hmm, only the |
Hi,
I'm trying to generate a graph of the AST, but I get an exception. The grammar I'm using is just one of the sample grammars: https://github.com/ohboyohboyohboy/antlr3/blob/master/samples/SearchExpression.g.
The script to generate the tree and exception I'm getting are at https://gist.github.com/772368
Am I just doing it wrong?
The text was updated successfully, but these errors were encountered: