![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <peglib.h>
Public Member Functions | |
| AstBase (const char *path, size_t line, size_t column, const char *name, const std::vector< std::shared_ptr< AstBase > > &nodes, size_t position=0, size_t length=0, size_t choice_count=0, size_t choice=0, bool preserve_position=false) | |
| AstBase (const char *path, size_t line, size_t column, const char *name, const std::string_view &token, size_t position=0, size_t length=0, size_t choice_count=0, size_t choice=0, bool preserve_position=false) | |
| AstBase (const AstBase &ast, const char *original_name, size_t position=0, size_t length=0, size_t original_choice_count=0, size_t original_choice=0) | |
| std::string | token_to_string () const |
| template<typename T> | |
| T | token_to_number () const |
Public Attributes | |
| const std::string | path |
| const size_t | line = 1 |
| const size_t | column = 1 |
| const std::string | name |
| size_t | position |
| size_t | length |
| const size_t | choice_count |
| const size_t | choice |
| const std::string | original_name |
| const size_t | original_choice_count |
| const size_t | original_choice |
| const unsigned int | tag |
| const unsigned int | original_tag |
| const bool | is_token |
| const bool | preserve_position |
| const std::string_view | token |
| std::vector< std::shared_ptr< AstBase< Annotation > > > | nodes |
| std::weak_ptr< AstBase< Annotation > > | parent |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| const size_t peg::AstBase< Annotation >::choice |
| const size_t peg::AstBase< Annotation >::choice_count |
| const size_t peg::AstBase< Annotation >::column = 1 |
| const bool peg::AstBase< Annotation >::is_token |
| size_t peg::AstBase< Annotation >::length |
| const size_t peg::AstBase< Annotation >::line = 1 |
| const std::string peg::AstBase< Annotation >::name |
| std::vector<std::shared_ptr<AstBase<Annotation> > > peg::AstBase< Annotation >::nodes |
| const size_t peg::AstBase< Annotation >::original_choice |
| const size_t peg::AstBase< Annotation >::original_choice_count |
| const std::string peg::AstBase< Annotation >::original_name |
| const unsigned int peg::AstBase< Annotation >::original_tag |
| std::weak_ptr<AstBase<Annotation> > peg::AstBase< Annotation >::parent |
| const std::string peg::AstBase< Annotation >::path |
| size_t peg::AstBase< Annotation >::position |
| const bool peg::AstBase< Annotation >::preserve_position |
| const unsigned int peg::AstBase< Annotation >::tag |
| const std::string_view peg::AstBase< Annotation >::token |