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
CppGenerator Class Reference

#include <cppgenerator.h>

+ Collaboration diagram for CppGenerator:

Public Member Functions

 CppGenerator (const Recognizer &p, Grammar &grammar, Automaton &aut, bool verbose)
 
void operator() ()
 
bool debugInfo () const
 
void setDebugInfo (bool d)
 
void setCopyright (bool t)
 
void setWarningsAreErrors (bool e)
 

Detailed Description

Definition at line 14 of file cppgenerator.h.

Constructor & Destructor Documentation

◆ CppGenerator()

CppGenerator::CppGenerator ( const Recognizer & p,
Grammar & grammar,
Automaton & aut,
bool verbose )
inline

Definition at line 17 of file cppgenerator.h.

Member Function Documentation

◆ debugInfo()

bool CppGenerator::debugInfo ( ) const
inline

Definition at line 28 of file cppgenerator.h.

◆ operator()()

void CppGenerator::operator() ( )

Definition at line 81 of file cppgenerator.cpp.

References ACTION, Qt::endl(), GOTO, i, Automaton::id(), item, j, Grammar::Left, Automaton::lookaheads, Grammar::NonAssoc, out, Q_ASSERT, qerr(), qMax(), qout(), qPrintable, QString::replace(), QList< T >::resize(), Grammar::Right, rule, state, Automaton::states, QString::toUpper(), QMap< Key, T >::value(), and QIODeviceBase::WriteOnly.

+ Here is the call graph for this function:

◆ setCopyright()

void CppGenerator::setCopyright ( bool t)
inline

Definition at line 31 of file cppgenerator.h.

Referenced by main().

+ Here is the caller graph for this function:

◆ setDebugInfo()

void CppGenerator::setDebugInfo ( bool d)
inline

Definition at line 29 of file cppgenerator.h.

References d.

Referenced by main().

+ Here is the caller graph for this function:

◆ setWarningsAreErrors()

void CppGenerator::setWarningsAreErrors ( bool e)
inline

Definition at line 33 of file cppgenerator.h.

Referenced by main().

+ Here is the caller graph for this function:

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