src
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
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_
std::string expr_peek() const
Definition: input_api.cc:25
std::string stmt_restorectx(uint32_t ind) const
Definition: input_api.cc:110
std::string stmt_skip_backup(uint32_t ind) const
Definition: input_api.cc:132
std::string expr_peek_save() const
Definition: input_api.cc:40
std::string stmt_restore(uint32_t ind) const
Definition: input_api.cc:95
std::string expr_lessthan_one() const
Definition: input_api.cc:153
std::string stmt_backup_peek(uint32_t ind) const
Definition: input_api.cc:139
void set(type_t t)
Definition: input_api.cc:20
std::string stmt_skip(uint32_t ind) const
Definition: input_api.cc:50
std::string stmt_skip_peek(uint32_t ind) const
Definition: input_api.cc:125
std::string stmt_backupctx(uint32_t ind) const
Definition: input_api.cc:80
std::string stmt_backup(uint32_t ind) const
Definition: input_api.cc:65
type_t type() const
Definition: input_api.cc:15
std::string stmt_peek(uint32_t ind) const
Definition: input_api.cc:45
std::string expr_lessthan(size_t n) const
Definition: input_api.cc:160
Definition: bitmap.cc:10
std::string stmt_skip_backup_peek(uint32_t ind) const
Definition: input_api.cc:146