The antlr4-maven-plugin does not appear to be document on the Antlr4 website.
相关问题
- Trying to use keywords as identifiers in ANTLR4; n
- What's the difference between ANTLR4's err
- How do I diagnose ambiguities in my ANTLR4 grammar
- antlr 4.2.2 output to console warning (157)
- Does ANTLR allow multiple variable definitions in
相关文章
- Slow ANTLR4 generated Parser in Python, but fast i
- ANTLR4 API to Display Arbitrary ParseTree
- Get Preprocessor lines with antlr4 with parsing C
- Python AST from ANTLR Parse Tree?
- How to implement error handling in ANTLR4
- What is minimal sample Gradle project for ANTLR4 (
- Antlr4 - Is there a simple example of using the Pa
- How to configure antlr4 plugin for Intellij IDEA
You can also check out the following blog which describes both plugins for generating and testing ANTLR 4 grammars.
That might get you nothing, like it did me. Try this:
Produces:
The antlr4-maven-plugin has a help goal which can be executed, using maven, like this:
Help is limited, but (in addition to the other answers to this questions) I found the following places useful:
Looks like the maven plugin site is now published:
http://www.antlr.org/api/maven-plugin/latest/index.html
Here are two links to help right now:
We're working to get the Maven site documentation hosted online.
I place my grammars in the same folders as the Java files (in the package where I want the generated code to appear).
Since I declare my source directory at the top level like this:
I would use the following configuration for the ANTLR 4 Maven plugin: