CUP Maven Plugin for CUP Parser Generator. It is optimize for CUP v0.10
and allow to generate parser.java
and sym.java
files by any *.cup
file.
The run-time library version of Java CUP library must correspond to version CUP v0.10
.
In order to use it, you must add a dependency to your pom.xml
:
<dependency>
<groupId>edu.princeton.cup</groupId>
<artifactId>java-cup</artifactId>
<version>10k</version>
</dependency>
To use this plugin, you will have to tell Maven to execute the plugin at some point during the build process. To do so, add the following to the plugins-section of your pom.xml.
<plugin>
<groupId>com.github.nicomincuzzi</groupId>
<artifactId>cup-maven-plugin</artifactId>
<version>0.1.0</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<outputDirectory>com/lefc/jambly</outputDirectory>
<cupDefinition>src/main/cup</cupDefinition>
</configuration>
</plugin>
Make a pull request...
Distributed under Apache-2.0 License, please see license file within the code for more details.