AntlrDT
An Eclipse plugin that contributes Antlr ™ V3.1 grammar and StringTemplate editors to the Eclipse platform.
Features
- AntlrDT Editor and Outline View -- syntax-assisted editor
- AntlrDT Builder -- incremental Lexer/Parser generator
- StringTemplate Editor -- syntax-assisted editor
Development State
- The syntax-directed aspects of the Grammar and StringTemplate editors are specific to the Antlr 3.1+ language
- default syntax highlighting scheme needs refinement ( recommendations welcome)
- Grammar lexer and parser validation errors are reported by edtior problem markers
- marker hovering is supported
- the Outline View depends on the grammar being parseable -- the Outline tree may disappear or, rarely, become out-of-sync depending on the nature of the validation errors encountered
- unrecognized errors will be dumped to the console
- line numbers in dumped errors should still match the Editor ruler numbers
- Syntax analysis should be accurate
- currently using an unmodified copy of the AntlrV3.g3 grammar
- The Editor is fully operational without the builder being enabled
- The Builder, if enabled, is invoked incrementally, under platform control, provided the AntlrDT core is able to internally build and validate an AST for the grammar file being edited
Priorities
- Improve syntax-directed auto-editing
- Add syntax dependent content assist
- Implement a custom V3 grammar for internal use
- Implement custom internal AST model classes
- Implement column artifacts to supplement problem markers
- Support code generation directories determined directly from the grammar
- Enhance folder and project auto-refresh for generated code
- Enable syntax specific infopops
- Add double-click support
- Implement rule-based grammar formatting
- Add refactoring support
Use
- The Grammar Editor is automatically associated with Antlr 3.1+ grammar files (".g3" extension preferred)
- The StringTemplate Editor is automatically associated with Antlr 3.1+ group files (".stg" extension preferred)
- The editors are available in any project - grammar files need not be on the project's build path.
- The Grammar Builder is enabled from the AntlrDT preference page
Installation & Requirements
- Version 0.4
- Eclipse 3.4M6 on Java 5+ VM
- Eclipse DLTK 1.0M6 Core Framework: Stable (an Eclipse Incubator Project)
- Version 0.3
- Eclipse 3.3+ on Java 5+ VM
- Eclipse DLTK 1.0M4 Core Framework: Stable
- Developed on Windows with no testing on other platforms.