Multi-purpose lexer/parser. More...
Topics | |
Source file | |
Source file manager | |
This group defines a multi-purpose lexer/parser.
The lexer/parser is organized as follow:
keyword list v ┌──────────┐ ┌───────────┐ ┌────────────┐ files │ │ characters │ │ tokens │ │ ───────> ─────> │ File │ ──────────>│ Lexer │ ───────> │ Parser │ tokens / actions │ │ │ │ │ │ <─────── └──────────┘ └───────────┘ └────────────┘ mod_source_file mod_lexer mod_parser mod_identifier mod_scope
The lexer/parser is split into 3 units:
char(10)
) character.tk_semicolon
. The list of token type is defined in the mod_lexer module. The lexer can manage multiple source file simultaneously.For a practical usage of the lexer/parser, look at the OBJ Wavefront reader.