src
range_suffix.h
Go to the documentation of this file.
1 #ifndef _RE2C_IR_REGEXP_ENCODING_RANGE_SUFFIX_
2 #define _RE2C_IR_REGEXP_ENCODING_RANGE_SUFFIX_
3 
4 #include "src/util/c99_stdint.h"
5 #include <stddef.h> // NULL
6 
7 #include "src/util/forbid_copy.h"
8 #include "src/util/free_list.h"
9 
10 namespace re2c {
11 
12 class RegExp;
13 
15 {
17 
18  uint32_t l;
19  uint32_t h;
22 
23  RangeSuffix (uint32_t lo, uint32_t hi)
24  : l (lo)
25  , h (hi)
26  , next (NULL)
27  , child (NULL)
28  {
29  freeList.insert(this);
30  }
31 
33 };
34 
35 RegExp * to_regexp (RangeSuffix * p);
36 
37 } // namespace re2c
38 
39 #endif // _RE2C_IR_REGEXP_ENCODING_RANGE_SUFFIX_
RangeSuffix(uint32_t lo, uint32_t hi)
Definition: range_suffix.h:23
RangeSuffix * child
Definition: range_suffix.h:21
RangeSuffix * next
Definition: range_suffix.h:20
FORBID_COPY(RangeSuffix)
RegExp * to_regexp(RangeSuffix *p)
Definition: range_suffix.cc:12
static free_list< RangeSuffix * > freeList
Definition: range_suffix.h:16
Definition: bitmap.cc:10