Qt 4.8
Public Types | Static Public Functions | Static Public Variables | List of all members
QDeclarativeJSGrammar Class Reference

#include <qdeclarativejsgrammar_p.h>

Inheritance diagram for QDeclarativeJSGrammar:
QDeclarativeJS::Parser

Public Types

enum  VariousConstants {
  EOF_SYMBOL = 0, REDUCE_HERE = 100, SHIFT_THERE = 99, T_AND = 1,
  T_AND_AND = 2, T_AND_EQ = 3, T_AS = 91, T_AUTOMATIC_SEMICOLON = 62,
  T_BREAK = 4, T_CASE = 5, T_CATCH = 6, T_COLON = 7,
  T_COMMA = 8, T_COMMENT = 88, T_CONST = 84, T_CONTINUE = 9,
  T_DEBUGGER = 85, T_DEFAULT = 10, T_DELETE = 11, T_DIVIDE_ = 12,
  T_DIVIDE_EQ = 13, T_DO = 14, T_DOT = 15, T_ELSE = 16,
  T_EQ = 17, T_EQ_EQ = 18, T_EQ_EQ_EQ = 19, T_FALSE = 83,
  T_FEED_JS_EXPRESSION = 96, T_FEED_JS_PROGRAM = 98, T_FEED_JS_SOURCE_ELEMENT = 97, T_FEED_JS_STATEMENT = 95,
  T_FEED_UI_OBJECT_MEMBER = 94, T_FEED_UI_PROGRAM = 93, T_FINALLY = 20, T_FOR = 21,
  T_FUNCTION = 22, T_GE = 23, T_GT = 24, T_GT_GT = 25,
  T_GT_GT_EQ = 26, T_GT_GT_GT = 27, T_GT_GT_GT_EQ = 28, T_IDENTIFIER = 29,
  T_IF = 30, T_IMPORT = 90, T_IN = 31, T_INSTANCEOF = 32,
  T_LBRACE = 33, T_LBRACKET = 34, T_LE = 35, T_LPAREN = 36,
  T_LT = 37, T_LT_LT = 38, T_LT_LT_EQ = 39, T_MINUS = 40,
  T_MINUS_EQ = 41, T_MINUS_MINUS = 42, T_MULTILINE_STRING_LITERAL = 87, T_NEW = 43,
  T_NOT = 44, T_NOT_EQ = 45, T_NOT_EQ_EQ = 46, T_NULL = 81,
  T_NUMERIC_LITERAL = 47, T_ON = 92, T_OR = 48, T_OR_EQ = 49,
  T_OR_OR = 50, T_PLUS = 51, T_PLUS_EQ = 52, T_PLUS_PLUS = 53,
  T_PROPERTY = 66, T_PUBLIC = 89, T_QUESTION = 54, T_RBRACE = 55,
  T_RBRACKET = 56, T_READONLY = 68, T_REMAINDER = 57, T_REMAINDER_EQ = 58,
  T_RESERVED_WORD = 86, T_RETURN = 59, T_RPAREN = 60, T_SEMICOLON = 61,
  T_SIGNAL = 67, T_STAR = 63, T_STAR_EQ = 64, T_STRING_LITERAL = 65,
  T_SWITCH = 69, T_THIS = 70, T_THROW = 71, T_TILDE = 72,
  T_TRUE = 82, T_TRY = 73, T_TYPEOF = 74, T_VAR = 75,
  T_VOID = 76, T_WHILE = 77, T_WITH = 78, T_XOR = 79,
  T_XOR_EQ = 80, ACCEPT_STATE = 645, RULE_COUNT = 347, STATE_COUNT = 646,
  TERMINAL_COUNT = 101, NON_TERMINAL_COUNT = 106, GOTO_INDEX_OFFSET = 646, GOTO_INFO_OFFSET = 2714,
  GOTO_CHECK_OFFSET = 2714
}
 

Static Public Functions

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

Static Public Variables

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

Detailed Description

Definition at line 61 of file qdeclarativejsgrammar_p.h.

Enumerations

◆ VariousConstants

Enumerator
EOF_SYMBOL 
REDUCE_HERE 
SHIFT_THERE 
T_AND 
T_AND_AND 
T_AND_EQ 
T_AS 
T_AUTOMATIC_SEMICOLON 
T_BREAK 
T_CASE 
T_CATCH 
T_COLON 
T_COMMA 
T_COMMENT 
T_CONST 
T_CONTINUE 
T_DEBUGGER 
T_DEFAULT 
T_DELETE 
T_DIVIDE_ 
T_DIVIDE_EQ 
T_DO 
T_DOT 
T_ELSE 
T_EQ 
T_EQ_EQ 
T_EQ_EQ_EQ 
T_FALSE 
T_FEED_JS_EXPRESSION 
T_FEED_JS_PROGRAM 
T_FEED_JS_SOURCE_ELEMENT 
T_FEED_JS_STATEMENT 
T_FEED_UI_OBJECT_MEMBER 
T_FEED_UI_PROGRAM 
T_FINALLY 
T_FOR 
T_FUNCTION 
T_GE 
T_GT 
T_GT_GT 
T_GT_GT_EQ 
T_GT_GT_GT 
T_GT_GT_GT_EQ 
T_IDENTIFIER 
T_IF 
T_IMPORT 
T_IN 
T_INSTANCEOF 
T_LBRACE 
T_LBRACKET 
T_LE 
T_LPAREN 
T_LT 
T_LT_LT 
T_LT_LT_EQ 
T_MINUS 
T_MINUS_EQ 
T_MINUS_MINUS 
T_MULTILINE_STRING_LITERAL 
T_NEW 
T_NOT 
T_NOT_EQ 
T_NOT_EQ_EQ 
T_NULL 
T_NUMERIC_LITERAL 
T_ON 
T_OR 
T_OR_EQ 
T_OR_OR 
T_PLUS 
T_PLUS_EQ 
T_PLUS_PLUS 
T_PROPERTY 
T_PUBLIC 
T_QUESTION 
T_RBRACE 
T_RBRACKET 
T_READONLY 
T_REMAINDER 
T_REMAINDER_EQ 
T_RESERVED_WORD 
T_RETURN 
T_RPAREN 
T_SEMICOLON 
T_SIGNAL 
T_STAR 
T_STAR_EQ 
T_STRING_LITERAL 
T_SWITCH 
T_THIS 
T_THROW 
T_TILDE 
T_TRUE 
T_TRY 
T_TYPEOF 
T_VAR 
T_VOID 
T_WHILE 
T_WITH 
T_XOR 
T_XOR_EQ 
ACCEPT_STATE 
RULE_COUNT 
STATE_COUNT 
TERMINAL_COUNT 
NON_TERMINAL_COUNT 
GOTO_INDEX_OFFSET 
GOTO_INFO_OFFSET 
GOTO_CHECK_OFFSET 

Definition at line 64 of file qdeclarativejsgrammar_p.h.

64  {
65  EOF_SYMBOL = 0,
66  REDUCE_HERE = 100,
67  SHIFT_THERE = 99,
68  T_AND = 1,
69  T_AND_AND = 2,
70  T_AND_EQ = 3,
71  T_AS = 91,
73  T_BREAK = 4,
74  T_CASE = 5,
75  T_CATCH = 6,
76  T_COLON = 7,
77  T_COMMA = 8,
78  T_COMMENT = 88,
79  T_CONST = 84,
80  T_CONTINUE = 9,
81  T_DEBUGGER = 85,
82  T_DEFAULT = 10,
83  T_DELETE = 11,
84  T_DIVIDE_ = 12,
85  T_DIVIDE_EQ = 13,
86  T_DO = 14,
87  T_DOT = 15,
88  T_ELSE = 16,
89  T_EQ = 17,
90  T_EQ_EQ = 18,
91  T_EQ_EQ_EQ = 19,
92  T_FALSE = 83,
94  T_FEED_JS_PROGRAM = 98,
98  T_FEED_UI_PROGRAM = 93,
99  T_FINALLY = 20,
100  T_FOR = 21,
101  T_FUNCTION = 22,
102  T_GE = 23,
103  T_GT = 24,
104  T_GT_GT = 25,
105  T_GT_GT_EQ = 26,
106  T_GT_GT_GT = 27,
107  T_GT_GT_GT_EQ = 28,
108  T_IDENTIFIER = 29,
109  T_IF = 30,
110  T_IMPORT = 90,
111  T_IN = 31,
112  T_INSTANCEOF = 32,
113  T_LBRACE = 33,
114  T_LBRACKET = 34,
115  T_LE = 35,
116  T_LPAREN = 36,
117  T_LT = 37,
118  T_LT_LT = 38,
119  T_LT_LT_EQ = 39,
120  T_MINUS = 40,
121  T_MINUS_EQ = 41,
122  T_MINUS_MINUS = 42,
124  T_NEW = 43,
125  T_NOT = 44,
126  T_NOT_EQ = 45,
127  T_NOT_EQ_EQ = 46,
128  T_NULL = 81,
129  T_NUMERIC_LITERAL = 47,
130  T_ON = 92,
131  T_OR = 48,
132  T_OR_EQ = 49,
133  T_OR_OR = 50,
134  T_PLUS = 51,
135  T_PLUS_EQ = 52,
136  T_PLUS_PLUS = 53,
137  T_PROPERTY = 66,
138  T_PUBLIC = 89,
139  T_QUESTION = 54,
140  T_RBRACE = 55,
141  T_RBRACKET = 56,
142  T_READONLY = 68,
143  T_REMAINDER = 57,
144  T_REMAINDER_EQ = 58,
145  T_RESERVED_WORD = 86,
146  T_RETURN = 59,
147  T_RPAREN = 60,
148  T_SEMICOLON = 61,
149  T_SIGNAL = 67,
150  T_STAR = 63,
151  T_STAR_EQ = 64,
152  T_STRING_LITERAL = 65,
153  T_SWITCH = 69,
154  T_THIS = 70,
155  T_THROW = 71,
156  T_TILDE = 72,
157  T_TRUE = 82,
158  T_TRY = 73,
159  T_TYPEOF = 74,
160  T_VAR = 75,
161  T_VOID = 76,
162  T_WHILE = 77,
163  T_WITH = 78,
164  T_XOR = 79,
165  T_XOR_EQ = 80,
166 
167  ACCEPT_STATE = 645,
168  RULE_COUNT = 347,
169  STATE_COUNT = 646,
170  TERMINAL_COUNT = 101,
171  NON_TERMINAL_COUNT = 106,
172 
173  GOTO_INDEX_OFFSET = 646,
174  GOTO_INFO_OFFSET = 2714,
175  GOTO_CHECK_OFFSET = 2714
176  };

Functions

◆ nt_action()

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

Definition at line 187 of file qdeclarativejsgrammar_p.h.

Referenced by QDeclarativeJS::Parser::parse().

188  {
189  const int yyn = action_index [GOTO_INDEX_OFFSET + state] + nt;
190  if (yyn < 0 || action_check [GOTO_CHECK_OFFSET + yyn] != nt)
191  return goto_default [nt];
192 
193  return action_info [GOTO_INFO_OFFSET + yyn];
194  }
static const short action_info[]
static const short goto_default[]
#define nt(var, enu)
static const short action_index[]
static const short action_check[]

◆ t_action()

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

Definition at line 196 of file qdeclarativejsgrammar_p.h.

Referenced by QDeclarativeJS::Parser::parse().

197  {
198  const int yyn = action_index [state] + token;
199 
200  if (yyn < 0 || action_check [yyn] != token)
201  return - action_default [state];
202 
203  return action_info [yyn];
204  }
static const short action_info[]
static const short action_default[]
static const short action_index[]
static const short action_check[]

Properties

◆ action_check

const short QDeclarativeJSGrammar::action_check
static

Definition at line 185 of file qdeclarativejsgrammar_p.h.

◆ action_default

const short QDeclarativeJSGrammar::action_default
static

Definition at line 182 of file qdeclarativejsgrammar_p.h.

◆ action_index

const short QDeclarativeJSGrammar::action_index
static

Definition at line 183 of file qdeclarativejsgrammar_p.h.

Referenced by QDeclarativeJS::Parser::parse().

◆ action_info

const short QDeclarativeJSGrammar::action_info
static

Definition at line 184 of file qdeclarativejsgrammar_p.h.

◆ goto_default

const short QDeclarativeJSGrammar::goto_default
static
Initial value:
= {
7, 626, 207, 196, 205, 507, 495, 625, 644, 620,
624, 622, 627, 22, 623, 18, 506, 543, 533, 540,
535, 191, 195, 197, 201, 524, 568, 567, 200, 232,
26, 474, 473, 356, 355, 9, 354, 357, 107, 17,
145, 24, 13, 144, 19, 25, 57, 23, 8, 28,
27, 269, 15, 263, 10, 259, 12, 261, 11, 260,
20, 267, 21, 268, 14, 262, 258, 299, 411, 264,
265, 202, 193, 192, 204, 233, 203, 208, 229, 230,
194, 360, 359, 231, 463, 462, 321, 322, 465, 324,
464, 323, 419, 423, 426, 422, 421, 441, 442, 185,
199, 181, 184, 198, 206, 0}

Definition at line 181 of file qdeclarativejsgrammar_p.h.

◆ lhs

const short QDeclarativeJSGrammar::lhs
static

Definition at line 179 of file qdeclarativejsgrammar_p.h.

Referenced by QDeclarativeJS::Parser::parse().

◆ rhs

const short QDeclarativeJSGrammar::rhs
static

Definition at line 180 of file qdeclarativejsgrammar_p.h.

Referenced by QDeclarativeJS::Parser::parse().

◆ spell

const char *const QDeclarativeJSGrammar::spell
static
Initial value:
= {
"end of file", "&", "&&", "&=", "break", "case", "catch", ":", ";", "continue",
"default", "delete", "/", "/=", "do", ".", "else", "=", "==", "===",
"finally", "for", "function", ">=", ">", ">>", ">>=", ">>>", ">>>=", "identifier",
"if", "in", "instanceof", "{", "[", "<=", "(", "<", "<<", "<<=",
"-", "-=", "--", "new", "!", "!=", "!==", "numeric literal", "|", "|=",
"||", "+", "+=", "++", "?", "}", "]", "%", "%=", "return",
")", ";", 0, "*", "*=", "string literal", "property", "signal", "readonly", "switch",
"this", "throw", "~", "try", "typeof", "var", "void", "while", "with", "^",
"^=", "null", "true", "false", "const", "debugger", "reserved word", "multiline string literal", "comment", "public",
"import", "as", "on", 0, 0, 0, 0, 0, 0, 0,
0}

Definition at line 178 of file qdeclarativejsgrammar_p.h.

Referenced by QDeclarativeJS::Parser::parse().


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