Skip to content

NicoMincuzzi/cup-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CUP Maven Plugin

build codecov Java Version Version GitHub repo size

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.

Prerequisites

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>

Usage

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>

How to Contribute

Make a pull request...

License

Distributed under Apache-2.0 License, please see license file within the code for more details.

Releases

No releases published

Packages

No packages published

Languages