Represents an individual grammar item with its associated symbol table.
More...
#include <grammar_factory.hpp>
|
std::unordered_map< std::string, std::vector< production > > | g_ |
| Stores the grammar rules where each key is a non-terminal symbol and each value is a vector of production rules.
|
|
SymbolTable | st_ |
| Symbol table associated with this grammar item.
|
|
Represents an individual grammar item with its associated symbol table.
◆ FactoryItem()
GrammarFactory::FactoryItem::FactoryItem |
( |
const std::unordered_map< std::string, std::vector< production > > & | grammar | ) |
|
|
explicit |
Constructor that initializes a FactoryItem with the provided grammar.
- Parameters
-
◆ g_
std::unordered_map<std::string, std::vector<production> > GrammarFactory::FactoryItem::g_ |
Stores the grammar rules where each key is a non-terminal symbol and each value is a vector of production rules.
◆ st_
Symbol table associated with this grammar item.
The documentation for this struct was generated from the following files: