...
/ANother Tool for Language Recognition (ANTLR)
ANother Tool for Language Recognition (ANTLR)
Learn about the ANTLR tool, see how it works, what it takes as input, and what it returns.
We'll cover the following...
In this chapter, we will explore the language architecture and get familiar with the capabilities of ANTLR (ANother Tool for Language Recognition).
ANTLR
ANTLR is a powerful parser generator for reading, processing, executing, or translating structured text or binary files. It is widely used to build languages, tools, and frameworks. ANTLR builds and walks parse trees based on grammar.
Setup
ANTLR is written in Java. In this course, we are using ANTLR v4. To make things as simple as possible, we have installed ANTLR on our platform, which we can easily use through the built-in command line interface provided below. However, an installation tutorial is included in the course’s Appendix. To ...