src
|
#include <scanner.h>
Public Types | |
enum | ParseMode { Stop, Parse, Reuse, Rules } |
Public Member Functions | |
Scanner (Input &, OutputFile &) | |
~Scanner () | |
ParseMode | echo () |
int | scan () |
void | reuse () |
void | save_state (ScannerState &) const |
void | restore_state (const ScannerState &) |
uint32_t | get_cline () const |
uint32_t | get_line () const |
const std::string & | get_fname () const |
void | set_in_parse (bool new_in_parse) |
void | fatal_at (uint32_t line, ptrdiff_t ofs, const char *msg) const |
void | fatalf_at (uint32_t line, const char *,...) const RE2C_GXX_ATTRIBUTE((format(printf |
void void | fatalf (const char *,...) const RE2C_GXX_ATTRIBUTE((format(printf |
void void void | fatal (const char *) const |
void | fatal (ptrdiff_t, const char *) const |
RegExp * | mkDiff (RegExp *e1, RegExp *e2) const |
RegExp * | mkDot () const |
RegExp * | mkDefault () const |
FORBID_COPY (Scanner) | |
Public Attributes | |
OutputFile & | out |
Enumerator | |
---|---|
Stop | |
Parse | |
Reuse | |
Rules |
re2c::Scanner::Scanner | ( | Input & | i, |
OutputFile & | o | ||
) |
Definition at line 65 of file scanner.cc.
re2c::Scanner::~Scanner | ( | ) |
Definition at line 175 of file scanner.cc.
ParseMode re2c::Scanner::echo | ( | ) |
|
inline |
void re2c::Scanner::fatal | ( | ptrdiff_t | ofs, |
const char * | msg | ||
) | const |
Definition at line 140 of file scanner.cc.
void re2c::Scanner::fatal_at | ( | uint32_t | line, |
ptrdiff_t | ofs, | ||
const char * | msg | ||
) | const |
void re2c::Scanner::fatalf | ( | const char * | fmt, |
... | |||
) | const |
Definition at line 160 of file scanner.cc.
void re2c::Scanner::fatalf_at | ( | uint32_t | line, |
const char * | fmt, | ||
... | |||
) | const |
Definition at line 145 of file scanner.cc.
re2c::Scanner::FORBID_COPY | ( | Scanner | ) |
|
inline |
|
inline |
RegExp * re2c::Scanner::mkDefault | ( | ) | const |
RegExp * re2c::Scanner::mkDot | ( | ) | const |
Definition at line 173 of file regexp.cc.
void re2c::Scanner::restore_state | ( | const ScannerState & | state | ) |
Definition at line 189 of file scanner.cc.
void re2c::Scanner::reuse | ( | ) |
|
inline |
int re2c::Scanner::scan | ( | ) |
void re2c::Scanner::set_in_parse | ( | bool | new_in_parse | ) |
Definition at line 127 of file scanner.cc.
OutputFile& re2c::Scanner::out |