src
code.h
Go to the documentation of this file.
1 #ifndef _RE2C_PARSE_CODE_
2 #define _RE2C_PARSE_CODE_
3 
4 #include "src/util/c99_stdint.h"
5 #include <stddef.h>
6 #include <string>
7 
8 #include "src/parse/loc.h"
9 #include "src/util/free_list.h"
10 
11 namespace re2c
12 {
13 
14 struct Code
15 {
17 
18  const Loc loc;
19  const std::string text;
20 
21  inline Code (const char * t, size_t t_len, const std::string & f, uint32_t l)
22  : loc (f, l)
23  , text (t, t_len)
24  {
25  freelist.insert (this);
26  }
27 };
28 
29 } // namespace re2c
30 
31 #endif // _RE2C_PARSE_CODE_
const Loc loc
Definition: code.h:18
Code(const char *t, size_t t_len, const std::string &f, uint32_t l)
Definition: code.h:21
Definition: loc.h:11
static free_list< const Code * > freelist
Definition: code.h:16
const std::string text
Definition: code.h:19
Definition: bitmap.cc:10