#include <peglib.h>
|
| parser ()=default |
|
| parser (const char *s, size_t n) |
|
| parser (const char *s) |
|
| operator bool () |
|
bool | load_grammar (const char *s, size_t n) |
|
bool | load_grammar (const char *s) |
|
bool | parse_n (const char *s, size_t n, const char *path=nullptr) const |
|
bool | parse (const char *s, const char *path=nullptr) const |
|
bool | parse_n (const char *s, size_t n, any &dt, const char *path=nullptr) const |
|
bool | parse (const char *s, any &dt, const char *path=nullptr) const |
|
template<typename T > |
bool | parse_n (const char *s, size_t n, T &val, const char *path=nullptr) const |
|
template<typename T > |
bool | parse (const char *s, T &val, const char *path=nullptr) const |
|
template<typename T > |
bool | parse_n (const char *s, size_t n, any &dt, T &val, const char *path=nullptr) const |
|
template<typename T > |
bool | parse (const char *s, any &dt, T &val, const char *=nullptr) const |
|
bool | search (const char *s, size_t n, size_t &mpos, size_t &mlen) const |
|
bool | search (const char *s, size_t &mpos, size_t &mlen) const |
|
Definition & | operator[] (const char *s) |
|
void | enable_packrat_parsing () |
|
template<typename T = Ast> |
parser & | enable_ast () |
|
void | enable_trace (Tracer tracer) |
|
◆ parser() [1/3]
◆ parser() [2/3]
peg::parser::parser |
( |
const char * |
s, |
|
|
size_t |
n |
|
) |
| |
|
inline |
◆ parser() [3/3]
peg::parser::parser |
( |
const char * |
s | ) |
|
|
inline |
◆ enable_ast()
template<typename T = Ast>
parser& peg::parser::enable_ast |
( |
| ) |
|
|
inline |
◆ enable_packrat_parsing()
void peg::parser::enable_packrat_parsing |
( |
| ) |
|
|
inline |
◆ enable_trace()
◆ load_grammar() [1/2]
bool peg::parser::load_grammar |
( |
const char * |
s, |
|
|
size_t |
n |
|
) |
| |
|
inline |
◆ load_grammar() [2/2]
bool peg::parser::load_grammar |
( |
const char * |
s | ) |
|
|
inline |
◆ operator bool()
peg::parser::operator bool |
( |
| ) |
|
|
inline |
◆ operator[]()
◆ output_log()
◆ parse() [1/4]
bool peg::parser::parse |
( |
const char * |
s, |
|
|
const char * |
path = nullptr |
|
) |
| const |
|
inline |
◆ parse() [2/4]
bool peg::parser::parse |
( |
const char * |
s, |
|
|
any & |
dt, |
|
|
const char * |
path = nullptr |
|
) |
| const |
|
inline |
◆ parse() [3/4]
template<typename T >
bool peg::parser::parse |
( |
const char * |
s, |
|
|
T & |
val, |
|
|
const char * |
path = nullptr |
|
) |
| const |
|
inline |
◆ parse() [4/4]
template<typename T >
bool peg::parser::parse |
( |
const char * |
s, |
|
|
any & |
dt, |
|
|
T & |
val, |
|
|
const char * |
= nullptr |
|
) |
| const |
|
inline |
◆ parse_n() [1/4]
bool peg::parser::parse_n |
( |
const char * |
s, |
|
|
size_t |
n, |
|
|
const char * |
path = nullptr |
|
) |
| const |
|
inline |
◆ parse_n() [2/4]
bool peg::parser::parse_n |
( |
const char * |
s, |
|
|
size_t |
n, |
|
|
any & |
dt, |
|
|
const char * |
path = nullptr |
|
) |
| const |
|
inline |
◆ parse_n() [3/4]
template<typename T >
bool peg::parser::parse_n |
( |
const char * |
s, |
|
|
size_t |
n, |
|
|
T & |
val, |
|
|
const char * |
path = nullptr |
|
) |
| const |
|
inline |
◆ parse_n() [4/4]
template<typename T >
bool peg::parser::parse_n |
( |
const char * |
s, |
|
|
size_t |
n, |
|
|
any & |
dt, |
|
|
T & |
val, |
|
|
const char * |
path = nullptr |
|
) |
| const |
|
inline |
◆ search() [1/2]
bool peg::parser::search |
( |
const char * |
s, |
|
|
size_t |
n, |
|
|
size_t & |
mpos, |
|
|
size_t & |
mlen |
|
) |
| const |
|
inline |
◆ search() [2/2]
bool peg::parser::search |
( |
const char * |
s, |
|
|
size_t & |
mpos, |
|
|
size_t & |
mlen |
|
) |
| const |
|
inline |
◆ grammar_
std::shared_ptr<Grammar> peg::parser::grammar_ |
|
private |
◆ log
◆ match_action
◆ start_
The documentation for this class was generated from the following file: