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 |