src
Main Page
Namespaces
Classes
Files
File List
File Members
codegen
input_api.h
Go to the documentation of this file.
1
#ifndef _RE2C_CODEGEN_INPUT_API_
2
#define _RE2C_CODEGEN_INPUT_API_
3
4
#include "
src/util/c99_stdint.h
"
5
#include <string>
6
7
namespace
re2c
8
{
9
10
class
InputAPI
11
{
12
public
:
13
enum
type_t
14
{
DEFAULT
15
,
CUSTOM
16
};
17
18
private
:
19
type_t
type_;
20
21
public
:
22
InputAPI
();
23
type_t
type
()
const
;
24
void
set
(
type_t
t);
25
std::string
expr_peek
()
const
;
26
std::string
expr_peek_save
()
const
;
27
std::string
stmt_peek
(uint32_t ind)
const
;
28
std::string
stmt_skip
(uint32_t ind)
const
;
29
std::string
stmt_backup
(uint32_t ind)
const
;
30
std::string
stmt_backupctx
(uint32_t ind)
const
;
31
std::string
stmt_restore
(uint32_t ind)
const
;
32
std::string
stmt_restorectx
(uint32_t ind)
const
;
33
std::string
stmt_skip_peek
(uint32_t ind)
const
;
34
std::string
stmt_skip_backup
(uint32_t ind)
const
;
35
std::string
stmt_backup_peek
(uint32_t ind)
const
;
36
std::string
stmt_skip_backup_peek
(uint32_t ind)
const
;
37
std::string
expr_lessthan_one
()
const
;
38
std::string
expr_lessthan
(
size_t
n)
const
;
39
};
40
41
}
// end namespace re2c
42
43
#endif // _RE2C_CODEGEN_INPUT_API_
re2c::InputAPI::expr_peek
std::string expr_peek() const
Definition:
input_api.cc:25
re2c::InputAPI::stmt_restorectx
std::string stmt_restorectx(uint32_t ind) const
Definition:
input_api.cc:110
re2c::InputAPI::stmt_skip_backup
std::string stmt_skip_backup(uint32_t ind) const
Definition:
input_api.cc:132
re2c::InputAPI::expr_peek_save
std::string expr_peek_save() const
Definition:
input_api.cc:40
re2c::InputAPI::stmt_restore
std::string stmt_restore(uint32_t ind) const
Definition:
input_api.cc:95
re2c::InputAPI
Definition:
input_api.h:10
re2c::InputAPI::expr_lessthan_one
std::string expr_lessthan_one() const
Definition:
input_api.cc:153
re2c::InputAPI::stmt_backup_peek
std::string stmt_backup_peek(uint32_t ind) const
Definition:
input_api.cc:139
re2c::InputAPI::CUSTOM
Definition:
input_api.h:15
re2c::InputAPI::InputAPI
InputAPI()
Definition:
input_api.cc:11
re2c::InputAPI::set
void set(type_t t)
Definition:
input_api.cc:20
re2c::InputAPI::stmt_skip
std::string stmt_skip(uint32_t ind) const
Definition:
input_api.cc:50
re2c::InputAPI::stmt_skip_peek
std::string stmt_skip_peek(uint32_t ind) const
Definition:
input_api.cc:125
re2c::InputAPI::stmt_backupctx
std::string stmt_backupctx(uint32_t ind) const
Definition:
input_api.cc:80
re2c::InputAPI::stmt_backup
std::string stmt_backup(uint32_t ind) const
Definition:
input_api.cc:65
re2c::InputAPI::type_t
type_t
Definition:
input_api.h:13
re2c::InputAPI::type
type_t type() const
Definition:
input_api.cc:15
re2c::InputAPI::stmt_peek
std::string stmt_peek(uint32_t ind) const
Definition:
input_api.cc:45
c99_stdint.h
re2c::InputAPI::expr_lessthan
std::string expr_lessthan(size_t n) const
Definition:
input_api.cc:160
re2c
Definition:
bitmap.cc:10
re2c::InputAPI::stmt_skip_backup_peek
std::string stmt_skip_backup_peek(uint32_t ind) const
Definition:
input_api.cc:146
re2c::InputAPI::DEFAULT
Definition:
input_api.h:14
Generated by
1.8.10