ANTLR Grammar for the Kismet family of dice roll parsers
./gradlew generateGrammarSource [-PantlrLanguage=LANGUAGE] [-PantlrArguments=ARGUMENTS]
Generate source files for the
target language
LANGUAGE
(default Java).
Pass arguments to ANTLR in ARGUMENTS
.
Output is located at
build/generated-src/antlr/main/
.
./gradlew testrig
Test the grammar in the interactive ANTLR TestRig.
NOTE: Gradle may appear to hang at 80%, but TestRig is running and accepting input. Use CTRL+D to send EOF.