The Flexer

The flexer is a finite-automaton-based engine for the generation of highly-efficient lexers. It is capable of supporting the lexing of unrestricted grammars as it provides the author with the ability to manipulate the lexing state after every match.

The various components of the flexer’s design and architecture are described below: