parser.cpp
来自「konqueror3 embedded版本, KDE环境下的当家浏览器的嵌入式版」· C++ 代码 · 共 2,076 行 · 第 1/5 页
CPP
2,076 行
12, 49, 19, 15, 195, 19, 197, 12, 29, 12, 1, 14, 15, 16, 17, 18, 19, 214, 209, 15, 24, 49, 26, 27, 28, 216, 53, 4, 5, 56, 57, 58, 59, 54, 55, 56, 63, 1, 50, 51, 4, 63, 53, 64, 55, 12, 53, 11, 55, 19, 53, 1, 243, 56, 57, 58, 59, 254, 249, 256, 257, 252, 12, 4, 14, 15, 16, 17, 18, 19, 54, 12, 56, 264, 53, 54, 267, 18, 19, 53, 64, 55, 53, 1, 55, 53, 4, 55, 63, 280, 53, 54, 283, 11, 12, 4, 14, 288, 63, 290, 54, 55, 63, 53, 295, 53, 56, 57, 58, 59, 301, 1, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 4, 52, 1, 4, 54, 55, 57, 11, 12, 60, 14, 12, 1, 14, 15, 16, 17, 18, 19, 12, 1, 14, 15, 16, 17, 18, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 63, 52, 11, 12, 12, 14, 57, 170, 12, 60, 14, 15, 16, 17, 18, 19, 14, 15, 16, 17, 55, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 255, 52, 213, 184, 293, 105, 57, 44, 291, 60, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 235, 47, 48, 42, 262, 54, 164, -1, -1, 84};/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */static const unsigned char yystos[] ={ 0, 24, 26, 27, 28, 67, 68, 69, 70, 73, 1, 71, 53, 53, 105, 53, 0, 71, 71, 71, 72, 53, 55, 118, 4, 11, 71, 71, 71, 4, 5, 74, 1, 71, 12, 14, 15, 16, 17, 18, 19, 91, 92, 93, 94, 95, 96, 97, 98, 99, 101, 104, 1, 12, 106, 107, 108, 11, 12, 14, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 52, 57, 60, 90, 110, 112, 113, 114, 115, 20, 25, 75, 76, 77, 54, 118, 119, 55, 19, 12, 15, 50, 51, 12, 71, 19, 71, 1, 56, 105, 1, 57, 58, 59, 89, 12, 18, 96, 97, 71, 97, 1, 71, 98, 54, 55, 118, 71, 1, 54, 107, 54, 55, 15, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 113, 54, 56, 64, 111, 1, 71, 1, 71, 72, 79, 72, 1, 12, 11, 12, 13, 48, 71, 12, 18, 94, 100, 54, 71, 71, 71, 71, 95, 71, 97, 71, 71, 71, 54, 55, 54, 55, 71, 71, 1, 110, 71, 71, 112, 55, 118, 11, 49, 81, 55, 118, 12, 78, 1, 21, 22, 23, 65, 75, 80, 84, 87, 88, 91, 116, 117, 54, 118, 63, 63, 63, 63, 95, 71, 19, 6, 7, 8, 9, 10, 61, 62, 102, 93, 71, 71, 71, 110, 63, 71, 4, 81, 118, 1, 71, 1, 1, 1, 72, 63, 12, 100, 71, 29, 109, 71, 12, 82, 83, 86, 71, 55, 118, 83, 55, 118, 55, 118, 61, 102, 11, 12, 103, 71, 71, 55, 1, 56, 55, 53, 71, 71, 71, 71, 103, 61, 86, 85, 71, 54, 91, 61, 71};#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)# define YYSIZE_T __SIZE_TYPE__#endif#if ! defined (YYSIZE_T) && defined (size_t)# define YYSIZE_T size_t#endif#if ! defined (YYSIZE_T)# if defined (__STDC__) || defined (__cplusplus)# include <stddef.h> /* INFRINGES ON USER NAME SPACE */# define YYSIZE_T size_t# endif#endif#if ! defined (YYSIZE_T)# define YYSIZE_T unsigned int#endif#define yyerrok (yyerrstatus = 0)#define yyclearin (yychar = YYEMPTY)#define YYEMPTY (-2)#define YYEOF 0#define YYACCEPT goto yyacceptlab#define YYABORT goto yyabortlab#define YYERROR goto yyerrlab1/* Like YYERROR except do call yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. Once GCC version 2 has supplanted version 1, this can go. */#define YYFAIL goto yyerrlab#define YYRECOVERING() (!!yyerrstatus)#define YYBACKUP(Token, Value) \do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ yytoken = YYTRANSLATE (yychar); \ YYPOPSTACK; \ goto yybackup; \ } \ else \ { \ yyerror ("syntax error: cannot back up");\ YYERROR; \ } \while (0)#define YYTERROR 1#define YYERRCODE 256/* YYLLOC_DEFAULT -- Compute the default location (before the actions are run). */#ifndef YYLLOC_DEFAULT# define YYLLOC_DEFAULT(Current, Rhs, N) \ Current.first_line = Rhs[1].first_line; \ Current.first_column = Rhs[1].first_column; \ Current.last_line = Rhs[N].last_line; \ Current.last_column = Rhs[N].last_column;#endif/* YYLEX -- calling `yylex' with the right arguments. */#ifdef YYLEX_PARAM# define YYLEX yylex (&yylval, YYLEX_PARAM)#else# define YYLEX yylex (&yylval)#endif/* Enable debugging if requested. */#if YYDEBUG# ifndef YYFPRINTF# include <stdio.h> /* INFRINGES ON USER NAME SPACE */# define YYFPRINTF fprintf# endif# define YYDPRINTF(Args) \do { \ if (yydebug) \ YYFPRINTF Args; \} while (0)# define YYDSYMPRINT(Args) \do { \ if (yydebug) \ yysymprint Args; \} while (0)# define YYDSYMPRINTF(Title, Token, Value, Location) \do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yysymprint (stderr, \ Token, Value); \ YYFPRINTF (stderr, "\n"); \ } \} while (0)/*------------------------------------------------------------------.| yy_stack_print -- Print the state stack from its BOTTOM up to its || TOP (cinluded). |`------------------------------------------------------------------*/#if defined (__STDC__) || defined (__cplusplus)static voidyy_stack_print (short *bottom, short *top)#elsestatic voidyy_stack_print (bottom, top) short *bottom; short *top;#endif{ YYFPRINTF (stderr, "Stack now"); for (/* Nothing. */; bottom <= top; ++bottom) YYFPRINTF (stderr, " %d", *bottom); YYFPRINTF (stderr, "\n");}# define YY_STACK_PRINT(Bottom, Top) \do { \ if (yydebug) \ yy_stack_print ((Bottom), (Top)); \} while (0)/*------------------------------------------------.| Report that the YYRULE is going to be reduced. |`------------------------------------------------*/#if defined (__STDC__) || defined (__cplusplus)static voidyy_reduce_print (int yyrule)#elsestatic voidyy_reduce_print (yyrule) int yyrule;#endif{ int yyi; unsigned int yylineno = yyrline[yyrule]; YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ", yyrule - 1, yylineno); /* Print the symbols being reduced, and their result. */ for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++) YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]); YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]);}# define YY_REDUCE_PRINT(Rule) \do { \ if (yydebug) \ yy_reduce_print (Rule); \} while (0)/* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */int yydebug;#else /* !YYDEBUG */# define YYDPRINTF(Args)# define YYDSYMPRINT(Args)# define YYDSYMPRINTF(Title, Token, Value, Location)# define YY_STACK_PRINT(Bottom, Top)# define YY_REDUCE_PRINT(Rule)#endif /* !YYDEBUG *//* YYINITDEPTH -- initial size of the parser's stacks. */#ifndef YYINITDEPTH# define YYINITDEPTH 200#endif/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only if the built-in stack extension method is used). Do not make this value too large; the results are undefined if SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH) evaluated with infinite-precision integer arithmetic. */#if YYMAXDEPTH == 0# undef YYMAXDEPTH#endif#ifndef YYMAXDEPTH# define YYMAXDEPTH 10000#endif#if YYERROR_VERBOSE# ifndef yystrlen# if defined (__GLIBC__) && defined (_STRING_H)# define yystrlen strlen# else/* Return the length of YYSTR. */static YYSIZE_T# if defined (__STDC__) || defined (__cplusplus)yystrlen (const char *yystr)# elseyystrlen (yystr) const char *yystr;# endif{ register const char *yys = yystr; while (*yys++ != '\0') continue; return yys - yystr - 1;}# endif# endif# ifndef yystpcpy# if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)# define yystpcpy stpcpy# else/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */static char *# if defined (__STDC__) || defined (__cplusplus)yystpcpy (char *yydest, const char *yysrc)# elseyystpcpy (yydest, yysrc) char *yydest; const char *yysrc;# endif{ register char *yyd = yydest; register const char *yys = yysrc; while ((*yyd++ = *yys++) != '\0') continue; return yyd - 1;}# endif# endif#endif /* !YYERROR_VERBOSE */#if YYDEBUG/*--------------------------------.| Print this symbol on YYOUTPUT. |`--------------------------------*/#if defined (__STDC__) || defined (__cplusplus)static voidyysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)#elsestatic voidyysymprint (yyoutput, yytype, yyvaluep) FILE *yyoutput; int yytype; YYSTYPE *yyvaluep;#endif{ /* Pacify ``unused variable'' warnings. */ (void) yyvaluep; if (yytype < YYNTOKENS) { YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);# ifdef YYPRINT YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);# endif } else YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); switch (yytype) { default: break; } YYFPRINTF (yyoutput, ")");}#endif /* ! YYDEBUG *//*-----------------------------------------------.| Release the memory associated to this symbol. |`-----------------------------------------------*/#if defined (__STDC__) || defined (__cplusplus)static voidyydestruct (int yytype, YYSTYPE *yyvaluep)#elsestatic voidyydestruct (yytype, yyvaluep) int yytype; YYSTYPE *yyvaluep;#endif{ /* Pacify ``unused variable'' warnings. */ (void) yyvaluep; switch (yytype) { case 82: /* maybe_media_list */ { delete yyvaluep->mediaList; yyvaluep->mediaList = 0; }; break; case 83: /* media_list */ { delete yyvaluep->mediaList; yyvaluep->mediaList = 0; }; break; case 85: /* ruleset_list */ { delete yyvaluep->ruleList; yyvaluep->ruleList = 0; }; break; case 92: /* selector_list */ { delete yyvaluep->selectorList; yyvaluep->selectorList = 0; }; break; case 93: /* selector */ { delete yyvaluep->selector; yyvaluep->selector = 0; }; break; case 95: /* simple_selector */ { delete yyvaluep->selector; yyvaluep->selector = 0; }; break; case 97: /* specifier_list */ { delete yyvaluep->selector; yyvaluep->selector = 0; }; break; case 98: /* specifier */ { delete yyvaluep->selector; yyvaluep->selector = 0; }; break; case 99: /* class */ { delete yyvaluep->selector; yyvaluep->selector = 0; };
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?