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
generate_keywords.cpp File Reference

(f2ef86168843334df712008f1735631ebb8fa963)

#include <stdio.h>
#include <string.h>
#include <qbytearray.h>
#include <qlist.h>
Include dependency graph for generate_keywords.cpp:

Go to the source code of this file.

Classes

struct  Keyword
struct  State

Functions

bool is_ident_start (char s)
bool is_ident_char (char s)
void newState (QList< State > &states, const char *token, const char *lexem, bool pre)
void newState (QList< State > &states, const char *token, char lexem)
void makeTable (const Keyword keywords[])
int main (int argc, char **)
 [48]

Variables

static const Keyword pp_keywords []
static const Keyword keywords []

Function Documentation

◆ is_ident_char()

bool is_ident_char ( char s)
inline

Definition at line 249 of file generate_keywords.cpp.

◆ is_ident_start()

bool is_ident_start ( char s)
inline

Definition at line 241 of file generate_keywords.cpp.

◆ main()

int main ( int argc,
char ** argv )

[48]

[dynamic_tooltip]

[5]

[2]

[0]

[6]

[48]

[48]

[6]

[0]

[0]

[1]

[1]

[2]

[2]

[3]

[3]

[0]

[0]

[1]

[1]

[0]

[0]

[0]

[0]

[0]

[0]

Definition at line 436 of file generate_keywords.cpp.

References keywords, makeTable(), and pp_keywords.

Here is the call graph for this function:

◆ makeTable()

void makeTable ( const Keyword keywords[])

Definition at line 325 of file generate_keywords.cpp.

References State::State(), and pp_keywords.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ newState() [1/2]

void newState ( QList< State > & states,
const char * token,
char lexem )

Definition at line 312 of file generate_keywords.cpp.

References State::State().

Here is the call graph for this function:

◆ newState() [2/2]

void newState ( QList< State > & states,
const char * token,
const char * lexem,
bool pre )

Definition at line 282 of file generate_keywords.cpp.

References State::State(), is_ident_char(), and is_ident_start().

Here is the call graph for this function:

Variable Documentation

◆ keywords

const Keyword keywords
static

Definition at line 70 of file generate_keywords.cpp.

Referenced by main().

◆ pp_keywords

const Keyword pp_keywords
static

Definition at line 14 of file generate_keywords.cpp.

Referenced by main(), and makeTable().