Summary¶
Table Table 5 summarizes all top-level sections of a source file as input to the lexical analyzer generator.
Subject |
Name |
Functionality |
---|---|---|
Behavior |
|
Defines the initial mode for analysis. |
|
Mode definition. |
|
|
Pattern definition. |
|
Token |
|
Definition of token identifiers. |
|
Definition of a token class. |
|
Lexer Class |
|
Additional content to the lexer’s class. |
|
Additional code to the lexer’s constructor. |
|
|
Additional code to the lexer’s reset function. |
|
|
Additional code to the lexer’s destructor. |
|
|
A print function to print a lexer’s content. |
|
Memento Class |
|
Additional content for a lexer’s memento. |
|
Code to be executed when a memento is packed. |
|
|
Code to be executed when a memento is unpacked. |
|
Code |
|
Code to be pasted at lexer’s file head. |
|
Code to be pasted at lexer’s file end. |