In This Article


ANTLR, ANother Tool for Language Recognition, was created by Terence Parr and is one of the most widely-used parsing frameworks available. ANTLR is a framework for constructing recognizers, interpreters, compilers, and translators from grammatical descriptions containing actions in a variety of target languages. ANTLR provides excellent support for tree construction, tree walking, translation, error recovery, and error reporting.

While ANTLR can do advanced parsing and abstract syntax tree construction for the text in the editor (via calls to our multi-threaded parsing framework), it unfortunately doesn't support incremental lexing and therefore cannot be used to drive syntax highlighting in the editor.

The Actipro ANTLR Add-on provides a bridge between an ANTLR parser and the SyntaxEditor control. Namely, if you have created a parser with ANTLR, you can use it to perform syntax and semantic parsing within SyntaxEditor.

The best part is that all this can be done in 3 lines of code!


SyntaxEditor's integration with ANTLR v3 parsers via this add-on is being deprecated. We offer and recommend our own advanced LL(*) Parser Framework instead that features grammars that are written in C#/VB using EBNF-like notation, customizable AST construction, advanced error handling/reporting, easy code injection, a complete debugger UI, and much more.

Getting Started

The ANTLR Add-on makes it possible in just a few lines of code to create a syntax language that can automatically call an ANTLR parser whenever document text is modified and asynchronously return its AST result to the document. This topic walks through the basic concepts involved, the requirements, and includes a complete sample of how to pull everything together.


Due to this add-on being deprecated, the sample project that shows off this add-on is no longer installed. Please contact our support team if you have a need to download it.

See the Getting Started topic for more information.