ANTLR 4 Plugin for NetBeans 8 - plugin detail

ANTLR plugins for NetBeans 8 packaged in a unique module. This plugin is the evolution (v1.2) of previous plugin for ANTLR developed by the same author (v1.1).

NetBeans Plugin - ANTLR 4 Plugin for NetBeans 8
Plugin owner: Fred_Vinet
Website: https://github.com/fredyvonvinet/ANTLR4-Plugins-for-NetBeans
Added: 2017-01-02
License: BSD
Category: Code Generation
Downloaded: 915 times
Rating:
 0, by 0 users

Plugin Log Show log

Versions available

Download plugin   Download size: 8.68 MB   Last Update: 2017-02-28

What's new in this version

  1. code completion on all syntax items of ANTLR grammar,
  2. hyperlinks on lexer command parameters (channel id, mode id, token id), string literals referencing tokens
  3. new semantic checkings in grammars,
  4. colored edition, code folding and syntax checking available on non supported project types (NetBeans module development projects for instance),
  5. some bug fixes: see GitHub site.


Verifications for NetBeans versions

Plugin is not subject to any verification

Download plugin   Download size: 8.68 MB   Last Update: 2017-02-27

What's new in this version

See description in plugin (v1.2) for NetBeans 8.2.

Verifications for NetBeans versions

Plugin is not subject to any verification

Download plugin   Download size: 8.68 MB   Last Update: 2017-02-27

What's new in this version

See description in plugin (v1.2) for NetBeans 8.2.

Verifications for NetBeans versions

Plugin is not subject to any verification



Introduction

NetBeans plugins for ANTLR 4 enabling to integrate ANTLR grammar files in standard NetBeans projects (ant-based or Maven-based).

This plugin offers next functionalities:

  1. ANTLR 4 grammar file and token file integration (specific icons),
  2. ANTLR 4 language integration of these files (enables NetBeans to launch on-the-fly color editing and syntax / checking tasks),
  3. color editing of grammar and token files that is mainly lexical-oriented but contains as well some syntax-oriented recognitions and colorings (based on an ANTLR 4 lexer),
  4. code folding of multi-line comments and actions (deployed in more than 3 lines) in grammar files
  5. code completion on all syntax items of grammars
  6. hyperlink on fragment, token and parser rule references, lexer command parameters, imported grammars, imported token files (tokenVocab option), super class and token class definition (superClass and TokenLabelType options)
  7. a syntax checker (of course, based on an ANTLR 4 parser and an ANTLR 4 listener),
  8. a semantic checker (of course based on the previous ANTLR 4 parser, an ANTLR 4 walker and an ANTLR 4 listener),
  9. error badging propagation through project nodes,
  10. ANTLR 4 code generation integration in project ant build script with a new antlr4 task (for ant-based projects), integration of ANTLR 4 Maven plug-in and its dependency in POM file (for Maven-based).
  11. deployment of complete and runtime ANTLR 4 libraries in Netbeans library repository (usefull only for ant-based projects).
  12. hyperlinks in output window pointing to errors in source code

For deploying ANTLR 4 project resource into a project, select the project where you want to include ANTLR 4 grammar files and select the next menu "File/Add ANTLR support to project". You should see a new report tab in NetBeans output window dedicated to ANTLR plugin showing what tasks the plugin have done with success or not.

Currently, project integration only supports Java standard Edition project (ant-based or Maven-based). In fact, it is not a limitation because it is a good practice :

  1. to develop your grammar in such an environment as a simple library project,
  2. and then, after your grammar has been completely validated, to integrate your new library in your target project (standard edition, Enterprise Edition, etc).

All other functionalities work on all types of project.

[ You have to be logged in to be able to comment. ]

User Comments

There are no comments yet.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo