|
src
|
Classes | |
| class | Action |
| class | AltOp |
| struct | Binary |
| class | BitMap |
| struct | Case |
| struct | Cases |
| class | CatOp |
| class | CloseOp |
| struct | Code |
| struct | Cond |
| class | counter_t |
| struct | Cpgoto |
| struct | CpgotoTable |
| class | DFA |
| struct | dfa_state_t |
| struct | dfa_t |
| struct | Dot |
| class | Enc |
| struct | ExtOp |
| class | free_list |
| struct | Go |
| struct | GoBitmap |
| struct | HeaderFile |
| struct | If |
| struct | Initial |
| struct | Input |
| class | InputAPI |
| class | label_t |
| struct | Linear |
| struct | Loc |
| struct | local_increment_t |
| class | MatchOp |
| struct | nfa_state_t |
| struct | nfa_t |
| struct | Node |
| class | NullOp |
| struct | Opt |
| struct | opt_t |
| class | ord_hash_set_t |
| struct | Output |
| struct | OutputBlock |
| struct | OutputFile |
| struct | OutputFragment |
| class | path_t |
| class | Range |
| struct | RangeSuffix |
| class | realopt_t |
| class | RegExp |
| struct | rule_info_t |
| class | rule_rank_t |
| struct | rule_t |
| class | RuleOp |
| class | Scanner |
| struct | ScannerState |
| struct | Skeleton |
| class | smart_ptr |
| struct | Span |
| struct | Spec |
| struct | State |
| struct | static_assert_t |
| struct | static_assert_t< true > |
| struct | SwitchIf |
| class | uniq_vector_t |
| class | useropt_t |
| class | utf16 |
| class | utf8 |
| class | Warn |
Typedefs | |
| typedef std::vector< std::string > | RegExpIndices |
| typedef uniq_vector_t< const State * > | accept_t |
| typedef std::vector< uint32_t > | charset_t |
| typedef std::vector< std::pair< uint32_t, uint32_t > > | way_arc_t |
| typedef std::vector< const way_arc_t * > | way_t |
| typedef std::set< std::string > | CondList |
| typedef std::list< RuleOp * > | RuleOpList |
| typedef std::map< std::string, Spec > | SpecMap |
| typedef std::map< std::string, std::pair< uint32_t, std::string > > | SetupMap |
| typedef std::map< std::string, const Code * > | DefaultMap |
| typedef std::map< std::string, RegExp * > | symbol_table_t |
| typedef std::map< rule_rank_t, rule_info_t > | rules_t |
Enumerations | |
| enum | parse_opts_t { OK, EXIT_OK, EXIT_FAIL } |
| enum | dfa_minimization_t { DFA_MINIMIZATION_TABLE, DFA_MINIMIZATION_MOORE } |
| enum | empty_class_policy_t { EMPTY_CLASS_MATCH_EMPTY, EMPTY_CLASS_MATCH_NONE, EMPTY_CLASS_ERROR } |
Functions | |
| static void | doGen (const Go *g, const State *s, uint32_t *bm, uint32_t f, uint32_t m) |
| bool | matches (const Span *b1, uint32_t n1, const State *s1, const Span *b2, uint32_t n2, const State *s2) |
| void | emit_action (const Action &action, OutputFile &o, uint32_t ind, bool &readCh, const State *const s, const std::string &condName, const Skeleton *skeleton, const std::set< label_t > &used_labels, bool save_yyaccept) |
| void | genGoTo (OutputFile &o, uint32_t ind, const State *from, const State *to, bool &readCh) |
| template<typename _Ty > | |
| std::string | replaceParam (std::string str, const std::string ¶m, const _Ty &value) |
| static void | need (OutputFile &o, uint32_t ind, bool &readCh, size_t n, bool bSetMarker) |
| static void | emit_match (OutputFile &o, uint32_t ind, bool &readCh, const State *const s) |
| static void | emit_initial (OutputFile &o, uint32_t ind, bool &readCh, const State *const s, const Initial &init, const std::set< label_t > &used_labels) |
| static void | emit_save (OutputFile &o, uint32_t ind, bool &readCh, const State *const s, uint32_t save, bool save_yyaccept) |
| static void | emit_accept_binary (OutputFile &o, uint32_t ind, bool &readCh, const State *const s, const accept_t &accept, size_t l, size_t r) |
| static void | emit_accept (OutputFile &o, uint32_t ind, bool &readCh, const State *const s, const accept_t &accept) |
| static void | emit_rule (OutputFile &o, uint32_t ind, const State *const s, const RuleOp *const rule, const std::string &condName, const Skeleton *skeleton) |
| static void | genYYFill (OutputFile &o, size_t need) |
| static void | genSetCondition (OutputFile &o, uint32_t ind, const std::string &newcond) |
| static void | genSetState (OutputFile &o, uint32_t ind, uint32_t fillIndex) |
| static std::string | genGetCondition () |
| static void | genCondGotoSub (OutputFile &o, uint32_t ind, const std::vector< std::string > &condnames, uint32_t cMin, uint32_t cMax) |
| static void | genCondTable (OutputFile &o, uint32_t ind, const std::vector< std::string > &condnames) |
| static void | genCondGoto (OutputFile &o, uint32_t ind, const std::vector< std::string > &condnames) |
| static void | emit_state (OutputFile &o, uint32_t ind, const State *s, bool used_label) |
| static uint32_t | unmap (Span *new_span, const Span *old_span, uint32_t old_nspans, const State *x) |
| static void | output_if (OutputFile &o, uint32_t ind, bool &readCh, const std::string &compare, uint32_t value) |
| static void | output_goto (OutputFile &o, uint32_t ind, bool &readCh, label_t to) |
| static std::string | output_yych (bool &readCh) |
| static std::string | output_hgo (OutputFile &o, uint32_t ind, bool &readCh, SwitchIf *hgo) |
| std::string | indent (uint32_t ind) |
| std::ostream & | operator<< (std::ostream &o, label_t l) |
| void | output_state_goto (std::ostream &o, uint32_t ind, uint32_t start_label) |
| void | output_yyaccept_init (std::ostream &o, uint32_t ind, bool used_yyaccept) |
| void | output_yymaxfill (std::ostream &o, size_t max_fill) |
| void | output_line_info (std::ostream &o, uint32_t line_number, const char *file_name) |
| void | output_types (std::ostream &o, uint32_t ind, const std::vector< std::string > &types) |
| void | output_version_time (std::ostream &o) |
| std::string | output_get_state () |
| bool | is_print (uint32_t c) |
| bool | is_space (uint32_t c) |
| char | hexCh (uint32_t c) |
| void | prtChOrHex (std::ostream &o, uint32_t c) |
| void | prtHex (std::ostream &o, uint32_t c) |
| void | prtCh (std::ostream &o, uint32_t c) |
| void | prtChOrHexForSpan (std::ostream &o, uint32_t c) |
| void | printSpan (std::ostream &o, uint32_t lb, uint32_t ub) |
| void | error (const char *fmt,...) |
| void | error_encoding () |
| void | error_arg (const char *option) |
| void | warning_start (uint32_t line, bool error) |
| void | warning_end (const char *type, bool error) |
| void | warning (const char *type, uint32_t line, bool error, const char *fmt,...) |
| void | usage () |
| void | vernum () |
| void | version () |
| std::string | incond (const std::string &cond) |
| parse_opts_t | parse_opts (char **argv, Opt &opts) |
| static uint32_t | merge (Span *x0, State *fg, State *bg) |
| static std::string | make_name (const std::string &cond, uint32_t line) |
| smart_ptr< DFA > | compile (Spec &spec, Output &output, const std::string &cond, uint32_t cunits) |
| static nfa_state_t ** | closure (nfa_state_t **cP, nfa_state_t *n) |
| static size_t | find_state (nfa_state_t **kernel, nfa_state_t **end, ord_hash_set_t &kernels) |
| void | minimization (dfa_t &dfa) |
| void | fillpoints (const dfa_t &dfa, std::vector< size_t > &fill) |
| static bool | loopback (size_t node, size_t narcs, const size_t *arcs) |
| static void | scc (const dfa_t &dfa, std::stack< size_t > &stack, std::vector< size_t > &lowlink, std::vector< bool > &trivial, size_t i) |
| static void | calc_fill (const dfa_t &dfa, const std::vector< bool > &trivial, std::vector< size_t > &fill, size_t i) |
| static void | minimization_table (size_t *part, const std::vector< dfa_state_t * > &states, size_t nchars) |
| static void | minimization_moore (size_t *part, const std::vector< dfa_state_t * > &states, size_t nchars) |
| std::ostream & | operator<< (std::ostream &o, const RegExp &re) |
| bool | is_alpha (uint32_t c) |
| uint32_t | to_lower_unsafe (uint32_t c) |
| uint32_t | to_upper_unsafe (uint32_t c) |
| static RegExp * | emit (RangeSuffix *p, RegExp *re) |
| RegExp * | to_regexp (RangeSuffix *p) |
| void | UTF16addContinuous1 (RangeSuffix *&root, uint32_t l, uint32_t h) |
| void | UTF16addContinuous2 (RangeSuffix *&root, uint32_t l_ld, uint32_t h_ld, uint32_t l_tr, uint32_t h_tr) |
| void | UTF16splitByContinuity (RangeSuffix *&root, uint32_t l_ld, uint32_t h_ld, uint32_t l_tr, uint32_t h_tr) |
| void | UTF16splitByRuneLength (RangeSuffix *&root, utf16::rune l, utf16::rune h) |
| RegExp * | UTF16Symbol (utf16::rune r) |
| RegExp * | UTF16Range (const Range *r) |
| void | UTF8addContinuous (RangeSuffix *&root, utf8::rune l, utf8::rune h, uint32_t n) |
| void | UTF8splitByContinuity (RangeSuffix *&root, utf8::rune l, utf8::rune h, uint32_t n) |
| void | UTF8splitByRuneLength (RangeSuffix *&root, utf8::rune l, utf8::rune h) |
| RegExp * | UTF8Symbol (utf8::rune r) |
| RegExp * | UTF8Range (const Range *r) |
| static MatchOp * | merge (MatchOp *m1, MatchOp *m2) |
| RegExp * | doAlt (RegExp *e1, RegExp *e2) |
| RegExp * | mkAlt (RegExp *e1, RegExp *e2) |
| RegExp * | doCat (RegExp *e1, RegExp *e2) |
| RegExp * | repeat (RegExp *e, uint32_t n) |
| RegExp * | repeat_from_to (RegExp *e, uint32_t n, uint32_t m) |
| RegExp * | repeat_from (RegExp *e, uint32_t n) |
| std::ostream & | operator<< (std::ostream &o, rule_rank_t r) |
| static void | exact_uint (OutputFile &o, size_t width) |
| static void | from_le (OutputFile &o, uint32_t ind, size_t size, const char *expr) |
| template<typename cunit_t , typename key_t > | |
| static Node::covers_t | cover_one (FILE *input, FILE *keys, const path_t &path) |
| template<typename uintn_t > | |
| static uintn_t | to_le (uintn_t n) |
| template<typename key_t > | |
| static void | keygen (FILE *f, size_t count, size_t len, size_t len_match, rule_rank_t match) |
| static bool | cmp_way_arcs (const way_arc_t *a1, const way_arc_t *a2) |
| static void | fprint_way_arc (FILE *f, const way_arc_t &arc) |
| bool | cmp_ways (const way_t &w1, const way_t &w2) |
| void | fprint_way (FILE *f, const way_t &w) |
| void | parse (Scanner &, Output &) |
| void | parse_cleanup () |
| static uint32_t | hex_digit (const char c) |
| uint32_t | unesc_hex (const char *s, const char *s_end) |
| uint32_t | unesc_oct (const char *s, const char *s_end) |
| template<typename T > | |
| T * | allocate (size_t n) |
| template<typename T > | |
| smart_ptr< T > | make_smart_ptr (T *p) |
Variables | |
| Opt | opts |
| Warn | warn |
| bool | bUsedYYBitmap = false |
| bool | bWroteGetState = false |
| bool | bWroteCondCheck = false |
| uint32_t | last_fill_index = 0 |
| std::string | yySetupRule = "" |
| static const size_t | INFINITY = std::numeric_limits<size_t>::max() |
| static const size_t | UNDEFINED = INFINITY - 1 |
| typedef uniq_vector_t<const State *> re2c::accept_t |
| typedef std::vector<uint32_t> re2c::charset_t |
| typedef std::set<std::string> re2c::CondList |
| typedef std::map<std::string, const Code *> re2c::DefaultMap |
| typedef std::vector<std::string> re2c::RegExpIndices |
| typedef std::list<RuleOp*> re2c::RuleOpList |
| typedef std::map<rule_rank_t, rule_info_t> re2c::rules_t |
| typedef std::map<std::string, std::pair<uint32_t, std::string> > re2c::SetupMap |
| typedef std::map<std::string, Spec> re2c::SpecMap |
| typedef std::map<std::string, RegExp *> re2c::symbol_table_t |
| typedef std::vector<std::pair<uint32_t, uint32_t> > re2c::way_arc_t |
| typedef std::vector<const way_arc_t *> re2c::way_t |
| Enumerator | |
|---|---|
| EMPTY_CLASS_MATCH_EMPTY | |
| EMPTY_CLASS_MATCH_NONE | |
| EMPTY_CLASS_ERROR | |
Definition at line 6 of file empty_class_policy.h.
| enum re2c::parse_opts_t |
| T* re2c::allocate | ( | size_t | n | ) |
Definition at line 11 of file allocate.h.
|
static |
Definition at line 96 of file fillpoints.cc.

|
static |
Definition at line 44 of file determinization.cc.

Definition at line 20 of file way.cc.


| smart_ptr< DFA > re2c::compile | ( | Spec & | spec, |
| Output & | output, | ||
| const std::string & | cond, | ||
| uint32_t | cunits | ||
| ) |
Definition at line 29 of file compile.cc.

|
static |
|
static |
|
static |
Definition at line 22 of file range_suffix.cc.


|
static |
Definition at line 189 of file emit_action.cc.


|
static |
Definition at line 172 of file emit_action.cc.


| void re2c::emit_action | ( | const Action & | action, |
| OutputFile & | o, | ||
| uint32_t | ind, | ||
| bool & | readCh, | ||
| const State *const | s, | ||
| const std::string & | condName, | ||
| const Skeleton * | skeleton, | ||
| const std::set< label_t > & | used_labels, | ||
| bool | save_yyaccept | ||
| ) |
Definition at line 36 of file emit_action.cc.

|
static |
Definition at line 105 of file emit_action.cc.


|
static |
Definition at line 73 of file emit_action.cc.


|
static |
Definition at line 252 of file emit_action.cc.


|
static |
Definition at line 148 of file emit_action.cc.


|
static |
| void re2c::error | ( | const char * | fmt, |
| ... | |||
| ) |
| void re2c::error_arg | ( | const char * | option | ) |
| void void re2c::error_encoding | ( | ) |
|
static |
Definition at line 18 of file generate_code.cc.


| void re2c::fillpoints | ( | const dfa_t & | dfa, |
| std::vector< size_t > & | fill | ||
| ) |
Definition at line 126 of file fillpoints.cc.


|
static |
Definition at line 70 of file determinization.cc.


| void re2c::fprint_way | ( | FILE * | f, |
| const way_t & | w | ||
| ) |
|
static |
|
static |
Definition at line 42 of file generate_code.cc.


|
static |
Definition at line 309 of file emit_dfa.cc.


|
static |
Definition at line 268 of file emit_dfa.cc.


|
static |
Definition at line 257 of file emit_dfa.cc.


|
static |
| void re2c::genGoTo | ( | OutputFile & | o, |
| uint32_t | ind, | ||
| const State * | from, | ||
| const State * | to, | ||
| bool & | readCh | ||
| ) |
Definition at line 37 of file emit_dfa.cc.


|
static |
Definition at line 368 of file emit_action.cc.


|
static |
Definition at line 378 of file emit_action.cc.


|
static |
Definition at line 354 of file emit_action.cc.


|
inlinestatic |
| char re2c::hexCh | ( | uint32_t | c | ) |
| std::string re2c::incond | ( | const std::string & | cond | ) |
|
inline |
|
inline |
| bool re2c::is_print | ( | uint32_t | c | ) |
| bool re2c::is_space | ( | uint32_t | c | ) |
|
static |
Definition at line 162 of file generate_data.cc.
|
static |
|
static |
| smart_ptr<T> re2c::make_smart_ptr | ( | T * | p | ) |
| bool re2c::matches | ( | const Span * | b1, |
| uint32_t | n1, | ||
| const State * | s1, | ||
| const Span * | b2, | ||
| uint32_t | n2, | ||
| const State * | s2 | ||
| ) |
| void re2c::minimization | ( | dfa_t & | dfa | ) |
Definition at line 199 of file minimization.cc.


|
static |
Definition at line 113 of file minimization.cc.


|
static |
|
static |
Definition at line 299 of file emit_action.cc.


| std::ostream& re2c::operator<< | ( | std::ostream & | o, |
| const RegExp & | re | ||
| ) |
| std::ostream& re2c::operator<< | ( | std::ostream & | o, |
| label_t | l | ||
| ) |
| std::ostream& re2c::operator<< | ( | std::ostream & | o, |
| rule_rank_t | r | ||
| ) |
Definition at line 57 of file rule_rank.cc.
| std::string re2c::output_get_state | ( | ) |
|
static |
Definition at line 44 of file go_emit.cc.


|
static |
Definition at line 54 of file go_emit.cc.


|
static |
Definition at line 39 of file go_emit.cc.


| void re2c::output_line_info | ( | std::ostream & | o, |
| uint32_t | line_number, | ||
| const char * | file_name | ||
| ) |
| void re2c::output_state_goto | ( | std::ostream & | o, |
| uint32_t | ind, | ||
| uint32_t | start_label | ||
| ) |
| void re2c::output_types | ( | std::ostream & | o, |
| uint32_t | ind, | ||
| const std::vector< std::string > & | types | ||
| ) |
| void re2c::output_version_time | ( | std::ostream & | o | ) |
| void re2c::output_yyaccept_init | ( | std::ostream & | o, |
| uint32_t | ind, | ||
| bool | used_yyaccept | ||
| ) |
|
static |
Definition at line 26 of file go_emit.cc.


| void re2c::output_yymaxfill | ( | std::ostream & | o, |
| size_t | max_fill | ||
| ) |
| void re2c::parse_cleanup | ( | ) |
| parse_opts_t re2c::parse_opts | ( | char ** | argv, |
| Opt & | opts | ||
| ) |

| void re2c::printSpan | ( | std::ostream & | o, |
| uint32_t | lb, | ||
| uint32_t | ub | ||
| ) |
| void re2c::prtCh | ( | std::ostream & | o, |
| uint32_t | c | ||
| ) |
| void re2c::prtChOrHex | ( | std::ostream & | o, |
| uint32_t | c | ||
| ) |
| void re2c::prtChOrHexForSpan | ( | std::ostream & | o, |
| uint32_t | c | ||
| ) |
| void re2c::prtHex | ( | std::ostream & | o, |
| uint32_t | c | ||
| ) |
| std::string re2c::replaceParam | ( | std::string | str, |
| const std::string & | param, | ||
| const _Ty & | value | ||
| ) |
|
static |
Definition at line 49 of file fillpoints.cc.


|
static |
Definition at line 150 of file generate_data.cc.
|
inline |
| RegExp * re2c::to_regexp | ( | RangeSuffix * | p | ) |
Definition at line 12 of file range_suffix.cc.


|
inline |
| uint32_t re2c::unesc_hex | ( | const char * | s, |
| const char * | s_end | ||
| ) |
| uint32_t re2c::unesc_oct | ( | const char * | s, |
| const char * | s_end | ||
| ) |
Definition at line 49 of file unescape.cc.
|
static |
| void re2c::UTF16addContinuous1 | ( | RangeSuffix *& | root, |
| uint32_t | l, | ||
| uint32_t | h | ||
| ) |
| void re2c::UTF16addContinuous2 | ( | RangeSuffix *& | root, |
| uint32_t | l_ld, | ||
| uint32_t | h_ld, | ||
| uint32_t | l_tr, | ||
| uint32_t | h_tr | ||
| ) |
Definition at line 30 of file utf16_regexp.cc.

| void re2c::UTF16splitByContinuity | ( | RangeSuffix *& | root, |
| uint32_t | l_ld, | ||
| uint32_t | h_ld, | ||
| uint32_t | l_tr, | ||
| uint32_t | h_tr | ||
| ) |
Definition at line 93 of file utf16_range.cc.


| void re2c::UTF16splitByRuneLength | ( | RangeSuffix *& | root, |
| utf16::rune | l, | ||
| utf16::rune | h | ||
| ) |
Definition at line 120 of file utf16_range.cc.


| RegExp * re2c::UTF16Symbol | ( | utf16::rune | r | ) |
| void re2c::UTF8addContinuous | ( | RangeSuffix *& | root, |
| utf8::rune | l, | ||
| utf8::rune | h, | ||
| uint32_t | n | ||
| ) |
Definition at line 10 of file utf8_range.cc.


Definition at line 28 of file utf8_regexp.cc.

| void re2c::UTF8splitByContinuity | ( | RangeSuffix *& | root, |
| utf8::rune | l, | ||
| utf8::rune | h, | ||
| uint32_t | n | ||
| ) |
Definition at line 67 of file utf8_range.cc.


| void re2c::UTF8splitByRuneLength | ( | RangeSuffix *& | root, |
| utf8::rune | l, | ||
| utf8::rune | h | ||
| ) |
Definition at line 100 of file utf8_range.cc.


| RegExp * re2c::UTF8Symbol | ( | utf8::rune | r | ) |
| void re2c::version | ( | ) |
| void re2c::warning | ( | const char * | type, |
| uint32_t | line, | ||
| bool | error, | ||
| const char * | fmt, | ||
| ... | |||
| ) |
| void re2c::warning_end | ( | const char * | type, |
| bool | error | ||
| ) |
| void re2c::warning_start | ( | uint32_t | line, |
| bool | error | ||
| ) |
|
static |
Definition at line 10 of file fillpoints.cc.
|
static |
Definition at line 11 of file fillpoints.cc.
1.8.10