|
ANTLRWorks is a novel grammar development environment for ANTLR v3 grammars written by Jean Bovet (with suggested use cases from Terence Parr). It combines an excellent grammar-aware editor with an interpreter for rapid prototyping and a language-agnostic debugger for isolating grammar errors. ANTLRWorks helps eliminate grammar nondeterminisms, one of the most difficult problems for beginners and experts alike, by highlighting nondeterministic paths in the syntax diagram associated with a grammar. ANTLRWorks' goal is to make grammars more accessible to the average programmer, improve maintainability and readability of grammars by providing excellent grammar navigation and refactoring tools, and address the most common questions and problems encountered by grammar developers:
- Why is this grammar fragment nondeterministic?
- Does this rule match a sample input?
- Why is this grammar improperly matching this complete input?
- Why is there a syntax error given this input?
- Why is there no syntax error given this ungrammatical input? |
ANTLRWorks speeds up development for experts and beginners alike.
Download ANTLRWorks 1.3
On Mac OS X you can just click on that jar and it will start up the GUI. Same for Windows unless you use IE (IE thinks it's a zip). On Linux, you have to save to the disk and run from the command line (read this tutorial for more information about launching ANTLRWorks). That jar includes all the other jars necessary to run it including ANTLR 3.1.1 and StringTemplate 3.2.
Note: ANTLRWorks requires Java 1.5 or later to run
- For Windows, Linux and Mac OS X
- Bundle for Mac OS X
- Source code (BSD license)
- ANTLRWorks IntelliJ plugin
You can also install plugin directly using the plugin manager in IntelliJ.
|
|
|
Wiki Contents
|
1 Comment
Hide/Show CommentsMar 09, 2012
Othmar Lippuner
Using ANTRLWorks 1.4.3 I display the RULE DEPENENCY GRAPH. First it got some error:
Cannot generate the rule dependency graph.
After Changing in File preferences: C:\Program Files (x86)\Graphviz2.28_ to explicit _C:\Program Files (x86)\Graphviz 2.28\bin\dot.exe that issue could get resolved.
This RULE DEPENENCY GRAPH is a very use- und helpful overview, I will use now for better learning and understanding the grammar of the declarative language Stringtemplate. Though when looking at this grammar-Graph I quickly got greedy for one functional enhancement. When look from top of the grammar graph I get a quite clustered and detailed graph none more that much readable or well arranged. Whould't it be nice to be able to habe a parameter n cutting down the graphdisplay at neighborhood distance of n nodes, means only displaying the neighborhood of N nonterminal grammar symbols from the selected node?