#include <scanner_dfa_writer.hh>
Inheritance diagram for ScannerDfaWriter:
Public Methods | |
ScannerDfaWriter (TokenSpec &tSpec_, PropRegistry ®istry_) | |
void | writeScanner (ScannerDfaSpec &dfa) |
Protected Methods | |
void | writeDfa (BasicDfaSpec &dfa, BasicDfaProfile &sdp) |
int | writeCharCompare (vector< unsigned char > v, int i) |
void | writeExceptionCode (const string &what, const string &handlerName, bool isName=false) |
Private Attributes | |
TokenSpec& | tSpec |
Definition at line 70 of file scanner_dfa_writer.hh.
|
Definition at line 103 of file scanner_dfa_writer.cc. |
|
Definition at line 109 of file scanner_dfa_writer.cc. |
|
Referenced by writeScanner().
|
|
Writes char comparison condition like : (c == 'a') or (('a' <= c) && (c <= 'f')), depending on what characters are found at v[i]; If a single izolated characetr is found, it writes the first form of condition; if a certain amount of successive characters is found, it writed the condition in the second form. IT always returns the first index past the last character in v it has wrtten the condition for. Referenced by writeScanner().
|
|
Dumps the code that creates an exception object, calls the handler function whose name is given (onScanError or on IOError) with that object as argument and depending on the return code either throws the exception or calls abort if use of exceptions was disabled. Referenced by writeScanner().
|
|
Definition at line 103 of file scanner_dfa_writer.hh. |