Represents a state in the LR(0) automaton. More...
#include <state.hpp>
Public Member Functions | |
bool | operator== (const state &other) const |
Equality operator for comparing states based on their items. | |
Public Attributes | |
std::unordered_set< Lr0Item > | items_ |
The set of LR(0) items that make up this state. | |
unsigned int | id_ |
Unique identifier of the state. | |
Represents a state in the LR(0) automaton.
Each state consists of a unique identifier and a set of LR(0) items that define its core. States are used to build the SLR(1) parsing table.
|
inline |
Equality operator for comparing states based on their items.
other | The state to compare with. |
unsigned int state::id_ |
Unique identifier of the state.
std::unordered_set<Lr0Item> state::items_ |
The set of LR(0) items that make up this state.