DFM Parsing Introduction

In this chapter, we will leverage our refined DFM grammar from the concluding section of the Grammar Design chapter, to parse an example DFM file.

We will be starting out with walking through the ANTLR setup. Then, we will describe the techniques needed to parse a DFM file with ANTLR4, and examine the outputs. Additionally, we will look into various features of ANTLR, such as outputting tokens and parse trees, visualizing trees, and error reporting. All these concepts will be exemplified and explained.