https://github.com/fracpete/parsergen-maven-plugin
Maven plugin for generating parsers using JavaCup and JFlex.
https://github.com/fracpete/parsergen-maven-plugin
javacup jflex maven-plugin
Last synced: 11 months ago
JSON representation
Maven plugin for generating parsers using JavaCup and JFlex.
- Host: GitHub
- URL: https://github.com/fracpete/parsergen-maven-plugin
- Owner: fracpete
- License: apache-2.0
- Created: 2020-04-30T21:57:40.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-30T23:38:24.000Z (about 6 years ago)
- Last Synced: 2024-10-29T21:11:31.428Z (over 1 year ago)
- Topics: javacup, jflex, maven-plugin
- Language: Java
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# parsergen-maven-plugin
Maven plugin for generating parsers using JavaCup and JFlex.
Currently based on:
* [JavaCup](http://www2.cs.tum.edu/projects/cup/): 11b-20160615
* [JFlex](https://jflex.de/): 1.4.3
## Example
Assuming you have your `Scanner.flex` and `Parser.cup` files in the following
directory:
```
src/main/resources/my/project/parser
```
Then use the following plugin definition in the `build` section of you your
`pom.xml` file:
```xml
com.github.fracpete
parsergen-maven-plugin
0.0.1
${project.basedir}/src/main/resources/my/project/parser
```
Using `mvn parsergen:build` will place the generated Java code of the parser
in package `my.project.parser` (the corresponding directory to `resources/my/project/parser`
is `java/my/project/parser`).
**Note:** The `directory` tag can be supplied multiple times, in case you need
to compile multiple parsers.