goomsl_yacc.c

来自「linux下的MPEG1」· C语言 代码 · 共 1,746 行 · 第 1/5 页

C
1,746
字号
      do					\	{					\	  register YYSIZE_T yyi;		\	  for (yyi = 0; yyi < (Count); yyi++)	\	    (To)[yyi] = (From)[yyi];		\	}					\      while (0)#  endif# endif/* Relocate STACK from its old location to the new one.  The   local variables YYSIZE and YYSTACKSIZE give the old and new number of   elements in the stack, and YYPTR gives the new location of the   stack.  Advance YYPTR to a properly aligned location for the next   stack.  */# define YYSTACK_RELOCATE(Stack)					\    do									\      {									\	YYSIZE_T yynewbytes;						\	YYCOPY (&yyptr->Stack, Stack, yysize);				\	Stack = &yyptr->Stack;						\	yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \	yyptr += yynewbytes / sizeof (*yyptr);				\      }									\    while (0)#endif#if defined (__STDC__) || defined (__cplusplus)   typedef signed char yysigned_char;#else   typedef short yysigned_char;#endif/* YYFINAL -- State number of the termination state. */#define YYFINAL  3/* YYLAST -- Last index in YYTABLE.  */#define YYLAST   229/* YYNTOKENS -- Number of terminals. */#define YYNTOKENS  42/* YYNNTS -- Number of nonterminals. */#define YYNNTS  30/* YYNRULES -- Number of rules. */#define YYNRULES  89/* YYNRULES -- Number of states. */#define YYNSTATES  217/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */#define YYUNDEFTOK  2#define YYMAXUTOK   279#define YYTRANSLATE(YYX) 						\  ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */static const unsigned char yytranslate[] ={       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,      25,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,      35,    36,    32,    29,    34,    30,     2,    31,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,    33,     2,      27,    26,    28,    37,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,    40,     2,    41,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,    38,     2,    39,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     1,     2,     3,     4,       5,     6,     7,     8,     9,    10,    11,    12,    13,    14,      15,    16,    17,    18,    19,    20,    21,    22,    23,    24};#if YYDEBUG/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in   YYRHS.  */static const unsigned short yyprhs[] ={       0,     0,     3,     7,    10,    19,    30,    39,    50,    53,      56,    57,    65,    68,    73,    76,    79,    82,    85,    87,      89,    90,    93,    96,    99,   102,   104,   108,   111,   112,     116,   122,   130,   131,   132,   137,   142,   147,   152,   154,     157,   160,   163,   166,   169,   172,   179,   186,   193,   195,     199,   203,   207,   211,   218,   222,   224,   227,   231,   232,     234,   236,   240,   244,   248,   252,   255,   259,   261,   265,     269,   273,   277,   281,   285,   288,   290,   292,   294,   298,     304,   310,   318,   323,   330,   333,   335,   340,   344,   346};/* YYRHS -- A `-1'-separated list of the rules' RHS. */static const yysigned_char yyrhs[] ={      43,     0,    -1,    44,    55,    52,    -1,    44,    59,    -1,      44,    11,    27,    48,    28,    50,    25,    56,    -1,    44,      11,    27,    48,    33,    51,    28,    50,    25,    56,    -1,      44,    10,    27,    49,    28,    50,    25,    56,    -1,    44,      10,    27,    49,    33,    51,    28,    50,    25,    56,    -1,      44,    45,    -1,    44,    25,    -1,    -1,    22,    27,     5,      33,    46,    28,    25,    -1,    71,    47,    -1,    46,    34,      71,    47,    -1,     8,     5,    -1,     9,     5,    -1,     7,       5,    -1,     5,     5,    -1,     5,    -1,     5,    -1,    -1,      33,     8,    -1,    33,     9,    -1,    33,     7,    -1,    33,       5,    -1,    58,    -1,    58,    34,    51,    -1,    52,    53,      -1,    -1,    54,    44,    55,    -1,    27,    49,    28,    50,      25,    -1,    27,    49,    33,    51,    28,    50,    25,    -1,      -1,    -1,     9,     5,    26,    64,    -1,     8,     5,    26,      64,    -1,     7,     5,    26,    64,    -1,     5,     5,    26,      64,    -1,    58,    -1,     9,     5,    -1,     8,     5,    -1,       7,     5,    -1,     5,     5,    -1,    62,    25,    -1,    57,      25,    -1,    35,    65,    36,    37,    71,    59,    -1,    12,      65,    71,    13,    71,    59,    -1,    38,    25,    63,    44,      39,    25,    -1,    67,    -1,     5,    15,    64,    -1,     5,      16,    64,    -1,     5,    18,    64,    -1,     5,    17,    64,      -1,    23,     5,    24,    60,    13,    59,    -1,    35,    61,      36,    -1,     5,    -1,     5,    61,    -1,     5,    26,    64,      -1,    -1,     5,    -1,    66,    -1,    64,    32,    64,    -1,      64,    31,    64,    -1,    64,    29,    64,    -1,    64,    30,      64,    -1,    30,    64,    -1,    35,    64,    36,    -1,    68,      -1,    64,    26,    64,    -1,    64,    27,    64,    -1,    64,      28,    64,    -1,    64,    19,    64,    -1,    64,    20,    64,      -1,    64,    21,    64,    -1,    14,    65,    -1,     4,    -1,       3,    -1,     6,    -1,    49,    25,    56,    -1,    49,    33,      69,    25,    56,    -1,    40,    49,    41,    25,    56,    -1,      40,    49,    33,    69,    41,    25,    56,    -1,    40,    49,      56,    41,    -1,    40,    49,    33,    69,    41,    56,    -1,      70,    69,    -1,    70,    -1,     5,    26,    56,    64,    -1,      33,    56,    64,    -1,    25,    -1,    -1};/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */static const unsigned short yyrline[] ={       0,  1236,  1236,  1238,  1239,  1240,  1241,  1242,  1243,  1244,    1245,  1250,  1253,  1254,  1257,  1258,  1259,  1260,  1265,  1267,    1270,  1271,  1272,  1273,  1274,  1277,  1278,  1283,  1284,  1287,    1289,  1291,  1294,  1296,  1300,  1301,  1302,  1303,  1304,  1307,    1308,  1309,  1310,  1315,  1316,  1317,  1318,  1319,  1320,  1321,    1322,  1323,  1324,  1325,  1328,  1330,  1331,  1334,  1336,  1339,    1340,  1341,  1342,  1343,  1344,  1345,  1346,  1347,  1350,  1351,    1352,  1353,  1354,  1355,  1356,  1359,  1360,  1361,  1366,  1367,    1368,  1369,  1373,  1374,  1377,  1378,  1380,  1384,  1393,  1393};#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", "LTYPE_INTEGER", "LTYPE_FLOAT",   "LTYPE_VAR", "LTYPE_PTR", "PTR_TK", "INT_TK", "FLOAT_TK", "DECLARE",   "EXTERNAL", "WHILE", "DO", "NOT", "PLUS_EQ", "SUB_EQ", "DIV_EQ",   "MUL_EQ", "SUP_EQ", "LOW_EQ", "NOT_EQ", "STRUCT", "FOR", "IN", "'\\n'",   "'='", "'<'", "'>'", "'+'", "'-'", "'/'", "'*'", "':'", "','", "'('",   "')'", "'?'", "'{'", "'}'", "'['", "']'", "$accept", "gsl", "gsl_code",   "struct_declaration", "struct_members", "struct_member",   "ext_task_name", "task_name", "return_type", "arglist",   "gsl_def_functions", "function", "function_intro", "function_outro",   "leave_namespace", "declaration", "empty_declaration", "instruction",   "var_list", "var_list_content", "affectation", "start_block",   "expression", "test", "constValue", "func_call", "func_call_expression",   "affectation_list", "affectation_in_list", "opt_nl", 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,    10,    61,    60,    62,    43,      45,    47,    42,    58,    44,    40,    41,    63,   123,   125,      91,    93};# endif/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */static const unsigned char yyr1[] ={       0,    42,    43,    44,    44,    44,    44,    44,    44,    44,      44,    45,    46,    46,    47,    47,    47,    47,    48,    49,      50,    50,    50,    50,    50,    51,    51,    52,    52,    53,      54,    54,    55,    56,    57,    57,    57,    57,    57,    58,      58,    58,    58,    59,    59,    59,    59,    59,    59,    59,      59,    59,    59,    59,    60,    61,    61,    62,    63,    64,      64,    64,    64,    64,    64,    64,    64,    64,    65,    65,      65,    65,    65,    65,    65,    66,    66,    66,    67,    67,      67,    67,    68,    68,    69,    69,    70,    70,    71,    71};/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */static const unsigned char yyr2[] ={       0,     2,     3,     2,     8,    10,     8,    10,     2,     2,       0,     7,     2,     4,     2,     2,     2,     2,     1,     1,       0,     2,     2,     2,     2,     1,     3,     2,     0,     3,       5,     7,     0,     0,     4,     4,     4,     4,     1,     2,       2,     2,     2,     2,     2,     6,     6,     6,     1,     3,       3,     3,     3,     6,     3,     1,     2,     3,     0,     1,       1,     3,     3,     3,     3,     2,     3,     1,     3,     3,       3,     3,     3,     3,     2,     1,     1,     1,     3,     5,       5,     7,     4,     6,     2,     1,     4,     3,     1,     0};/* 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[] ={      10,     0,    32,     1,    19,     0,     0,     0,     0,     0,       0,     0,     0,     9,     0,     0,     0,     8,     0,    28,       0,    38,     3,     0,    48,    42,     0,     0,     0,     0,       0,    41,    40,    39,     0,     0,    76,    75,    59,    77,       0,     0,     0,     0,     0,    89,    60,    67,     0,     0,       0,    58,    19,     0,    33,     0,     2,    44,    43,     0,      49,    50,    52,    51,    57,     0,     0,     0,     0,    18,       0,    74,    65,     0,    33,     0,     0,     0,     0,     0,       0,     0,     0,     0,     0,    88,     0,     0,     0,     0,      10,     0,     0,    78,     0,    33,     0,    85,     0,    27,      10,    37,    36,    35,    34,    20,     0,    20,     0,    66,       0,     0,    71,    72,    73,    68,    69,    70,    63,    64,      62,    61,    89,    89,     0,     0,    89,     0,     0,    33,      33,     0,    33,    84,     0,    32,     0,     0,     0,     0,       0,     0,     0,    25,     0,     0,     0,    82,     0,     0,       0,    55,     0,     0,     0,     0,     0,    80,     0,    87,      79,    20,     0,    29,    24,    23,    21,    22,    33,    42,      41,    40,    39,    20,     0,    33,    20,    33,    46,     0,      89,     0,     0,     0,     0,    12,    56,    54,    53,    45,      47,    33,    86,     0,     0,     6,     0,    26,     4,     0,      83,    11,     0,    17,    16,    14,    15,    81,    30,    20,      33,    33,    13,     0,     7,     5,    31};/* YYDEFGOTO[NTERM-NUM]. */static const short yydefgoto[] ={      -1,     1,     2,    17,   149,   185,    70,    18,   137,   142,      56,    99,   100,    19,    93,    20,    21,    22,   125,   152,      23,    90,    44,    45,    46,    24,    47,    96,    97,    86};/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing   STATE-NUM.  */#define YYPACT_NINF -116static const short yypact[] ={    -116,    40,   136,  -116,   103,    39,    66,    68,    61,    65,       1,    77,   101,  -116,     1,    84,   109,  -116,    12,  -116,      91,  -116,  -116,    97,  -116,    98,    72,    72,    72,    72,      72,    99,   104,   113,   109,   130,  -116,  -116,  -116,  -116,       1,    72,    72,   109,   166,   115,  -116,  -116,   145,   131,     118,  -116,  -116,   -24,  -116,    -3,   138,  -116,  -116,    72,     159,   159,   159,   159,   159,    72,    72,    72,    14,  -116,      51,  -116,    22,   102,   124,    72,    72,    72,    72,    72,      72,    72,    72,    72,    72,  -116,   160,   139,   140,   141,    -116,    -3,   152,  -116,   154,  -116,   156,    -3,   109,  -116,    -116,   159,   159,   159,   159,   150,    82,   150,    82,  -116,      -3,   158,   159,   159,   159,   159,   159,   159,    22,    22,    -116,  -116,   115,   115,   195,   188,   115,    88,   162,  -116,    -116,    72,  -116,  -116,    52,   136,   155,   177,   199,   200,     201,   202,   180,   175,   185,   183,   171,  -116,   144,    18,     161,   195,   178,   144,   144,   190,   191,  -116,    72,   159,    -116,   150,    82,  -116,  -116,  -116,  -116,  -116,  -116,  -116,    -116,  -116,  -116,   150,    82,  -116,   150,  -116,  -116,   192,     115,   208,   213,   214,   215,  -116,  -116,  -116,  -116,  -116,    -116,  -116,   159,   196,   194,  -116,   198,  -116,  -116,   203,    -116,  -116,   161,  -116,  -116,  -116,  -116,  -116,  -116,   150,    -116,  -116,  -116,   204,  -116,  -116,  -116};/* YYPGOTO[NTERM-NUM].  */static const yysigned_char yypgoto[] ={    -116,  -116,   -68,  -116,  -116,    23,  -116,   -15,  -104,   -92,    -116,  -116,  -116,    89,   -74,  -116,   -88,  -115,  -116,    75,    -116,  -116,   -16,    -6,  -116,  -116,  -116,   -62,  -116,   -99};/* 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 -1static const unsigned char yytable[] ={     111,    53,    94,   144,    36,    37,    38,    39,    50,    91,      60,    61,    62,    63,    64,    40,   145,    92,   143,    68,     143,   131,   127,   148,   150,    72,    73,   154,    74,   128,      95,    41,   135,   178,    71,   133,    42,    54,   188,   189,       3,    43,   105,   101,    31,    55,   179,   106,   146,   102,     103,   104,   180,    83,    84,   157,   158,   193,   160,   112,     113,   114,   115,   116,   117,   118,   119,   120,   121,   196,     194,    32,   199,    33,   143,    36,    37,    38,    39,   107,     161,   202,   197,   134,   108,   162,   143,   138,    34,   139,     140,   141,    35,     4,   195,     5,     6,     7,     8,     9,      10,   198,    41,   200,    48,   213,    49,    42,    25,    51,      11,    12,    43,    13,    52,   159,    57,   207,    26,    27,      28,    29,    58,    14,    59,    65,    15,   155,    16,    30,      66,    81,    82,    83,    84,    69,   214,   215,   109,    67,      85,     4,   192,     5,     6,     7,     8,     9,    10,     4,      87,     5,     6,     7,    89,    88,    10,   110,    11,    12,     164,    13,   165,   166,   167,    98,   181,    12,   182,   183,     184,    14,   123,   122,    15,   124,    16,   129,   126,    14,     130,   132,    15,   136,    16,    75,    76,    77,    81,    82,      83,    84,    78,    79,    80,    81,    82,    83,    84,   147,     151,   153,   168,   156,   169,   170,   171,   172,   173,   174,     175,   176,   177,   203,   187,   190,   191,   201,   204,   205,     206,   208,   209,   210,   163,   212,   186,     0,   211,   216};static const short yycheck[] ={      74,    16,     5,   107,     3,     4,     5,     6,    14,    33,      26,    27,    28,    29,    30,    14,   108,    41,   106,    34,     108,    95,    90,   122,   123,    41,    42,   126,    43,    91,      33,    30,   100,   148,    40,    97,    35,    25,   153,   154,       0,    40,    28,    59,     5,    33,    28,    33,   110,    65,      66,    67,    34,    31,    32,   129,   130,   161,   132,    75,      76,    77,    78,    79,    80,    81,    82,    83,    84,   173,     162,     5,   176,     5,   162,     3,     4,     5,     6,    28,      28,   180,   174,    98,    33,    33,   174,     5,    27,     7,       8,     9,    27,     5,   168,     7,     8,     9,    10,    11,      12,   175,    30,   177,    27,   209,     5,    35,     5,    25,      22,    23,    40,    25,     5,   131,    25,   191,    15,    16,      17,    18,    25,    35,    26,    26,    38,    39,    40,    26,      26,    29,    30,    31,    32,     5,   210,   211,    36,    26,      25,     5,   158,     7,     8,     9,    10,    11,    12,     5,       5,     7,     8,     9,    36,    24,    12,    33,    22,    23,       5,    25,     7,     8,     9,    27,     5,    23,  

⌨️ 快捷键说明

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