alpag.net manual
Integration / Lexer-parser integration
< Integration | Integration options >

Lexer-parser integration

Alpag can generate lexers and parsers. User is free to generate just one of these components and provide the other using third party tools. Sometimes, if underlying grammar is simple, it is better to write lexer or parser by hand reserving automatic generation for the other, more cumbersome element. In either case final step is to integrate lexer with parser and embed them in application.

Basic aspects of integrating lexer and parser with surrounding code were discussed in Lexer and Parser chapters. This section focuses on interoperation issues.

< Integration | Integration options >
Alpag Manual