Empirical
|
A single symbol in a grammer including the patterns that generate it. More...
#include <Parser.h>
Public Member Functions | |
ParseSymbol () | |
Public Attributes | |
std::string | name |
Unique name for this parse symbol. More... | |
emp::vector< size_t > | rule_ids |
Which rules apply to this symbol? More... | |
size_t | id |
What is the unique ID of this symbol? More... | |
emp::BitVector | first |
What tokens can begin this symbol? More... | |
emp::BitVector | follow |
What tokens can come after this symbol? More... | |
bool | nullable |
Can this symbol be converted to nothing? More... | |
A single symbol in a grammer including the patterns that generate it.
|
inline |
emp::BitVector emp::ParseSymbol::first |
What tokens can begin this symbol?
emp::BitVector emp::ParseSymbol::follow |
What tokens can come after this symbol?
size_t emp::ParseSymbol::id |
What is the unique ID of this symbol?
std::string emp::ParseSymbol::name |
Unique name for this parse symbol.
bool emp::ParseSymbol::nullable |
Can this symbol be converted to nothing?
emp::vector< size_t > emp::ParseSymbol::rule_ids |
Which rules apply to this symbol?