⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mod_yacc.c

📁 ngspice又一个电子CAD仿真软件代码.功能更全
💻 C
📖 第 1 页 / 共 4 页
字号:
#  endif# endif# ifdef YYSTACK_ALLOC   /* Pacify GCC's `empty if-body' warning. */#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)# else#  if defined (__STDC__) || defined (__cplusplus)#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */#   define YYSIZE_T size_t#  endif#  define YYSTACK_ALLOC YYMALLOC#  define YYSTACK_FREE YYFREE# endif#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */#if (! defined (yyoverflow) \     && (! defined (__cplusplus) \	 || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL)))/* A type that is properly aligned for any stack member.  */union yyalloc{  short int yyss;  YYSTYPE yyvs;  };/* The size of the maximum gap between one aligned stack and the next.  */# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)/* The size of an array large to enough to hold all stacks, each with   N elements.  */# define YYSTACK_BYTES(N) \     ((N) * (sizeof (short int) + sizeof (YYSTYPE))			\      + YYSTACK_GAP_MAXIMUM)/* Copy COUNT objects from FROM to TO.  The source and destination do   not overlap.  */# ifndef YYCOPY#  if defined (__GNUC__) && 1 < __GNUC__#   define YYCOPY(To, From, Count) \      __builtin_memcpy (To, From, (Count) * sizeof (*(From)))#  else#   define YYCOPY(To, From, Count)		\      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 int yysigned_char;#endif/* YYFINAL -- State number of the termination state. */#define YYFINAL  2/* YYLAST -- Last index in YYTABLE.  */#define YYLAST   214/* YYNTOKENS -- Number of terminals. */#define YYNTOKENS  42/* YYNNTS -- Number of nonterminals. */#define YYNNTS  15/* YYNRULES -- Number of rules. */#define YYNRULES  59/* YYNRULES -- Number of states. */#define YYNSTATES  144/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */#define YYUNDEFTOK  2#define YYMAXUTOK   296#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,       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,       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,      25,    26,    27,    28,    29,    30,    31,    32,    33,    34,      35,    36,    37,    38,    39,    40,    41};#if YYDEBUG/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in   YYRHS.  */static const unsigned char yyprhs[] ={       0,     0,     3,     4,     7,     8,    11,    14,    15,    18,      19,    22,    24,    26,    28,    29,    34,    35,    40,    42,      44,    46,    47,    52,    53,    58,    60,    62,    64,    66,      68,    70,    72,    74,    79,    84,    89,    94,    99,   104,     111,   118,   123,   128,   133,   138,   143,   148,   153,   158,     163,   168,   173,   178,   183,   188,   193,   198,   200,   205};/* YYRHS -- A `-1'-separated list of the rules' RHS. */static const yysigned_char yyrhs[] ={      43,     0,    -1,    -1,    43,    44,    -1,    -1,    44,    51,      -1,    44,    54,    -1,    -1,    46,    47,    -1,    -1,    47,      48,    -1,    37,    -1,    36,    -1,    31,    -1,    -1,    34,      49,    47,    35,    -1,    -1,    32,    50,    47,    33,    -1,      37,    -1,    36,    -1,    31,    -1,    -1,    34,    52,    44,      35,    -1,    -1,    32,    53,    44,    33,    -1,     4,    -1,       3,    -1,     5,    -1,     6,    -1,    41,    -1,     7,    -1,       8,    -1,     9,    -1,    10,    32,    45,    33,    -1,    11,      32,    55,    33,    -1,    12,    32,    56,    33,    -1,    13,      32,    56,    33,    -1,    14,    32,    56,    33,    -1,    15,      32,    56,    33,    -1,    16,    32,    55,    31,    55,    33,      -1,    17,    32,    55,    31,    55,    33,    -1,    20,    32,      55,    33,    -1,    21,    32,    56,    33,    -1,    19,    32,      55,    33,    -1,    18,    32,    55,    33,    -1,    22,    32,      55,    33,    -1,    25,    32,    55,    33,    -1,    30,    32,      55,    33,    -1,    23,    32,    55,    33,    -1,    24,    32,      55,    33,    -1,    26,    32,    55,    33,    -1,    28,    32,      55,    33,    -1,    29,    32,    55,    33,    -1,    27,    32,      55,    33,    -1,    38,    32,    55,    33,    -1,    39,    32,      55,    33,    -1,    40,    32,    55,    33,    -1,    56,    -1,      56,    34,    45,    35,    -1,    37,    -1};/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */static const unsigned short int yyrline[] ={       0,   380,   380,   381,   384,   385,   386,   391,   391,   395,     396,   399,   400,   401,   403,   402,   407,   406,   412,   413,     414,   416,   415,   420,   419,   425,   427,   429,   431,   433,     435,   437,   439,   441,   443,   449,   452,   455,   458,   461,     469,   478,   490,   494,   500,   506,   514,   520,   526,   535,     544,   552,   561,   570,   575,   580,   585,   592,   593,   599};#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", "TOK_ARGS", "TOK_INIT", "TOK_ANALYSIS",  "TOK_NEW_TIMEPOINT", "TOK_TIME", "TOK_RAD_FREQ", "TOK_TEMPERATURE",  "TOK_T", "TOK_PARAM", "TOK_PARAM_SIZE", "TOK_PARAM_NULL",  "TOK_PORT_SIZE", "TOK_PORT_NULL", "TOK_PARTIAL", "TOK_AC_GAIN",  "TOK_CHANGED", "TOK_OUTPUT_DELAY", "TOK_STATIC_VAR",  "TOK_STATIC_VAR_SIZE", "TOK_INPUT", "TOK_INPUT_STRENGTH",  "TOK_INPUT_STATE", "TOK_INPUT_TYPE", "TOK_OUTPUT", "TOK_OUTPUT_CHANGED",  "TOK_OUTPUT_STRENGTH", "TOK_OUTPUT_STATE", "TOK_OUTPUT_TYPE",  "TOK_COMMA", "TOK_LPAREN", "TOK_RPAREN", "TOK_LBRACKET", "TOK_RBRACKET",  "TOK_MISC_C", "TOK_IDENTIFIER", "TOK_LOAD", "TOK_TOTAL_LOAD",  "TOK_MESSAGE", "TOK_CALL_TYPE", "$accept", "mod_file", "c_code",  "buffered_c_code", "@1", "buffered_c_code2", "buffered_c_char", "@2",  "@3", "c_char", "@4", "@5", "macro", "subscriptable_id", "id", 0};#endif# ifdef YYPRINT/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to   token YYLEX-NUM.  */static const unsigned short int 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};# endif/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */static const unsigned char yyr1[] ={       0,    42,    43,    43,    44,    44,    44,    46,    45,    47,      47,    48,    48,    48,    49,    48,    50,    48,    51,    51,      51,    52,    51,    53,    51,    54,    54,    54,    54,    54,      54,    54,    54,    54,    54,    54,    54,    54,    54,    54,      54,    54,    54,    54,    54,    54,    54,    54,    54,    54,      54,    54,    54,    54,    54,    54,    54,    55,    55,    56};/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */static const unsigned char yyr2[] ={       0,     2,     0,     2,     0,     2,     2,     0,     2,     0,       2,     1,     1,     1,     0,     4,     0,     4,     1,     1,       1,     0,     4,     0,     4,     1,     1,     1,     1,     1,       1,     1,     1,     4,     4,     4,     4,     4,     4,     6,       6,     4,     4,     4,     4,     4,     4,     4,     4,     4,       4,     4,     4,     4,     4,     4,     4,     1,     4,     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[] ={       2,     4,     1,     3,    26,    25,    27,    28,    30,    31,      32,     0,     0,     0,     0,     0,     0,     0,     0,     0,       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,       0,     0,    20,    23,    21,    19,    18,     0,     0,     0,      29,     5,     6,     7,     0,     0,     0,     0,     0,     0,       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,       0,     0,     0,     0,     4,     4,     0,     0,     0,     0,       9,    59,     0,    57,     0,     0,     0,     0,     0,     0,       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,       0,     0,     0,     0,     0,     0,     0,     0,    33,     8,      34,     7,    35,    36,    37,    38,     0,     0,    44,    43,      41,    42,    45,    48,    49,    46,    50,    53,    51,    52,      47,    24,    22,    54,    55,    56,    13,    16,    14,    12,      11,    10,     0,     0,     0,     9,     9,    58,    39,    40,       0,     0,    17,    15};/* YYDEFGOTO[NTERM-NUM]. */static const short int yydefgoto[] ={      -1,     1,     3,    69,    70,    99,   131,   136,   135,    41,      65,    64,    42,    72,    73};/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing   STATE-NUM.  */#define YYPACT_NINF -121static const short int yypact[] ={    -121,     5,  -121,   134,  -121,  -121,  -121,  -121,  -121,  -121,    -121,    -8,     2,     9,    11,    16,    17,    18,    19,    20,      21,    22,    23,    24,    59,    96,   135,   137,   144,   145,     146,   147,  -121,  -121,  -121,  -121,  -121,   148,   149,   150,    -121,  -121,  -121,  -121,   151,   151,   151,   151,   151,   151,     151,   151,   151,   151,   151,   151,   151,   151,   151,   151,     151,   151,   151,   151,  -121,  -121,   151,   151,   151,   152,    -121,  -121,   153,   155,   154,   157,   158,   159,   162,   163,     164,   165,   166,   167,   168,   169,   170,   171,   172,   173,     174,   175,   176,    56,    95,   177,   178,   179,  -121,     8,    -121,  -121,  -121,  -121,  -121,  -121,   151,   151,  -121,  -121,    -121,  -121,  -121,  -121,  -121,  -121,  -121,  -121,  -121,  -121,    -121,  -121,  -121,  -121,  -121,  -121,  -121,  -121,  -121,  -121,    -121,  -121,   160,   180,   181,  -121,  -121,  -121,  -121,  -121,      -6,     1,  -121,  -121};/* YYPGOTO[NTERM-NUM].  */static const yysigned_char yypgoto[] ={    -121,  -121,   -18,    82,  -121,  -120,  -121,  -121,  -121,  -121,    -121,  -121,  -121,   -49,   -25};/* 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[] ={      78,    79,    80,    81,    82,     2,    84,    85,    86,    87,      88,    89,    90,    91,    92,   140,   141,    95,    96,    97,      74,    75,    76,    77,    43,   126,   127,   142,   128,    83,     129,   130,   126,   127,    44,   128,   143,   129,   130,   126,     127,    45,   128,    46,   129,   130,    93,    94,    47,    48,      49,    50,    51,    52,    53,    54,    55,   133,   134,     4,       5,     6,     7,     8,     9,    10,    11,    12,    13,    14,      15,    16,    17,    18,    19,    20,    21,    22,    23,    24,      25,    26,    27,    28,    29,    30,    31,    32,    33,   121,      34,    56,    35,    36,    37,    38,    39,    40,     4,     5,       6,     7,     8,     9,    10,    11,    12,    13,    14,    15,      16,    17,    18,    19,    20,    21,    22,    23,    24,    25,      26,    27,    28,    29,    30,    31,    32,    33,    57,    34,     122,    35,    36,    37,    38,    39,    40,     4,     5,     6,       7,     8,     9,    10,    11,    12,    13,    14,    15,    16,      17,    18,    19,    20,    21,    22,    23,    24,    25,    26,      27,    28,    29,    30,    31,    32,    33,    58,    34,    59,      35,    36,    37,    38,    39,    40,    60,    61,    62,    63,      66,    67,    68,   132,     0,    98,   100,   102,    71,   101,     103,   104,   105,   106,   107,   137,     0,   108,   109,   110,     111,   112,   113,   114,   115,   116,   117,   118,   119,   120,     123,   124,   125,   138,   139};static const short int yycheck[] ={      49,    50,    51,    52,    53,     0,    55,    56,    57,    58,      59,    60,    61,    62,    63,   135,   136,    66,    67,    68,      45,    46,    47,    48,    32,    31,    32,    33,    34,    54,      36,    37,    31,    32,    32,    34,    35,    36,    37,    31,      32,    32,    34,    32,    36,    37,    64,    65,    32,    32,      32,    32,    32,    32,    32,    32,    32,   106,   107,     3,       4,     5,     6,     7,     8,     9,    10,    11,    12,    13,      14,    15,    16,    17,    18,    19,    20,    21,    22,    23,      24,    25,    26,    27,    28,    29,    30,    31,    32,    33,      34,    32,    36,    37,    38,    39,    40,    41,     3,     4,       5,     6,     7,     8,     9,    10,    11,    12,    13,    14,      15,    16,    17,    18,    19,    20,    21,    22,    23,    24,      25,    26,    27,    28,    29,    30,    31,    32,    32,    34,      35,    36,    37,    38,    39,    40,    41,     3,     4,     5,       6,     7,     8,     9,    10,    11,    12,    13,    14,    15,      16,    17,    18,    19,    20,    21,    22,    23,    24,    25,      26,    27,    28,    29,    30,    31,    32,    32,    34,    32,      36,    37,    38,    39,    40,    41,    32,    32,    32,    32,      32,    32,    32,   101,    -1,    33,    33,    33,    37,    34,      33,    33,    33,    31,    31,    35,    -1,    33,    33,    33,      33,    33,    33,    33,    33,    33,    33,    33,    33,    33,      33,    33,    33,    33,    33};/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing   symbol of state STATE-NUM.  */static const unsigned char yystos[] ={       0,    43,     0,    44,     3,     4,     5,     6,     7,     8,       9,    10,    11,    12,    13,    14,    15,    16,    17,    18,      19,    20,    21,    22,    23,    24,    25,    26,    27,    28,      29,    30,    31,    32,    34,    36,    37,    38,    39,    40,      41,    51,    54,    32,    32,    32,    32,    32,    32,    32,      32,    32,    32,    32,    32,    32,    32,    32,    32,    32,      32,    32,    32,    32,    53,    52,    32,    32,    32,    45,      46,    37,    55,    56,    56,    56,    56,    56,    55,    55,      55,    55,    55,    56,    55,    55,    55,    55,    55,    55,      55,    55,    55,    44,    44,    55,    55,    55,    33,    47,      33,    34,    33,    33,    33,    33,    31,    31,    33,    33,      33,    33,    33,    33,    33,    33,    33,    33,    33,    33,      33,    33,    35,    33,    33,    33,    31,    32,    34,    36,      37,    48,    45,    55,    55,    50,    49,    35,    33,    33,      47,    47,    33,    35};#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 yyerrorlab/* 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 (YYLEX_PARAM)#else# define YYLEX yylex ()#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 (included).                                                   |`------------------------------------------------------------------*/#if defined (__STDC__) || defined (__cplusplus)static voidyy_stack_print (short int *bottom, short int *top)#elsestatic voidyy_stack_print (bottom, top)    short int *bottom;    short int *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;

⌨️ 快捷键说明

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