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_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the Qt API. It exists for the convenience
9// of other Qt classes. This header file may change from version to
10// version without notice, or even be removed.
11//
12// We mean it.
13//
14
15// This file was generated by qlalr - DO NOT EDIT!
16#ifndef GRAMMAR_P_H
17#define GRAMMAR_P_H
18
19#include <QtCore/qglobal.h>
20
22
24{
25public:
28 COLON = 16,
29 DECL = 19,
40 OR = 17,
41 PARSER = 10,
42 PREC = 11,
43 RIGHT = 12,
45 START = 13,
47 TOKEN = 14,
49
55
59 };
60
61 static const char *const spell[];
62 static const short lhs[];
63 static const short rhs[];
64 static const short goto_default[];
65 static const short action_default[];
66 static const short action_index[];
67 static const short action_info[];
68 static const short action_check[];
69
70 static inline int nt_action (int state, int nt)
71 {
72 const int yyn = action_index [GOTO_INDEX_OFFSET + state] + nt;
73 if (yyn < 0 || action_check [GOTO_CHECK_OFFSET + yyn] != nt)
74 return goto_default [nt];
75
76 return action_info [GOTO_INFO_OFFSET + yyn];
77 }
78
79 static inline int t_action (int state, int token)
80 {
81 const int yyn = action_index [state] + token;
82
83 if (yyn < 0 || action_check [yyn] != token)
84 return - action_default [state];
85
86 return action_info [yyn];
87 }
88};
89
90
92#endif // GRAMMAR_P_H
93
static const short action_default[]
Definition grammar_p.h:31
static int t_action(int state, int token)
Definition grammar_p.h:79
static const short action_info[]
Definition grammar_p.h:65
static const short goto_default[]
Definition grammar_p.h:41
static const short action_check[]
Definition grammar_p.h:80
VariousConstants
Definition grammar_p.h:26
@ GOTO_INDEX_OFFSET
Definition grammar_p.h:56
@ GOTO_INFO_OFFSET
Definition grammar_p.h:57
@ IMPL_FILE
Definition grammar_p.h:36
@ TERMINAL_COUNT
Definition grammar_p.h:53
@ NONASSOC
Definition grammar_p.h:39
@ DECL_FILE
Definition grammar_p.h:30
@ EXPECT_RR
Definition grammar_p.h:33
@ EOF_SYMBOL
Definition grammar_p.h:27
@ STRING_LITERAL
Definition grammar_p.h:46
@ SEMICOLON
Definition grammar_p.h:44
@ NON_TERMINAL_COUNT
Definition grammar_p.h:54
@ MERGED_OUTPUT
Definition grammar_p.h:38
@ RULE_COUNT
Definition grammar_p.h:51
@ STATE_COUNT
Definition grammar_p.h:52
@ ACCEPT_STATE
Definition grammar_p.h:50
@ GOTO_CHECK_OFFSET
Definition grammar_p.h:58
@ TOKEN_PREFIX
Definition grammar_p.h:48
static const char *const spell[]
Definition grammar_p.h:9
static int nt_action(int state, int nt)
Definition grammar_p.h:70
static const short action_index[]
Definition grammar_p.h:47
static const short lhs[]
Definition grammar_p.h:15
static const short rhs[]
Definition grammar_p.h:23
else opt state
[0]
Token token
Definition keywords.cpp:444
Combined button and popup list for selecting options.