A new release of the ANTLR4 grammar parsing service (antlr4-graps)NodeJS module has been published. Besides some bug fixing a big new feature was added: ATN graphs. This is something especially useful for core ANTLR4 developers (target writers or those working directly on ANTLR4) as it generates data about the internal ATN that can be visualized for a better understanding about it's structure (see also the ANTLR4 grammar support extension in vscode for such a visualization).
A few days ago I published a new release of the ANTLR4 extension for Visual Studio Code, which contains a number of fixes and new features. The light color theme is now complete as well and you get railroad diagrams for your grammar rules and even entire files. These can be saved to disk (as HTML with embedded svg), so that you can use them in other documents. Code lens support was added as well, which allows to (optionally) show rule reference counts. Hope you enjoy the new release.
Recently Sam Harwell released the ANTLR4 Typescript runtime as a Node.JS module, which opens a great way to implement ANTLR support in Node.JS modules and Visual Studio Code extensions. I took the opportunity and rewrote my antlr-graps Node.JS module and my vscode-antlr4 extension. If you are working with Visual Studio Code and want ANTLR grammar support in it then go ahead and install the extension. While it's on a good way it still cannot compete with IDEs like antlrworks2 (also written by Sam Harwell).
A few days ago Terence Parr merged the ANTLR4 C++ runtime into the main ANTLR4 repository. So it is now part of the official distribution. I had some trouble getting the runtime tests compiling on Travis CI but finally the job is done. Let's celebrate the achievement.
With the increasing popularity of Node.js I thought it would be a good idea to have a native module which provides language parsing services for ANTLR4 grammar files, utilizing a fast C++ backend. This could then be used in IDEs/editors to provide ANTLR4 language support. Additionally, I wanted to create an extension for Visual Studio Code for ANTLR4 grammars, so I started writing one.
The module itself is quite small and you can read a detailed description in its Github repository. The installation follows the usual procedure via npm (npm install antlr4-graps). However, since it is a native module, you need a compiler at hand to allow compilation during an installation. On Linux this is usually no problem. On OSX/macOS you have to have XCode installed, while on Windows you either need Visual Studio or the free build tools. Search the web if you wanna know how to build native Node.js modules on Windows, if you need help. To ease usage I have a second branch in the git repo which doesn't contain the sources, but prebuilt binaries. Note however that this branch is not published as own Node.js module.