src
Main Page
Namespaces
Classes
Files
File List
File Members
parse
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
{
16
static
free_list<const Code *>
freelist
;
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_
re2c::Code::loc
const Loc loc
Definition:
code.h:18
free_list.h
re2c::free_list
Definition:
free_list.h:10
re2c::Code
Definition:
code.h:14
re2c::Code::Code
Code(const char *t, size_t t_len, const std::string &f, uint32_t l)
Definition:
code.h:21
re2c::Loc
Definition:
loc.h:11
re2c::Code::freelist
static free_list< const Code * > freelist
Definition:
code.h:16
c99_stdint.h
loc.h
re2c::Code::text
const std::string text
Definition:
code.h:19
re2c
Definition:
bitmap.cc:10
Generated by
1.8.10