next up previous contents index
Next: Debugging Parsers Up: Parser Specification Previous: Parser report

Interfacing with the generated lexer

The easiest way of interfacing with a lexer is to embed an object of class LexerBuffer, IOLexerBuffer, or IOLexerStack within a syntax class2. We can then define the tokenization method get_token using the matchscan statement described in section 3.1.5.



Allen Leung
Mon Apr 7 14:33:55 EDT 1997