Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
State Struct Reference

#include <lalr.h>

+ Collaboration diagram for State:

Public Member Functions

 State (const char *token)
 
bool operator== (const State &o) const
 
 State (Grammar *grammar)
 
bool operator== (const State &other) const
 
bool operator!= (const State &other) const
 
std::pair< ItemPointer, bool > insert (const Item &item)
 
std::pair< ItemPointer, bool > insertClosure (const Item &item)
 
 State (const char *token)
 
bool operator== (const State &o) const
 

Public Attributes

QByteArray token
 
int next [128]
 
int nextindex
 
char defchar
 
int defnext
 
const char * ident
 
ItemList kernel
 
ItemList closure
 
Bundle bundle
 
QMap< Name, NameSetreads
 
QMap< Name, NameSetfollows
 
RulePointer defaultReduce
 

Detailed Description

Definition at line 255 of file generate_keywords.cpp.

Constructor & Destructor Documentation

◆ State() [1/3]

State::State ( const char * token)
inline

Definition at line 257 of file generate_keywords.cpp.

References defchar, defnext, ident, next, and nextindex.

Referenced by makeTable(), newState(), and newState().

+ Here is the caller graph for this function:

◆ State() [2/3]

State::State ( Grammar * grammar)

Definition at line 137 of file lalr.cpp.

References defaultReduce, and Grammar::rules.

Referenced by Automaton::build(), and _Bucket::toState().

+ Here is the caller graph for this function:

◆ State() [3/3]

State::State ( const char * token)
inline

Definition at line 257 of file generate_keywords.cpp.

Member Function Documentation

◆ insert()

std::pair< ItemPointer, bool > State::insert ( const Item & item)

Definition at line 142 of file lalr.cpp.

References kernel.

◆ insertClosure()

std::pair< ItemPointer, bool > State::insertClosure ( const Item & item)

Definition at line 152 of file lalr.cpp.

References closure.

◆ operator!=()

bool State::operator!= ( const State & other) const
inline

Definition at line 116 of file lalr.h.

References kernel.

◆ operator==() [1/3]

bool State::operator== ( const State & o) const
inline

Definition at line 270 of file generate_keywords.cpp.

◆ operator==() [2/3]

bool State::operator== ( const State & o) const
inline

Definition at line 270 of file generate_keywords.cpp.

◆ operator==() [3/3]

bool State::operator== ( const State & other) const
inline

Definition at line 113 of file lalr.h.

References kernel.

Member Data Documentation

◆ bundle

Bundle State::bundle

Definition at line 125 of file lalr.h.

◆ closure

ItemList State::closure

Definition at line 124 of file lalr.h.

Referenced by insertClosure().

◆ defaultReduce

RulePointer State::defaultReduce

Definition at line 128 of file lalr.h.

Referenced by State().

◆ defchar

char State::defchar

Definition at line 265 of file generate_keywords.cpp.

Referenced by State().

◆ defnext

int State::defnext

Definition at line 266 of file generate_keywords.cpp.

Referenced by State().

◆ follows

QMap<Name, NameSet> State::follows

Definition at line 127 of file lalr.h.

◆ ident

const char * State::ident

Definition at line 268 of file generate_keywords.cpp.

Referenced by State().

◆ kernel

ItemList State::kernel

Definition at line 123 of file lalr.h.

Referenced by insert(), operator!=(), and operator==().

◆ next

int State::next

Definition at line 262 of file generate_keywords.cpp.

Referenced by State().

◆ nextindex

int State::nextindex

Definition at line 263 of file generate_keywords.cpp.

Referenced by State().

◆ reads

QMap<Name, NameSet> State::reads

Definition at line 126 of file lalr.h.

◆ token

QByteArray State::token

Definition at line 261 of file generate_keywords.cpp.


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