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

representation of the information in .pgf files in a format we can process More...

Public Member Functions

 Pgf ()
 dummy default constructor for bindings More...
 
 Pgf (const QString &fileName, const QString &concreteName=QString())
 constructor, loads concrete syntax from .pgf file More...
 

Public Attributes

Pmcfg pmcfg
 the PMCFG (in (almost) standard form) More...
 
QStringList catNames
 names of categories, in general not unique More...
 
QStringList functionNames
 names of functions, in general not unique More...
 
QHash< QString, int > tokenHash
 hash table for quick token lexing More...
 
QList< QPair< QString, int > > suffixes
 list of &+ suffixes with their IDs More...
 
QHash< QString, QStringList > componentNames
 names of category components More...
 
int firstFunction
 the function ID of the first non-coercion function More...
 

Detailed Description

representation of the information in .pgf files in a format we can process

Definition at line 52 of file pgf.h.

Constructor & Destructor Documentation

◆ Pgf() [1/2]

DynGenPar::Pgf::Pgf ( )
inline

dummy default constructor for bindings

Definition at line 54 of file pgf.h.

◆ Pgf() [2/2]

DynGenPar::Pgf::Pgf ( const QString &  fileName,
const QString &  concreteName = QString() 
)

constructor, loads concrete syntax from .pgf file

Loads a .pgf file from disk and imports it into a format we can process.

Only one concrete grammar is loaded. If the .pgf file contains more than one concrete grammar, the name of the concrete grammar to load must be specified (otherwise a fatal error is raised).

Definition at line 602 of file pgf.cpp.

Member Data Documentation

◆ catNames

QStringList DynGenPar::Pgf::catNames

names of categories, in general not unique

Definition at line 59 of file pgf.h.

◆ componentNames

QHash<QString, QStringList> DynGenPar::Pgf::componentNames

names of category components

Definition at line 64 of file pgf.h.

◆ firstFunction

int DynGenPar::Pgf::firstFunction

the function ID of the first non-coercion function

Definition at line 65 of file pgf.h.

◆ functionNames

QStringList DynGenPar::Pgf::functionNames

names of functions, in general not unique

Definition at line 60 of file pgf.h.

◆ pmcfg

Pmcfg DynGenPar::Pgf::pmcfg

the PMCFG (in (almost) standard form)

Definition at line 58 of file pgf.h.

◆ suffixes

QList<QPair<QString, int> > DynGenPar::Pgf::suffixes

list of &+ suffixes with their IDs

Definition at line 62 of file pgf.h.

◆ tokenHash

QHash<QString, int> DynGenPar::Pgf::tokenHash

hash table for quick token lexing

Definition at line 61 of file pgf.h.


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