grunt-antlr4
Grunt task for antlr4.
Getting Started
This plugin requires Grunt ~0.4.5
and Java Runtime Environment
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-antlr4 --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt;
The "antlr4" task
Overview
In your project's Gruntfile, add a section named antlr4
to the data object passed into grunt.initConfig()
.
grunt;
Options
A hash of antlr command line options.
Please refer to https://github.com/antlr/antlr4/blob/master/doc/tool-options.md
'-' symbol at the start of the option name must be ommited
Top level options are those which are not flags and grammar-level options. Format: -{optionName} {optionValue}
Flags are options which don't have a value. Format: -{flagName}
Grammar-level options are JVM arguments formatted as: -D{optionName}={optionValue}
options.flags
Type: Array
An array of flag names
options.grammar
Type: Object
A hash of grammar-level options
Usage Examples
grunt;