Skip to content

bobfoster/peggen-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

peggen-maven-plugin

Maven plugin for peggen parser generator.

The plugin generates a parser that can be used by the project from a peggen grammar in the project.

For an example of its use, see https://github.com/bobfoster/calc.

To use the plugin and the resulting parser, the following should be included in your project pom.xml:

<dependencies>
  <dependency>
    <groupId>org.genantics</groupId>
    <artifactId>peggen</artifactId>
    <version>1.0</version>
  </dependency>
</dependencies>

<build>
  <plugins>
    <plugin>
      <groupId>org.genantics</groupId>
      <artifactId>peggen-maven-plugin</artifactId>
      <version>1.0</version>
      <configuration>
        <!-- The following are optional: default values shown -->
        <sourceDirectory>src/main/peggen</sourceDirectory>
        <grammarExtension>.peg</grammarExtension>
        <outputDirectory>target/generated-sources/peggen</outputDirectory>
      </configuration>
      <executions>
        <execution>
          <goals>
            <goal>generate</goal>
          </goals>
        </execution>
      </executions>
    </plugin>
  </plugins>
</build>

About

Maven plugin for peggen parser generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages