Abstract Packrat parsing is a novel and practical method for implementing linear-time parsers for grammars defined in Top-Down Parsing Language (TDPL).
The first module in my simple regular expression parse is called RegexToNFA. This module exposes the types that make up a finite state machine and also the functions to convert a regular expression string into a finite state machine.
In the last three articles I covered the overall structure, lexer, and parser of a simple expression evaluator. This articles concludes by presenting the evaluator and main loop. At this stage we are able to take a string, tokenize it, and then build a tree representing the expression.