Antlr - Idea Plugin
Table of Contents
About
The Idea plugin is a plugin for Idea that install the Antlr tool.
Installation
Create a grammar file with the extension g4 and Idea should propose you to install the Antlr plugin
Options
Antlr Recognizer
Antlr Recognizer run antlr.
Default run with the default configuration gives:
antlr4 ^
-o %ProjectRoot%\gen ^
-listener ^
-visitor ^
-lib %ProjectRoot%/src/main/antlr4/com/group/package/lexer ^ # output dir
%ProjectRoot%src/main/antlr4/grammar.g4
where:
- o is the Output dir where all output is generated
- -listener will generate the parse tree listener
- -visitor will generate the parse tree visitor
- -lib specify the location of grammars, tokens files
Configure Antlr
The Configure Antlr are the options of antlr