Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
main.cpp File Reference

(c5c3a7e0db75e0e8a41a2b99ab40c7d803bc905c)

#include "lalr.h"
#include "dotgraph.h"
#include "parsetable.h"
#include "cppgenerator.h"
#include "recognizer.h"
#include <QtCore/qcoreapplication.h>
#include <QtCore/qfile.h>
#include <QtCore/qstringlist.h>
#include <QtCore/qdebug.h>
#include <cstdlib>
Include dependency graph for main.cpp:

Go to the source code of this file.

Macros

#define QLALR_NO_DEBUG_TABLE
#define QLALR_NO_DEBUG_DOT

Functions

static void help_me ()
int main (int argc, char *argv[])
 [ctor_close]

Macro Definition Documentation

◆ QLALR_NO_DEBUG_DOT

#define QLALR_NO_DEBUG_DOT

Definition at line 18 of file main.cpp.

◆ QLALR_NO_DEBUG_TABLE

#define QLALR_NO_DEBUG_TABLE

Definition at line 17 of file main.cpp.

Function Documentation

◆ help_me()

void help_me ( )
static

Definition at line 22 of file main.cpp.

Referenced by main().

Here is the caller graph for this function:

◆ main()

int main ( int argc,
char * argv[] )

[ctor_close]

[0] [1]

[main_cpp]

[main.cpp body]

The main function for the string list model example.

Create a default directory model and, using the index-based interface to the model and some QLabel widgets, populate the window's layout with the names of objects in the directory.

[0] //! [1]

[1]

[using a custom style]

[4]

[QApplication subclass]

[2]

[21]

[getter functions]

[0]

[3]

[main]

This creates and populates a model with values from a string list then displays the contents of the model using a QListView widget. [0]

[ctor_close]

[printing a custom type]

[printing a custom type] [storing a custom value]

[storing a custom value]

[retrieving a custom value]

[retrieving a custom value]

[0]

[0] [1]

[1]

[0]

[0]

[1]

[1] [2]

[2]

[0]

[0]

[2]

[2]

[22]

[22]

[3]

[3]

[4]

[4]

[10]

[10]

[qcinfo_stream]

[qcinfo_stream]

[11]

[11]

[12]

[12]

[13]

[13]

[qcinfo_printf]

[qcinfo_printf]

[14]

[14]

[15]

[15]

[16]

[16]

[17]

[17]

[0]

[0]

[1]

[1]

[2]

[2]

[Window class using revision]

[Window class using revision]

[0]

[0]

[1]

[1]

[2]

[2]

[write output] [start stream]

[start stream]

[write element]

[write element]

[finish stream]

[finish stream] [write output]

[1]

[1]

[0]

[0]

[0]

[0] //! [1]

[1]

[0]

[0] //! [1]

[1]

[0]

[0] //! [1]

[1] //! [2]

[2]

[0]

[0]

[1]

[1]

[Adding a resource]

[Adding a resource]

[Inserting an image with a cursor]

[Inserting an image with a cursor]

[Inserting an image using HTML]

[Inserting an image using HTML]

[0]

[0] //! [1]

[1]

[1]

[2]

[2]

[3]

[0]

[1]

[1]

Definition at line 37 of file main.cpp.

References Automaton::Automaton(), CppGenerator::CppGenerator(), Automaton::build(), Grammar::buildExtendedGrammar(), Grammar::buildRuleMap(), help_me(), CppGenerator::operator()(), DotGraph::operator()(), ParseTable::operator()(), qout(), Grammar::rules, CppGenerator::setCopyright(), CppGenerator::setDebugInfo(), CppGenerator::setWarningsAreErrors(), and Grammar::start.

Here is the call graph for this function: