AntlrDT

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

  1. Improve syntax-directed auto-editing
  2. Add syntax dependent content assist
  3. Implement a custom V3 grammar for internal use
  4. Implement custom internal AST model classes
  5. Implement column artifacts to supplement problem markers
  6. Support code generation directories determined directly from the grammar
  7. Enhance folder and project auto-refresh for generated code
  8. Enable syntax specific infopops
  9. Add double-click support
  10. Implement rule-based grammar formatting
  11. 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
  • Version 0.3
  • Developed on Windows with no testing on other platforms.

Subpages

Sections