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

#include <grammar_p.h>

+ Inheritance diagram for grammar:
+ Collaboration diagram for grammar:

Public Types

enum  VariousConstants {
  EOF_SYMBOL = 0 , COLON = 16 , DECL = 19 , DECL_FILE = 3 ,
  ERROR = 21 , EXPECT = 4 , EXPECT_RR = 5 , ID = 1 ,
  IMPL = 20 , IMPL_FILE = 6 , LEFT = 7 , MERGED_OUTPUT = 8 ,
  NONASSOC = 9 , OR = 17 , PARSER = 10 , PREC = 11 ,
  RIGHT = 12 , SEMICOLON = 18 , START = 13 , STRING_LITERAL = 2 ,
  TOKEN = 14 , TOKEN_PREFIX = 15 , ACCEPT_STATE = 68 , RULE_COUNT = 45 ,
  STATE_COUNT = 69 , TERMINAL_COUNT = 22 , NON_TERMINAL_COUNT = 24 , GOTO_INDEX_OFFSET = 69 ,
  GOTO_INFO_OFFSET = 57 , GOTO_CHECK_OFFSET = 57
}
 

Static Public Member Functions

static int nt_action (int state, int nt)
 
static int t_action (int state, int token)
 

Static Public Attributes

static const char *const spell []
 
static const short lhs []
 
static const short rhs []
 
static const short goto_default []
 
static const short action_default []
 
static const short action_index []
 
static const short action_info []
 
static const short action_check []
 

Detailed Description

Definition at line 23 of file grammar_p.h.

Member Enumeration Documentation

◆ VariousConstants

Enumerator
EOF_SYMBOL 
COLON 
DECL 
DECL_FILE 
ERROR 
EXPECT 
EXPECT_RR 
ID 
IMPL 
IMPL_FILE 
LEFT 
MERGED_OUTPUT 
NONASSOC 
OR 
PARSER 
PREC 
RIGHT 
SEMICOLON 
START 
STRING_LITERAL 
TOKEN 
TOKEN_PREFIX 
ACCEPT_STATE 
RULE_COUNT 
STATE_COUNT 
TERMINAL_COUNT 
NON_TERMINAL_COUNT 
GOTO_INDEX_OFFSET 
GOTO_INFO_OFFSET 
GOTO_CHECK_OFFSET 

Definition at line 26 of file grammar_p.h.

Member Function Documentation

◆ nt_action()

static int grammar::nt_action ( int state,
int nt )
inlinestatic

Definition at line 70 of file grammar_p.h.

References action_check, action_index, action_info, GOTO_CHECK_OFFSET, goto_default, GOTO_INDEX_OFFSET, GOTO_INFO_OFFSET, and state.

Referenced by Recognizer::parse().

+ Here is the caller graph for this function:

◆ t_action()

static int grammar::t_action ( int state,
int token )
inlinestatic

Definition at line 79 of file grammar_p.h.

Referenced by Recognizer::parse().

+ Here is the caller graph for this function:

Member Data Documentation

◆ action_check

const short grammar::action_check
static
Initial value:
= {
1, 0, 2, 1, 1, 1, 1, 1, 1, 1,
16, 1, 1, 17, 1, 18, 1, 19, 20, 1,
1, 1, -1, -1, -1, -1, -1, -1, -1, 11,
11, 19, 20, 3, 4, 5, 6, -1, 8, -1,
10, -1, 7, -1, 9, 15, -1, 12, 13, 14,
-1, -1, -1, -1, -1, -1, -1,
15, 20, 8, 5, 5, 5, 11, 14, 5, 8,
21, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 8, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1
}

Definition at line 80 of file grammar_p.h.

Referenced by nt_action().

◆ action_default

const short grammar::action_default
static
Initial value:
= {
44, 2, 44, 0, 0, 0, 0, 13, 0, 0,
3, 0, 0, 0, 8, 10, 11, 9, 7, 6,
12, 20, 22, 0, 21, 0, 44, 31, 0, 14,
26, 24, 23, 25, 4, 33, 1, 0, 34, 44,
35, 42, 39, 40, 0, 31, 44, 40, 43, 0,
31, 41, 29, 27, 28, 32, 38, 30, 36, 31,
37, 5, 44, 16, 15, 18, 19, 17, 45
}

Definition at line 31 of file grammar_p.h.

◆ action_index

const short grammar::action_index
static
Initial value:
= {
-22, -22, 30, 1, 2, 3, 4, -22, 5, 6,
-22, 8, -1, 35, -22, -22, -22, -22, -22, -22,
-22, -22, -22, 13, -22, 7, -22, -2, 20, -22,
-22, -22, 11, -22, -22, -22, 15, -6, -22, -22,
-22, -22, -3, 19, -4, 12, -22, 18, -22, 10,
-2, -22, -22, -22, -22, -2, -22, -22, -22, -2,
-22, -22, 0, -22, 20, -22, -22, -22, -22,
0, -24, 3, -24, -24, -24, -24, -24, -24, -24,
-24, -24, -24, -24, -24, -24, -24, -24, -24, -24,
-24, -24, -24, -24, -24, -24, -2, -24, -24, -24,
-24, -24, -7, -24, -24, -24, -24, -24, -24, -24,
-24, -24, -24, -24, -24, 17, -19, -11, -24, -24,
1, -24, -24, -24, -24, -15, -24, -24, -24, -6,
-24, -24, -1, -24, -5, -24, -24, -24, -24
}

Definition at line 47 of file grammar_p.h.

Referenced by nt_action(), and Recognizer::parse().

◆ action_info

const short grammar::action_info
static
Initial value:
= {
20, 68, 66, 14, 15, 16, 17, 18, 34, 19,
40, 51, 30, 46, 30, 45, 37, 53, 54, 48,
48, 62, 0, 0, 0, 0, 0, 0, 0, 49,
49, 53, 54, 4, 5, 6, 8, 0, 9, 0,
11, 0, 21, 0, 22, 12, 0, 24, 25, 28,
0, 0, 0, 0, 0, 0, 0,
57, 47, 60, 35, 65, 1, 67, 33, 7, 56,
50, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 58, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0
}

Definition at line 65 of file grammar_p.h.

Referenced by nt_action().

◆ goto_default

const short grammar::goto_default
static
Initial value:
= {
3, 2, 13, 26, 36, 41, 10, 27, 61, 29,
64, 63, 23, 32, 31, 52, 55, 38, 39, 42,
43, 59, 44, 0
}

Definition at line 41 of file grammar_p.h.

Referenced by nt_action().

◆ lhs

const short grammar::lhs
static
Initial value:
= {
22, 23, 23, 29, 25, 28, 28, 28, 28, 28,
28, 28, 24, 24, 31, 32, 32, 33, 33, 34,
34, 34, 31, 35, 35, 36, 37, 37, 38, 38,
30, 30, 26, 26, 40, 39, 41, 41, 44, 43,
43, 42, 42, 27, 45
}

Definition at line 15 of file grammar_p.h.

Referenced by Recognizer::parse().

◆ rhs

const short grammar::rhs
static
Initial value:
= {
4, 1, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 1, 2, 2, 1, 2, 2, 2, 1,
1, 1, 2, 1, 2, 1, 1, 1, 1, 2,
0, 1, 1, 2, 2, 4, 3, 6, 0, 0,
2, 1, 2, 0, 2
}

Definition at line 23 of file grammar_p.h.

Referenced by Recognizer::parse().

◆ spell

QT_BEGIN_NAMESPACE const char *const grammar::spell
static
Initial value:
= {
"end of file", "identifier", "string literal", "%decl", "%expect", "%expect-lr", "%impl", "%left", "%merged_output", "%nonassoc",
"%parser", "%prec", "%right", "%start", "%token", "%token_prefix", ":", "|", ";", nullptr,
nullptr, nullptr
}

Definition at line 9 of file grammar_p.h.


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