mirror of
https://github.com/ethauvin/bld-antlr4.git
synced 2025-04-25 00:37:12 -07:00
README
This commit is contained in:
parent
0f5527f46e
commit
84c4cb976f
1 changed files with 9 additions and 6 deletions
15
README.md
15
README.md
|
@ -3,11 +3,16 @@
|
|||
[](https://opensource.org/licenses/Apache-2.0)
|
||||
[](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html)
|
||||
[](https://github.com/rife2/bld-antlr4/releases/latest)
|
||||
[](https://github.com/rife2/bld-antrl4/actions/workflows/bld.yml)
|
||||
[](https://github.com/rife2/bld-antlr4/actions/workflows/bld.yml)
|
||||
|
||||
An extension for generating Java sources from ANTLR4 parsers.
|
||||
A `bld` extension for generating Java sources from ANTLR4 parsers.
|
||||
|
||||
This is an example usage:
|
||||
The complete document of `Antrl4Operation` can be found in its [javadocs](https://rife2.github.io/bld-antlr4/rife/bld/extension/Antlr4Operation.html).
|
||||
|
||||
This is an example usage where your ANTLR4 sources would be located at
|
||||
`src/main/antlr` and the parsers generated into `build/generated`. The `compile`
|
||||
command then uses an adapted `CompileOperation` to include the generated
|
||||
sources into the main source directories.
|
||||
|
||||
```java
|
||||
private final Antlr4Operation antlr4Operation_ = new Antlr4Operation();
|
||||
|
@ -29,6 +34,4 @@ throws Exception {
|
|||
.fromProject(this)
|
||||
.mainSourceDirectories(List.of(antlr4Operation_.outputDirectory())));
|
||||
}
|
||||
```
|
||||
|
||||
The complete document of `Antrl4Operation` can be found in its [javadocs](https://rife2.github.io/bld-antlr4/rife/bld/extension/Antlr4Operation.html).
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue