tianhao960 / rrg-antlr4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rrg-antlr4

Inspired by the project rrd-antlr4 , and add following features:

1 could specify the root rule of the grammar, and output rules BFs from root rule.

2 could specify the import grammar directory.

3 make this tool as a maven plugin.

Basic usage

use this tool as a maven plugin.

<plugin>
    <groupId>space.vector</groupId>
    <artifactId>rr-maven-plugin</artifactId>
    <version>0.0.1</version>
    <executions>
        <execution>
            <goals>
                <goal>rr</goal>
            </goals>
            <configuration>
                <rootRule>execute</rootRule>
                <libDirectory>src/main/antlr4/imports/mysql/</libDirectory>
            </configuration>
        </execution>
    </executions>
</plugin>

Credits

project License
rrd-antlr4 MIT
grammars-v4 BSD
railroad-diagrams MIT

About

License:MIT License


Languages

Language:Java 47.4%Language:JavaScript 28.0%Language:ANTLR 23.7%Language:CSS 0.8%Language:HTML 0.1%