#include <scanner_dfa_spec.hh>
Collaboration diagram for ScannerDfaSpec:
Public Methods | |
ScannerDfaSpec (const string &className_, const CodeChunk &preambleCode_, const vector< CodeChunk > &userCode_, const CodeChunk &inheritance_) | |
void | addBasicDfa (BasicDfaSpec &dfa) |
Public Attributes | |
string | className |
CodeChunk | preambleCode |
vector<CodeChunk> | userCode |
CodeChunk | inheritance |
vector<BasicDfaSpec*> | states |
Definition at line 68 of file scanner_dfa_spec.hh.
|
Creates a new ScannerDfaSpec object with the given extra stuff into it. Definition at line 75 of file scanner_dfa_spec.hh. |
|
Adds a new basig dfa description into this scanner spec. A basic dfa describes a lexical state of the scanner. Definition at line 40 of file scanner_dfa_spec.cc. Referenced by DfaGenerator::createScannerDfa().
|
|
The name of the generated scanner class. Definition at line 92 of file scanner_dfa_spec.hh. |
|
The user code to be inserted before the scanner's class declaration. Definition at line 97 of file scanner_dfa_spec.hh. |
|
The user code that will be lumped inside the scanner's class. If multiple blocks or code are found inside the lexical section, they are concatenated into one big chunk of code stored into this string. Definition at line 104 of file scanner_dfa_spec.hh. |
|
This string contains the inheritance provided by the user for the scanner class. Definition at line 110 of file scanner_dfa_spec.hh. |
|
This holds the list with the DFAs for each lexical state. Definition at line 115 of file scanner_dfa_spec.hh. |