1 #ifndef _RE2C_PARSE_SCANNER_
2 #define _RE2C_PARSE_SCANNER_
54 static const uint32_t BSIZE;
62 void set_sourceline ();
63 uint32_t lex_cls_chr();
64 uint32_t lex_str_chr(
char quote,
bool &end);
66 RegExp *lex_str(
char quote,
bool casing);
67 RegExp *schr(uint32_t c)
const;
68 RegExp *ichr(uint32_t c)
const;
72 void lex_conf_assign ();
73 void lex_conf_semicolon ();
74 int32_t lex_conf_number ();
75 std::string lex_conf_string ();
77 size_t tok_len ()
const;
101 void fatal_at(uint32_t line, ptrdiff_t ofs,
const char *msg)
const;
104 void fatal(const
char*) const;
105 void fatal(ptrdiff_t, const
char*) const;
114 inline
size_t Scanner::tok_len ()
const
117 return static_cast<size_t> (
cur -
tok);
147 #endif // _RE2C_PARSE_SCANNER_
void restore_state(const ScannerState &)
uint32_t get_cline() const
uint32_t get_line() const
RegExp * mkDefault() 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 save_state(ScannerState &) const
#define RE2C_GXX_ATTRIBUTE(x)
void set_in_parse(bool new_in_parse)
Scanner(Input &, OutputFile &)
lexer_state_t lexer_state
ScannerState & operator=(const ScannerState &)
const std::string & get_fname() const
RegExp * mkDiff(RegExp *e1, RegExp *e2) const
void fatal_at(uint32_t line, ptrdiff_t ofs, const char *msg) const