grammar.cpp

来自「konqueror3 embedded版本, KDE环境下的当家浏览器的嵌入式版」· C++ 代码 · 共 1,449 行 · 第 1/5 页

CPP
1,449
字号
     446,   447,   452,   453,   457,   461,   465,   467,   475,   476,     481,   482,   483,   486,   489,   492,   495,   501,   502,   506,     507,   511,   512,   519,   520,   524,   525,   533,   534,   538,     539,   547,   552,   557,   558,   563,   564,   568,   569,   573,     574,   578,   579,   583,   588,   589,   596,   597,   598,   602,     607,   611,   613,   617,   618,   623,   624,   630,   631,   635,     637,   642,   645,   650,   651,   655,   656};#endif#if YYDEBUG || YYERROR_VERBOSE/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.   First, the terminals, then, starting at YYNTOKENS, nonterminals. */static const char *const yytname[] ={  "$end", "error", "$undefined", "NULLTOKEN", "TRUETOKEN", "FALSETOKEN",   "STRING", "NUMBER", "BREAK", "CASE", "DEFAULT", "FOR", "NEW", "VAR",   "CONST", "CONTINUE", "FUNCTION", "RETURN", "VOID", "DELETE", "IF",   "THIS", "DO", "WHILE", "ELSE", "IN", "INSTANCEOF", "TYPEOF", "SWITCH",   "WITH", "RESERVED", "THROW", "TRY", "CATCH", "FINALLY", "EQEQ", "NE",   "STREQ", "STRNEQ", "LE", "GE", "OR", "AND", "PLUSPLUS", "MINUSMINUS",   "LSHIFT", "RSHIFT", "URSHIFT", "PLUSEQUAL", "MINUSEQUAL", "MULTEQUAL",   "DIVEQUAL", "LSHIFTEQUAL", "RSHIFTEQUAL", "URSHIFTEQUAL", "ANDEQUAL",   "MODEQUAL", "XOREQUAL", "OREQUAL", "IDENT", "AUTOPLUSPLUS",   "AUTOMINUSMINUS", "'/'", "'('", "')'", "'{'", "'}'", "'['", "']'",   "','", "':'", "'.'", "'+'", "'-'", "'~'", "'!'", "'*'", "'%'", "'<'",   "'>'", "'&'", "'^'", "'|'", "'?'", "'='", "';'", "$accept", "Literal",   "PrimaryExpr", "ArrayLiteral", "ElementList", "ElisionOpt", "Elision",   "PropertyNameAndValueList", "PropertyName", "MemberExpr", "NewExpr",   "CallExpr", "Arguments", "ArgumentList", "LeftHandSideExpr",   "PostfixExpr", "UnaryExpr", "MultiplicativeExpr", "AdditiveExpr",   "ShiftExpr", "RelationalExpr", "EqualityExpr", "BitwiseANDExpr",   "BitwiseXORExpr", "BitwiseORExpr", "LogicalANDExpr", "LogicalORExpr",   "ConditionalExpr", "AssignmentExpr", "AssignmentOperator", "Expr",   "Statement", "Block", "StatementList", "VariableStatement",   "VariableDeclarationList", "VariableDeclaration", "ConstStatement",   "ConstDeclarationList", "ConstDeclaration", "Initializer",   "EmptyStatement", "ExprStatement", "IfStatement", "IterationStatement",   "ExprOpt", "ContinueStatement", "BreakStatement", "ReturnStatement",   "WithStatement", "SwitchStatement", "CaseBlock", "CaseClausesOpt",   "CaseClauses", "CaseClause", "DefaultClause", "LabelledStatement",   "ThrowStatement", "TryStatement", "Catch", "Finally",   "FunctionDeclaration", "FunctionDeclarationInternal", "FunctionExpr",   "FormalParameterList", "FunctionBody", "Program", "SourceElements",   "SourceElement", 0};#endif# ifdef YYPRINT/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to   token YYLEX-NUM.  */static const unsigned short yytoknum[] ={       0,   256,   257,   258,   259,   260,   261,   262,   263,   264,     265,   266,   267,   268,   269,   270,   271,   272,   273,   274,     275,   276,   277,   278,   279,   280,   281,   282,   283,   284,     285,   286,   287,   288,   289,   290,   291,   292,   293,   294,     295,   296,   297,   298,   299,   300,   301,   302,   303,   304,     305,   306,   307,   308,   309,   310,   311,   312,   313,   314,     315,   316,    47,    40,    41,   123,   125,    91,    93,    44,      58,    46,    43,    45,   126,    33,    42,    37,    60,    62,      38,    94,   124,    63,    61,    59};# endif/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */static const unsigned char yyr1[] ={       0,    86,    87,    87,    87,    87,    87,    87,    87,    88,      88,    88,    88,    88,    88,    88,    89,    89,    89,    90,      90,    91,    91,    92,    92,    93,    93,    94,    94,    94,      95,    95,    95,    95,    95,    96,    96,    97,    97,    97,      97,    98,    98,    99,    99,   100,   100,   101,   101,   101,     102,   102,   102,   102,   102,   102,   102,   102,   102,   102,     102,   102,   103,   103,   103,   103,   104,   104,   104,   105,     105,   105,   105,   106,   106,   106,   106,   106,   106,   106,     107,   107,   107,   107,   107,   108,   108,   109,   109,   110,     110,   111,   111,   112,   112,   113,   113,   114,   114,   115,     115,   115,   115,   115,   115,   115,   115,   115,   115,   115,     115,   116,   116,   117,   117,   117,   117,   117,   117,   117,     117,   117,   117,   117,   117,   117,   117,   117,   118,   118,     119,   119,   120,   120,   121,   121,   122,   122,   123,   123,     124,   124,   125,   125,   126,   127,   128,   128,   129,   129,     130,   130,   130,   130,   130,   130,   130,   131,   131,   132,     132,   132,   132,   133,   133,   133,   133,   134,   134,   134,     134,   135,   136,   137,   137,   138,   138,   139,   139,   140,     140,   141,   141,   142,   143,   143,   144,   144,   144,   145,     146,   147,   147,   148,   148,   149,   149,   150,   150,   151,     151,   152,   152,   153,   153,   154,   154};/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */static const unsigned char yyr2[] ={       0,     2,     1,     1,     1,     1,     1,     1,     1,     1,       1,     1,     1,     3,     2,     3,     3,     3,     5,     2,       4,     0,     1,     1,     2,     3,     5,     1,     1,     1,       1,     1,     4,     3,     3,     1,     2,     2,     2,     4,       3,     2,     3,     1,     3,     1,     1,     1,     2,     2,       1,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     1,     3,     3,     3,     1,     3,     3,     1,       3,     3,     3,     1,     3,     3,     3,     3,     3,     3,       1,     3,     3,     3,     3,     1,     3,     1,     3,     1,       3,     1,     3,     1,     3,     1,     5,     1,     3,     1,       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,       1,     1,     3,     1,     1,     1,     1,     1,     1,     1,       1,     1,     1,     1,     1,     1,     1,     1,     2,     3,       1,     2,     3,     3,     1,     3,     1,     2,     3,     3,       1,     3,     1,     2,     2,     1,     2,     2,     5,     7,       6,     5,     9,    10,     7,     8,     9,     0,     1,     2,       2,     3,     3,     2,     2,     3,     3,     2,     2,     3,       3,     5,     5,     3,     5,     0,     1,     1,     2,     3,       4,     2,     3,     3,     3,     3,     3,     3,     4,     5,       2,     1,     2,     5,     6,     4,     5,     1,     3,     2,       3,     0,     1,     1,     2,     1,     1};/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state   STATE-NUM when YYTABLE doesn't specify something else to do.  Zero   means the default is an error.  */static const unsigned char yydefact[] ={     201,     2,     3,     4,     6,     5,     0,     0,     0,     0,       0,     0,     0,     0,     0,     0,     0,     9,     0,     0,       0,     0,     0,     0,     0,     0,     0,     8,    10,     0,       0,     7,     0,     0,    21,     0,     0,     0,     0,   145,      11,    30,    12,    35,    45,    46,    47,    50,    62,    66,      69,    73,    80,    85,    87,    89,    91,    93,    95,    97,     111,     0,   205,   113,   114,   115,   116,   117,   118,   119,     120,   121,   122,   123,   124,   125,   126,   127,   206,   191,      31,     0,   202,   203,   164,     0,   163,   157,     0,    10,       0,    35,    36,   136,     0,   134,   142,     0,   140,   160,       0,   159,     0,     0,   168,     0,   167,     0,    47,    52,     192,    51,     0,     0,     0,    53,     0,     0,     0,     0,       0,    54,    56,     0,    55,    57,     0,     6,     5,    10,      14,     0,     0,     0,    23,     0,     0,    22,    58,    59,      60,    61,     0,     0,     0,    37,     0,     0,    38,    48,      49,   100,   101,   102,   103,   104,   105,   106,   107,   110,     108,   109,    99,     0,     0,     0,     0,     0,     0,     0,       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,       0,     0,     0,     0,     0,     0,     0,     0,   147,     0,     146,     1,   204,   166,   165,     0,    47,   158,     0,    28,      29,    27,    14,    34,     0,   137,   133,     0,   132,   143,     139,     0,   138,   162,   161,     0,   197,     0,     0,   170,     169,     0,     0,     0,     0,     0,   185,   184,   128,     0,       0,   186,   187,   183,    13,    15,     0,     0,   129,    17,      21,    16,    19,    24,    41,     0,    43,     0,    33,     0,      40,    98,    64,    63,    65,    67,    68,    70,    71,    72,      79,    78,    76,    77,    74,    75,    81,    82,    83,    84,      86,    88,    90,    92,    94,     0,   112,   136,     0,     0,     157,   144,   135,   141,     0,     0,     0,   195,     0,     0,       0,     0,     0,     0,     0,     0,   190,   188,     0,    25,       0,    42,     0,    32,    39,     0,     0,   137,   157,     0,       0,   193,     0,   199,     0,   196,   198,   148,     0,   151,     175,   172,   171,     0,     0,    18,    20,    44,    96,     0,       0,     0,     0,   157,   194,   200,     0,   150,     0,     0,     176,   177,     0,    26,     0,     0,   157,   154,     0,   149,       0,     0,   173,   175,   178,   189,   155,     0,     0,     0,     179,   181,     0,   156,     0,   152,   130,   180,   182,   174,     153,   131};/* YYDEFGOTO[NTERM-NUM]. */static const short yydefgoto[] ={      -1,    40,    41,    42,   135,   136,   137,   131,   132,    43,      44,    45,   145,   245,    46,    47,    48,    49,    50,    51,      52,    53,    54,    55,    56,    57,    58,    59,    60,   163,      61,    62,    63,   367,    64,    94,    95,    65,    97,    98,     205,    66,    67,    68,    69,   198,    70,    71,    72,    73,      74,   321,   339,   340,   341,   353,    75,    76,    77,   231,     232,    78,    79,    80,   218,   287,    81,   133,    83};/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing   STATE-NUM.  */#define YYPACT_NINF -265static const short yypact[] ={     747,  -265,  -265,  -265,  -265,  -265,     5,   -45,   176,   -31,      30,     6,    -3,    67,  1232,  1305,   -14,  -265,   822,    12,    1305,    15,    74,  1305,   -13,  1305,  1305,  -265,    44,  1305,    1305,  -265,  1305,   372,    84,  1305,  1305,  1305,  1305,  -265,    -265,  -265,  -265,   -26,  -265,   -17,   251,  -265,  -265,   -19,      50,   159,   131,   184,   115,   156,   158,   200,    -2,  -265,    -265,    11,  -265,  -265,  -265,  -265,  -265,  -265,  -265,  -265,    -265,  -265,  -265,  -265,  -265,  -265,  -265,  -265,  -265,  -265,    -265,   244,   747,  -265,  -265,    10,  -265,   940,   182,  -265,      92,   -26,  -265,   178,    18,  -265,   178,    28,  -265,  -265,      16,  -265,   201,   -11,  -265,  1305,  -265,    39,    19,  -265,    -265,  -265,  1305,   240,  1305,  -265,  1305,  1305,    46,   447,     132,  -265,  -265,   822,  -265,  -265,    48,   195,   196,    44,     905,    69,   197,   522,  -265,   107,  1013,   199,  -265,  -265,    -265,  -265,  1086,  1305,   212,  -265,  1305,   214,  -265,  -265,    -265,  -265,  -265,  -265,  -265,  -265,  -265,  -265,  -265,  -265,    -265,  -265,  -265,  1305,  1305,  1305,  1305,  1305,  1305,  1305,    1305,  1305,  1305,  1305,  1305,  1305,  1305,  1305,  1305,  1305,    1305,  1305,  1305,  1305,  1305,  1305,  1305,  1305,  -265,  1305,    -265,  -265,  -265,  -265,  -265,   218,   203,   209,   194,  -265,    -265,  -265,  -265,  -265,  1305,  -265,  -265,   -31,  -265,  -265,    -265,   -31,  -265,  -265,  -265,    57,  -265,   215,    56,  -265,    -265,    85,   219,    86,    98,    99,  -265,  -265,  -265,   220,     -13,   250,  -265,  -265,  -265,  -265,    60,  1305,  -265,  -265,      84,  -265,  -265,  -265,  -265,   100,  -265,   143,  -265,   147,    -265,  -265,  -265,  -265,  -265,   -19,   -19,    50,    50,    50,     159,   159,   159,   159,   159,   159,   131,   131,   131,   131,     184,   115,   156,   158,   200,   216,  -265,     9,   -43,  1305,    1305,  -265,  -265,  -265,   215,   109,   597,  -265,   215,   226,     822,  1305,   822,   224,   822,   231,  -265,  -265,   221,  -265,    1159,  -265,  1305,  -265,  -265,  1305,  1305,   267,  1305,   120,     225,  -265,   215,  -265,   672,  -265,  -265,   273,   121,  -265,     302,  -265,  -265,   248,  1305,  -265,  -265,  -265,  -265,   129,    1305,   228,   822,  1305,  -265,  -265,   822,  -265,  1305,    26,     302,  -265,   -13,  -265,   822,   130,  1305,  -265,   252,  -265,     164,   245,  -265,   302,  -265,  -265,  -265,   822,   253,   822,     822,   822,   255,  -265,   822,  -265,  -265,   822,   822,  -265,    -265,  -265};/* YYPGOTO[NTERM-NUM].  */static const short yypgoto[] ={    -265,  -265,  -265,  -265,  -265,    82,  -265,  -265,    88,   317,     319,  -265,    -7,  -265,   188,  -265,    -5,    33,    79,   -29,      51,   148,   146,   149,   152,   145,  -265,  -265,  -128,  -265,     -10,   -18,   -23,   -27,  -265,   137,   -20,  -265,  -265,  -265,     -91,  -265,  -265,  -265,  -265,  -264,  -265,  -265,  -265,  -265,    -265,  -265,   -15,  -265,     0,  -265,  -265,  -265,  -265,  -265,     113,  -265,   331,  -265,   133,  -261,  -265,     2,   -78};/* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If   positive, shift that token.  If negative, reduce the rule which   number is the opposite.  If zero, do what YYDEFACT says.   If YYTABLE_NINF, syntax error.  */#define YYTABLE_NINF -129static const short yytable[] ={     113,   120,    82,   107,   192,   209,    84,    99,   242,   109,     111,   193,   188,   118,   246,   115,   310,   213,    87,   206,     121,   122,   126,   311,   124,   125,   207,   315,    93,   210,     138,   139,   140,   141,   306,   251,   351,   142,   148,   186,     219,   143,   308,   164,   331,   144,   142,   226,   216,   112,     146,   334,   119,   217,   147,   192,   102,   165,   166,   275,     103,   276,   149,   150,    85,   100,   199,   200,   104,   348,       1,     2,     3,     4,     5,   114,   281,   197,   116,     8,     189,   187,   358,    88,   203,   105,    15,   207,    17,    96,      86,   101,   352,   204,    20,   194,   190,   211,   199,   200,     109,   214,   221,   208,   223,   233,   224,   225,   189,   299,      25,    26,   234,   212,   123,   189,   216,   189,    27,   201,     288,   284,   167,   168,   220,   289,    89,    29,    30,    31,      32,   227,    90,   247,    34,   235,   249,   117,   236,    35,      36,    37,    38,   260,   261,   262,   263,   264,   265,   290,     292,   201,   106,   134,   189,   189,   172,   173,   202,   252,     253,   254,   293,   294,   301,   229,   230,   189,   189,   302,     174,   175,   326,   312,   327,   239,   240,   328,   289,     1,       2,     3,     4,     5,   332,   337,   307,   282,     8,   189,     189,   283,    88,   344,   357,   182,   343,    17,   189,   189,     255,   256,   108,   108,   169,   170,   171,   296,   108,   176,     177,   303,   189,   108,   108,   304,   189,   108,   108,   178,     179,   180,   181,   108,   108,   108,   108,    27,   279,   266,     267,   268,   269,   189,   360,    89,   192,   183,    31,    32,     184,    90,   185,    34,   191,   103,   149,   150,   257,   258,     259,   151,   152,   153,   154,   155,   156,   157,   158,   159,     160,   161,   204,   222,   215,   -28,   -29,   237,   243,   309,     197,   248,   317,   250,   319,   196,   322,   277,   189,   280,     286,   318,   291,   295,   230,   316,   305,   162,   314,   320,     323,   324,   330,   108,   149,   150,   329,   336,   197,   151,     152,   153,   154,   155,   156,   157,   158,   159,   160,   161,     333,   338,   342,   346,   347,   361,   359,   364,   349,   355,     345,   369,   300,   197,   298,    91,   356,    92,   350,   271,     270,   274,   278,   272,   368,   162,   197,   273,   362,   363,     354,   365,   366,   366,   297,   110,   370,     0,   285,   371,     371,     0,   108,   108,   108,   108,   108,   108,   108,   108,     108,   108,   108,   108,   108,   108,   108,   108,   108,   108,     108,   108,   108,   108,   108,     1,     2,     3,   127,   128,       6,     0,     0,     7,     8,     9,    10,    11,    12,    13,      14,    15,    16,    17,    18,    19,     0,     0,     0,    20,      21,    22,     0,    23,    24,     0,     0,     0,     0,     0,       0,     0,     0,     0,     0,    25,    26,     0,     0,     0,       0,     0,     0,    27,     0,     0,     0,     0,     0,     0,       0,   129,    29,    30,    31,    32,     0,    33,   130,    34,       0,     0,     0,     0,    35,    36,    37,    38,     0,     0,       1,     2,     3,     4,     5,     6,     0,    39,     7,     8,       9,    10,    11,    12,    13,    14,    15,    16,    17,    18,      19,     0,     0,     0,    20,    21,    22,     0,    23,    24,       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,      25,    26,     0,     0,     0,     0,     0,     0,    27,     0,       0,     0,     0,     0,     0,     0,    28,    29,    30,    31,      32,     0,    33,   228,    34,     0,     0,     0,     0,    35,

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?