Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
lalr.h File Reference

(2a0b9f0b9085b95bbadc2c46feba1ebd1a5d9c09)

#include <QtCore/qset.h>
#include <QtCore/qstack.h>
#include <QtCore/qmap.h>
#include <QtCore/qstring.h>
#include <QtCore/qtextstream.h>
#include <algorithm>
#include <functional>
#include <set>
#include <list>
+ Include dependency graph for lalr.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Rule
 
class  Lookback
 
class  Item
 
class  State
 
class  Node< _Tp >
 
class  Grammar
 
struct  Grammar::TokenInfo
 
class  Read
 
class  Include
 
class  Automaton
 

Namespaces

namespace  std
 

Typedefs

typedef std::list< QString >::iterator Name
 
typedef std::list< NameNameList
 
typedef std::set< NameNameSet
 
typedef std::list< ItemItemList
 
typedef ItemList::iterator ItemPointer
 
typedef std::list< Ruledebug_infot
 
typedef debug_infot::iterator RulePointer
 
typedef QMultiMap< Name, RulePointerRuleMap
 
typedef std::list< StateStateList
 
typedef StateList::iterator StatePointer
 
typedef QMap< Name, StatePointerBundle
 

Functions

bool std::operator< (Name a, Name b)
 
bool std::operator< (StatePointer a, StatePointer b)
 
bool std::operator< (ItemPointer a, ItemPointer b)
 
QTextStreamoperator<< (QTextStream &out, const Name &n)
 
QTextStreamoperator<< (QTextStream &out, const Rule &r)
 
QTextStreamoperator<< (QTextStream &out, const Item &item)
 
QTextStreamoperator<< (QTextStream &out, const NameSet &ns)
 
QT_BEGIN_NAMESPACE QTextStreamqerr ()
 
QTextStreamqout ()
 

Typedef Documentation

◆ Bundle

Definition at line 46 of file lalr.h.

◆ debug_infot

Definition at line 37 of file lalr.h.

◆ ItemList

Definition at line 33 of file lalr.h.

◆ ItemPointer

typedef ItemList::iterator ItemPointer

Definition at line 34 of file lalr.h.

◆ Name

typedef std::list<QString>::iterator Name

Definition at line 28 of file lalr.h.

◆ NameList

Definition at line 29 of file lalr.h.

◆ NameSet

typedef std::set<Name> NameSet

Definition at line 30 of file lalr.h.

◆ RuleMap

Definition at line 39 of file lalr.h.

◆ RulePointer

typedef debug_infot::iterator RulePointer

Definition at line 38 of file lalr.h.

◆ StateList

Definition at line 42 of file lalr.h.

◆ StatePointer

typedef StateList::iterator StatePointer

Definition at line 43 of file lalr.h.

Function Documentation

◆ operator<<() [1/4]

QTextStream & operator<< ( QTextStream & out,
const Item & item )

Definition at line 116 of file lalr.cpp.

References item, and out.

◆ operator<<() [2/4]

QTextStream & operator<< ( QTextStream & out,
const Name & n )

Definition at line 74 of file lalr.cpp.

References out.

◆ operator<<() [3/4]

QTextStream & operator<< ( QTextStream & out,
const NameSet & ns )

Definition at line 89 of file lalr.cpp.

References out.

◆ operator<<() [4/4]

QTextStream & operator<< ( QTextStream & out,
const Rule & r )

Definition at line 79 of file lalr.cpp.

References out.

◆ qerr()

Definition at line 20 of file lalr.cpp.

Referenced by Automaton::buildDirectReads(), Automaton::buildIncludesDigraph(), Automaton::buildLookaheads(), Automaton::buildLookbackSets(), Automaton::buildNullables(), Automaton::buildReadsDigraph(), help_me(), main(), Recognizer::nextToken(), CppGenerator::operator()(), Recognizer::parse(), and Automaton::visitIncludeNode().

+ Here is the caller graph for this function:

◆ qout()

QTextStream & qout ( )

Definition at line 26 of file lalr.cpp.

Referenced by main(), and CppGenerator::operator()().

+ Here is the caller graph for this function: