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

An object representing a CFG (or a PMCFG in our internal representation) More...

Public Member Functions

 Cfg ()
 dummy default constructor for bindings More...
 
 Cfg (const RuleSet &r, const TokenSet &t, CatArg sc)
 
bool isToken (CatArg cat) const
 
void addToken (CatArg cat)
 
QDataStream & writeExternal (QDataStream &stream) const
 implementation of the QDataStream operator<< More...
 
QDataStream & readExternal (QDataStream &stream)
 implementation of the QDataStream operator>> More...
 

Public Attributes

RuleSet rules
 
TokenSet tokens
 
Cat startCat
 

Detailed Description

An object representing a CFG (or a PMCFG in our internal representation)

This allows passing it around more easily and loading it into the parser in one step.

Definition at line 190 of file dyngenpar.h.

Constructor & Destructor Documentation

◆ Cfg() [1/2]

DynGenPar::Cfg::Cfg ( )
inline

dummy default constructor for bindings

Definition at line 192 of file dyngenpar.h.

◆ Cfg() [2/2]

DynGenPar::Cfg::Cfg ( const RuleSet r,
const TokenSet t,
CatArg  sc 
)
inline

Definition at line 193 of file dyngenpar.h.

Member Function Documentation

◆ addToken()

void DynGenPar::Cfg::addToken ( CatArg  cat)
inline

Definition at line 199 of file dyngenpar.h.

◆ isToken()

bool DynGenPar::Cfg::isToken ( CatArg  cat) const
inline

Definition at line 198 of file dyngenpar.h.

◆ readExternal()

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

implementation of the QDataStream operator>>

Definition at line 205 of file dyngenpar.h.

◆ writeExternal()

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

implementation of the QDataStream operator<<

Definition at line 201 of file dyngenpar.h.

Member Data Documentation

◆ rules

RuleSet DynGenPar::Cfg::rules

Definition at line 195 of file dyngenpar.h.

◆ startCat

Cat DynGenPar::Cfg::startCat

Definition at line 197 of file dyngenpar.h.

◆ tokens

TokenSet DynGenPar::Cfg::tokens

Definition at line 196 of file dyngenpar.h.


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