![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <peglib.h>
Public Member Functions | |
| void | clear () |
| void | add (const char *error_literal, const Definition *error_rule) |
| void | output_log (const Log &log, const char *s, size_t n) |
| void | output_log (const Log &log, const ErrorReporter &reporter, const char *s, size_t n) |
Public Attributes | |
| const char * | error_pos = nullptr |
| std::vector< std::pair< const char *, const Definition * > > | expected_tokens |
| const char * | message_pos = nullptr |
| std::string | message |
| std::string | label |
| const char * | last_output_pos = nullptr |
| bool | keep_previous_token = false |
Private Member Functions | |
| int | cast_char (char c) const |
| std::string | heuristic_error_token (const char *s, size_t n, const char *pos) const |
| std::string | replace_all (std::string str, const std::string &from, const std::string &to) const |
|
inline |
|
inlineprivate |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inlineprivate |
| const char* peg::ErrorInfo::error_pos = nullptr |
| std::vector<std::pair<const char *, const Definition *> > peg::ErrorInfo::expected_tokens |
| bool peg::ErrorInfo::keep_previous_token = false |
| std::string peg::ErrorInfo::label |
| const char* peg::ErrorInfo::last_output_pos = nullptr |
| std::string peg::ErrorInfo::message |
| const char* peg::ErrorInfo::message_pos = nullptr |