DynGenPar
Dynamic Generalized Parser
Public Member Functions | Public Attributes | List of all members
DynGenPar::NextTokenConstraints Struct Reference

rule constraints affecting the next token, for scannerless parsing More...

Public Member Functions

bool operator== (const NextTokenConstraints &other) const
 needed for hash tables More...
 
QDataStream & writeExternal (QDataStream &stream) const
 implementation of the QDataStream operator<< More...
 
QDataStream & readExternal (QDataStream &stream)
 implementation of the QDataStream operator>> More...
 

Public Attributes

QList< Catexpect
 list of context-free categories the next token MUST match More...
 
QList< Cattaboo
 list of context-free categories the next token MUST NOT match More...
 

Detailed Description

rule constraints affecting the next token, for scannerless parsing

Definition at line 87 of file dyngenpar.h.

Member Function Documentation

◆ operator==()

bool DynGenPar::NextTokenConstraints::operator== ( const NextTokenConstraints other) const
inline

needed for hash tables

Definition at line 105 of file dyngenpar.h.

◆ readExternal()

QDataStream& DynGenPar::NextTokenConstraints::readExternal ( QDataStream &  stream)
inline

implementation of the QDataStream operator>>

Definition at line 113 of file dyngenpar.h.

◆ writeExternal()

QDataStream& DynGenPar::NextTokenConstraints::writeExternal ( QDataStream &  stream) const
inline

implementation of the QDataStream operator<<

Definition at line 109 of file dyngenpar.h.

Member Data Documentation

◆ expect

QList<Cat> DynGenPar::NextTokenConstraints::expect

list of context-free categories the next token MUST match

The categories in this list may be nonterminals or tokens. But they MUST be context-free. In other words, they must not be PMCFG pseudo-categories, and none of the rules used to derive them may contain any PMCFG pseudo-categories or next token constraints. (In particular, it is not possible to nest next token constraints.)

Definition at line 95 of file dyngenpar.h.

◆ taboo

QList<Cat> DynGenPar::NextTokenConstraints::taboo

list of context-free categories the next token MUST NOT match

The categories in this list may be nonterminals or tokens. But they MUST be context-free. In other words, they must not be PMCFG pseudo-categories, and none of the rules used to derive them may contain any PMCFG pseudo-categories or next token constraints. (In particular, it is not possible to nest next token constraints.)

Definition at line 103 of file dyngenpar.h.


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