Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
peg::ParserGenerator Class Reference

#include <peglib.h>

Classes

struct  Data
struct  Instruction
struct  ParserContext

Static Public Member Functions

static ParserContext parse (const char *s, size_t n, const Rules &rules, Log log, std::string_view start)
static bool parse_test (const char *d, const char *s)

Private Member Functions

 ParserGenerator ()
void make_grammar ()
void setup_actions ()
bool apply_precedence_instruction (Definition &rule, const PrecedenceClimbing::BinOpeInfo &info, const char *s, Log log)
ParserContext perform_core (const char *s, size_t n, const Rules &rules, Log log, std::string requested_start)
bool detect_infiniteLoop (const Data &data, Definition &rule, const Log &log, const char *s) const

Static Private Member Functions

static ParserGeneratorget_instance ()

Private Attributes

Grammar g

Constructor & Destructor Documentation

◆ ParserGenerator()

peg::ParserGenerator::ParserGenerator ( )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ apply_precedence_instruction()

bool peg::ParserGenerator::apply_precedence_instruction ( Definition & rule,
const PrecedenceClimbing::BinOpeInfo & info,
const char * s,
Log log )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ detect_infiniteLoop()

bool peg::ParserGenerator::detect_infiniteLoop ( const Data & data,
Definition & rule,
const Log & log,
const char * s ) const
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_instance()

ParserGenerator & peg::ParserGenerator::get_instance ( )
inlinestaticprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ make_grammar()

void peg::ParserGenerator::make_grammar ( )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse()

ParserContext peg::ParserGenerator::parse ( const char * s,
size_t n,
const Rules & rules,
Log log,
std::string_view start )
inlinestatic
Here is the call graph for this function:

◆ parse_test()

bool peg::ParserGenerator::parse_test ( const char * d,
const char * s )
inlinestatic
Here is the call graph for this function:

◆ perform_core()

ParserContext peg::ParserGenerator::perform_core ( const char * s,
size_t n,
const Rules & rules,
Log log,
std::string requested_start )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setup_actions()

void peg::ParserGenerator::setup_actions ( )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ g

Grammar peg::ParserGenerator::g
private

The documentation for this class was generated from the following file:
  • libcockatrice_utility/libcockatrice/utility/peglib.h