Empirical
Public Member Functions | Public Attributes | List of all members
emp::ParseSymbol Struct Reference

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...
 

Detailed Description

A single symbol in a grammer including the patterns that generate it.

Constructor & Destructor Documentation

emp::ParseSymbol::ParseSymbol ( )
inline

Member Data Documentation

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?


The documentation for this struct was generated from the following file: