![]() |
Spicy
|
#include <sequence.h>
Public Member Functions | |
Sequence (const std::string &symbol, std::vector< Production > prods, const Location &l=location::None) | |
const std::vector< Production > & | sequence () const |
void | add (Production p) |
std::vector< std::vector< Production > > | rhss () const |
std::optional< spicy::Type > | type () const |
bool | nullable () const |
bool | eodOk () const |
bool | atomic () const |
std::string | render () const |
![]() | |
ProductionBase (std::string symbol, Location l=location::None) | |
bool | hasSize () const |
const Location & | location () const |
const std::string & | symbol () const |
void | setSymbol (const std::string &s) |
std::optional< Expression > | filter () const |
void | setFilter (const Expression &filter) |
std::optional< Expression > | sink () const |
void | setSink (const Expression &sink) |
const production::Meta & | meta () const |
void | setMeta (production::Meta m) |
std::shared_ptr< production::Meta > | _metaInstance () const |
void | _setMetaInstance (std::shared_ptr< production::Meta > m) |
Public Attributes | |
std::vector< Production > | _prods |
A wrapper that forwards directly to another grammar (within the same unit type). This can be used to hook into starting/finishing parsing for that other grammar.