1.2.5 Adding a Lexer

The lexer contains rules for matching input with regular expressions and returning corresponging tokens to the parser.

The lexer file syntax is described in this document.

To add a lexer to minilang: