My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Enumerations | Functions | Variables
parse_spice.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "check_spice.h"
Include dependency graph for parse_spice.cpp:

Go to the source code of this file.

Classes

union  YYSTYPE
 
union  yyalloc
 

Macros

#define YYBISON   1
 
#define YYBISON_VERSION   "2.4.1"
 
#define YYSKELETON_NAME   "yacc.c"
 
#define YYPURE   0
 
#define YYPUSH   0
 
#define YYPULL   1
 
#define YYLSP_NEEDED   0
 
#define yyparse   spice_parse
 
#define yylex   spice_lex
 
#define yyerror   spice_error
 
#define yylval   spice_lval
 
#define yychar   spice_char
 
#define yydebug   spice_debug
 
#define yynerrs   spice_nerrs
 
#define YYERROR_VERBOSE   42
 
#define YYDEBUG   1
 
#define YYMAXDEPTH   1000000
 
#define YYERROR_VERBOSE   1
 
#define YYTOKEN_TABLE   0
 
#define YYTOKENTYPE
 
#define TitleLine   258
 
#define InvalidCharacter   259
 
#define End   260
 
#define Eol   261
 
#define Identifier   262
 
#define Digits   263
 
#define Floats   264
 
#define Nodes   265
 
#define Options   266
 
#define Function   267
 
#define SUBCKT_Action   268
 
#define ENDS_Action   269
 
#define AC_Action   270
 
#define OP_Action   271
 
#define I_Source   272
 
#define SAVE_Action   273
 
#define RLC_Device   274
 
#define L_Device   275
 
#define K_Device   276
 
#define IV_Source   277
 
#define GE_Source   278
 
#define FH_Source   279
 
#define V_Source   280
 
#define Diode_Device   281
 
#define Bipolar_Device   282
 
#define JFET_Device   283
 
#define MOSFET_Device   284
 
#define MESFET_Device   285
 
#define MODEL_Action   286
 
#define MODEL_Spec   287
 
#define TRAN_Action   288
 
#define PLOT_Action   289
 
#define VoltFunc   290
 
#define CurrFunc   291
 
#define DC_Action   292
 
#define PRINT_Action   293
 
#define OPTIONS_Action   294
 
#define WIDTH_Action   295
 
#define NOISE_Action   296
 
#define PZ_Action   297
 
#define CurVol   298
 
#define PoleZero   299
 
#define ALL_Special   300
 
#define X_Device   301
 
#define O_Device   302
 
#define ModelProps   303
 
#define OFF_Special   304
 
#define IC_Special   305
 
#define SIM_Type   306
 
#define TEMP_Special   307
 
#define MOS_Special   308
 
#define B_Source   309
 
#define DISTO_Action   310
 
#define INCLUDE_Action   311
 
#define File   312
 
#define BranchFunc   313
 
#define NODESET_Action   314
 
#define T_Device   315
 
#define U_Device   316
 
#define S_Device   317
 
#define W_Device   318
 
#define ON_Special   319
 
#define TF_Action   320
 
#define SENS_Action   321
 
#define FOUR_Action   322
 
#define OpFunc   323
 
#define Behave   324
 
#define TC_Special   325
 
#define TEMP_Action   326
 
#define YYSTYPE_IS_TRIVIAL   1
 
#define yystype   YYSTYPE /* obsolescent; will be withdrawn */
 
#define YYSTYPE_IS_DECLARED   1
 
#define YYSIZE_T   unsigned int
 
#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)
 
#define YY_(msgid)   msgid
 
#define YYUSE(e)   ((void) (e))
 
#define YYID(n)   (n)
 
#define YYSTACK_ALLOC   YYMALLOC
 
#define YYSTACK_FREE   YYFREE
 
#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM
 
#define YYMALLOC   malloc
 
#define YYFREE   free
 
#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)
 
#define YYSTACK_BYTES(N)
 
#define YYCOPY(To, From, Count)
 
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
 
#define YYFINAL   113
 
#define YYLAST   679
 
#define YYNTOKENS   72
 
#define YYNNTS   42
 
#define YYNRULES   148
 
#define YYNSTATES   355
 
#define YYUNDEFTOK   2
 
#define YYMAXUTOK   326
 
#define YYTRANSLATE(YYX)   ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
 
#define YYPACT_NINF   -227
 
#define YYTABLE_NINF   -123
 
#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
 
#define YYFAIL   goto yyerrlab
 
#define YYRECOVERING()   (!!yyerrstatus)
 
#define YYBACKUP(Token, Value)
 
#define YYTERROR   1
 
#define YYERRCODE   256
 
#define YYRHSLOC(Rhs, K)   ((Rhs)[K])
 
#define YYLLOC_DEFAULT(Current, Rhs, N)
 
#define YY_LOCATION_PRINT(File, Loc)   ((void) 0)
 
#define YYLEX   yylex ()
 
#define YYFPRINTF   fprintf
 
#define YYDPRINTF(Args)
 
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
 
#define YY_STACK_PRINT(Bottom, Top)
 
#define YY_REDUCE_PRINT(Rule)
 
#define YYINITDEPTH   200
 
#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
 

Typedefs

typedef union YYSTYPE YYSTYPE
 
typedef unsigned char yytype_uint8
 
typedef short int yytype_int8
 
typedef unsigned short int yytype_uint16
 
typedef short int yytype_int16
 

Enumerations

enum  yytokentype {
  TitleLine = 258, InvalidCharacter = 259, End = 260, Eol = 261,
  Identifier = 262, Digits = 263, Floats = 264, Nodes = 265,
  Options = 266, Function = 267, SUBCKT_Action = 268, ENDS_Action = 269,
  AC_Action = 270, OP_Action = 271, I_Source = 272, SAVE_Action = 273,
  RLC_Device = 274, L_Device = 275, K_Device = 276, IV_Source = 277,
  GE_Source = 278, FH_Source = 279, V_Source = 280, Diode_Device = 281,
  Bipolar_Device = 282, JFET_Device = 283, MOSFET_Device = 284, MESFET_Device = 285,
  MODEL_Action = 286, MODEL_Spec = 287, TRAN_Action = 288, PLOT_Action = 289,
  VoltFunc = 290, CurrFunc = 291, DC_Action = 292, PRINT_Action = 293,
  OPTIONS_Action = 294, WIDTH_Action = 295, NOISE_Action = 296, PZ_Action = 297,
  CurVol = 298, PoleZero = 299, ALL_Special = 300, X_Device = 301,
  O_Device = 302, ModelProps = 303, OFF_Special = 304, IC_Special = 305,
  SIM_Type = 306, TEMP_Special = 307, MOS_Special = 308, B_Source = 309,
  DISTO_Action = 310, INCLUDE_Action = 311, File = 312, BranchFunc = 313,
  NODESET_Action = 314, T_Device = 315, U_Device = 316, S_Device = 317,
  W_Device = 318, ON_Special = 319, TF_Action = 320, SENS_Action = 321,
  FOUR_Action = 322, OpFunc = 323, Behave = 324, TC_Special = 325,
  TEMP_Action = 326, t_END = 258, t_COMMENT = 259, t_DATE = 260,
  t_ENDDEFINITIONS = 261, t_SCOPE = 262, t_TIMESCALE = 263, t_UPSCOPE = 264,
  t_VAR = 265, t_VERSION = 266, t_DUMPALL = 267, t_DUMPOFF = 268,
  t_DUMPON = 269, t_DUMPVARS = 270, s_MODULE = 271, s_TASK = 272,
  s_FUNCTION = 273, s_FORK = 274, s_BEGIN = 275, ONE = 276,
  B = 277, Z = 278, ZERO = 279, HASHMARK = 280,
  X = 281, R = 282, TEN = 283, HUNDRET = 284,
  PICO = 285, MICRO = 286, NANO = 287, FEMTO = 288,
  SECOND = 289, MILLI = 290, EVENT = 291, INTEGER = 292,
  PARAMETER = 293, REAL = 294, REG = 295, SUPPLY0 = 296,
  SUPPLY1 = 297, TIME = 298, TRI = 299, TRIAND = 300,
  TRIOR = 301, TRIREG = 302, TRI0 = 303, TRI1 = 304,
  WAND = 305, WIRE = 306, WOR = 307, Real = 308,
  Binary = 309, PositiveInteger = 310, PositiveHugeInteger = 311, Identifier = 312,
  IdentifierCode = 313, Reference = 314, InvalidCharacter = 315, TitleLine = 258,
  InvalidCharacter = 259, End = 260, Eol = 261, Identifier = 262,
  Digits = 263, Floats = 264, Nodes = 265, Options = 266,
  Function = 267, SUBCKT_Action = 268, ENDS_Action = 269, AC_Action = 270,
  OP_Action = 271, I_Source = 272, SAVE_Action = 273, RLC_Device = 274,
  L_Device = 275, K_Device = 276, IV_Source = 277, GE_Source = 278,
  FH_Source = 279, V_Source = 280, Diode_Device = 281, Bipolar_Device = 282,
  JFET_Device = 283, MOSFET_Device = 284, MESFET_Device = 285, MODEL_Action = 286,
  MODEL_Spec = 287, TRAN_Action = 288, PLOT_Action = 289, VoltFunc = 290,
  CurrFunc = 291, DC_Action = 292, PRINT_Action = 293, OPTIONS_Action = 294,
  WIDTH_Action = 295, NOISE_Action = 296, PZ_Action = 297, CurVol = 298,
  PoleZero = 299, ALL_Special = 300, X_Device = 301, O_Device = 302,
  ModelProps = 303, OFF_Special = 304, IC_Special = 305, SIM_Type = 306,
  TEMP_Special = 307, MOS_Special = 308, B_Source = 309, DISTO_Action = 310,
  INCLUDE_Action = 311, File = 312, BranchFunc = 313, NODESET_Action = 314,
  T_Device = 315, U_Device = 316, S_Device = 317, W_Device = 318,
  ON_Special = 319, TF_Action = 320, SENS_Action = 321, FOUR_Action = 322,
  OpFunc = 323, Behave = 324, TC_Special = 325, TEMP_Action = 326,
  t_END = 258, t_COMMENT = 259, t_DATE = 260, t_ENDDEFINITIONS = 261,
  t_SCOPE = 262, t_TIMESCALE = 263, t_UPSCOPE = 264, t_VAR = 265,
  t_VERSION = 266, t_DUMPALL = 267, t_DUMPOFF = 268, t_DUMPON = 269,
  t_DUMPVARS = 270, s_MODULE = 271, s_TASK = 272, s_FUNCTION = 273,
  s_FORK = 274, s_BEGIN = 275, ONE = 276, B = 277,
  Z = 278, ZERO = 279, HASHMARK = 280, X = 281,
  R = 282, TEN = 283, HUNDRET = 284, PICO = 285,
  MICRO = 286, NANO = 287, FEMTO = 288, SECOND = 289,
  MILLI = 290, EVENT = 291, INTEGER = 292, PARAMETER = 293,
  REAL = 294, REG = 295, SUPPLY0 = 296, SUPPLY1 = 297,
  TIME = 298, TRI = 299, TRIAND = 300, TRIOR = 301,
  TRIREG = 302, TRI0 = 303, TRI1 = 304, WAND = 305,
  WIRE = 306, WOR = 307, Real = 308, Binary = 309,
  PositiveInteger = 310, PositiveHugeInteger = 311, Identifier = 312, IdentifierCode = 313,
  Reference = 314, InvalidCharacter = 315, InvalidCharacter = 258, Float = 259,
  Eol = 260, DATA = 261, VAR = 262, NAME = 263,
  Begin = 264, End = 265, Version = 266, Identifier = 267,
  Integer = 268, CITIFILE = 269, VarType = 270, SegListBegin = 271,
  VarListBegin = 272, SegListEnd = 273, VarListEnd = 274, COMMENT = 275,
  CONSTANT = 276, SEG = 277, InvalidCharacter = 258, Float = 259,
  Identifier = 260, Eol = 261, InvalidCharacter = 258, Identifier = 259,
  REAL = 260, IMAG = 261, COMPLEX = 262, Integer = 263,
  Eol = 264, IndepBegin = 265, DepBegin = 266, IndepEnd = 267,
  DepEnd = 268, Version = 269, LINK = 258, Identifier = 259,
  String = 260, InvalidCharacter = 261, Real = 262, t_LINK = 263,
  t_VIEW = 264, t_TABLE = 265, t_PSTABLE = 266, t_CNTABLE = 267,
  t_OPTIMEDIT = 268, t_BLKEDIT = 269, t_HYPTABLE = 270, t_ELEMENT = 271,
  t_DATA = 272, t_DATASET = 273, t_DATASIZE = 274, t_POINT = 275,
  t_MEMBER = 276, t_LIST = 277, t_PLOTOPTIMIZEROPT = 278, t_PLOTOPTIMIZERTRACESET = 279,
  t_PLOTOPTIMIZERTRACEREGSET = 280, t_PLOTOPTIMIZERTRACENATREGSET = 281, t_PLOTERROR = 282, t_TYPE = 283,
  t_CIRCUITDECK = 284, t_PARAM = 285, t_RANGE = 286, t_CONNPAIR = 287,
  t_CALDATA = 288, t_CALSET = 289, t_TERM = 290, t_APPLIC = 291,
  t_SUBAPP = 292, t_EDITSIZE = 293, t_PLOTSIZE = 294, t_OPTRANGE = 295,
  InvalidCharacter = 258, Identifier = 259, Assign = 260, ScaleOrUnit = 261,
  Eol = 262, Eqn = 263, DefSub = 264, EndSub = 265,
  REAL = 266, IMAG = 267, COMPLEX = 268, Character = 269,
  STRING = 270, Or = 271, And = 272, Equal = 273,
  NotEqual = 274, GreaterOrEqual = 275, LessOrEqual = 276, Greater = 277,
  Less = 278, Not = 279, NEG = 280, POS = 281,
  InvalidCharacter = 258, Float = 259, Option = 260, Eol = 261,
  ZVR = 258, Version = 259, Identifier = 260, Real = 261,
  Unit = 262, DataFMT = 263, DataTYP = 264, DataIDN = 265,
  InvalidCharacter = 266, InvalidCharacter = 258, Float = 259, Eol = 260,
  DATA = 261, VAR = 262, NAME = 263, Begin = 264,
  End = 265, Version = 266, Identifier = 267, Integer = 268,
  CITIFILE = 269, VarType = 270, SegListBegin = 271, VarListBegin = 272,
  SegListEnd = 273, VarListEnd = 274, COMMENT = 275, CONSTANT = 276,
  SEG = 277, InvalidCharacter = 258, Float = 259, Identifier = 260,
  Eol = 261, InvalidCharacter = 258, Identifier = 259, REAL = 260,
  IMAG = 261, COMPLEX = 262, Integer = 263, Eol = 264,
  IndepBegin = 265, DepBegin = 266, IndepEnd = 267, DepEnd = 268,
  Version = 269, LINK = 258, Identifier = 259, String = 260,
  InvalidCharacter = 261, Real = 262, t_LINK = 263, t_VIEW = 264,
  t_TABLE = 265, t_PSTABLE = 266, t_CNTABLE = 267, t_OPTIMEDIT = 268,
  t_BLKEDIT = 269, t_HYPTABLE = 270, t_ELEMENT = 271, t_DATA = 272,
  t_DATASET = 273, t_DATASIZE = 274, t_POINT = 275, t_MEMBER = 276,
  t_LIST = 277, t_PLOTOPTIMIZEROPT = 278, t_PLOTOPTIMIZERTRACESET = 279, t_PLOTOPTIMIZERTRACEREGSET = 280,
  t_PLOTOPTIMIZERTRACENATREGSET = 281, t_PLOTERROR = 282, t_TYPE = 283, t_CIRCUITDECK = 284,
  t_PARAM = 285, t_RANGE = 286, t_CONNPAIR = 287, t_CALDATA = 288,
  t_CALSET = 289, t_TERM = 290, t_APPLIC = 291, t_SUBAPP = 292,
  t_EDITSIZE = 293, t_PLOTSIZE = 294, t_OPTRANGE = 295, InvalidCharacter = 258,
  Identifier = 259, Assign = 260, ScaleOrUnit = 261, Eol = 262,
  Eqn = 263, DefSub = 264, EndSub = 265, REAL = 266,
  IMAG = 267, COMPLEX = 268, Character = 269, STRING = 270,
  Or = 271, And = 272, Equal = 273, NotEqual = 274,
  GreaterOrEqual = 275, LessOrEqual = 276, Greater = 277, Less = 278,
  Not = 279, NEG = 280, POS = 281, InvalidCharacter = 258,
  Float = 259, Option = 260, Eol = 261, ZVR = 258,
  Version = 259, Identifier = 260, Real = 261, Unit = 262,
  DataFMT = 263, DataTYP = 264, DataIDN = 265, InvalidCharacter = 266
}
 

Functions

 YYUSE (yyoutput)
 
 switch (yytype)
 
else YYFPRINTF (yyoutput,"nterm %s (", yytname[yytype])
 
 YYFPRINTF (yyoutput,")")
 
 for (;yybottom<=yytop;yybottom++)
 
 YYFPRINTF (stderr,"\n")
 
 YYFPRINTF (stderr,"Reducing stack by rule %d (line %lu):\n", yyrule-1, yylno)
 
 for (yyi=0;yyi< yynrhs;yyi++)
 
 for (yylen=0;yystr[yylen];yylen++) continue
 
 while ((*yyd++=*yys++)!= '\0') continue
 
 if (!yymsg) yymsg
 
 YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp)
 
int yyparse ()
 
int spice_error (char *error)
 

Variables

int yytype
 
YYSTYPE const *const yyvaluep
 
yytype_int16yytop
 
int yyrule
 
int yyi
 
unsigned long int yylno = yyrline[yyrule]
 
int yydebug
 
return yylen
 
const char * yysrc
 
const char * yys = yysrc
 
return yyd
 
int yychar
 
YYSTYPE yylval
 
int yynerrs
 

Macro Definition Documentation

#define AC_Action   270

Definition at line 320 of file parse_spice.cpp.

#define ALL_Special   300

Definition at line 350 of file parse_spice.cpp.

#define B_Source   309

Definition at line 359 of file parse_spice.cpp.

#define Behave   324

Definition at line 374 of file parse_spice.cpp.

#define Bipolar_Device   282

Definition at line 332 of file parse_spice.cpp.

#define BranchFunc   313

Definition at line 363 of file parse_spice.cpp.

#define CurrFunc   291

Definition at line 341 of file parse_spice.cpp.

#define CurVol   298

Definition at line 348 of file parse_spice.cpp.

#define DC_Action   292

Definition at line 342 of file parse_spice.cpp.

#define Digits   263

Definition at line 313 of file parse_spice.cpp.

#define Diode_Device   281

Definition at line 331 of file parse_spice.cpp.

#define DISTO_Action   310

Definition at line 360 of file parse_spice.cpp.

#define End   260

Definition at line 310 of file parse_spice.cpp.

#define ENDS_Action   269

Definition at line 319 of file parse_spice.cpp.

#define Eol   261

Definition at line 311 of file parse_spice.cpp.

#define FH_Source   279

Definition at line 329 of file parse_spice.cpp.

#define File   312

Definition at line 362 of file parse_spice.cpp.

#define Floats   264

Definition at line 314 of file parse_spice.cpp.

#define FOUR_Action   322

Definition at line 372 of file parse_spice.cpp.

#define Function   267

Definition at line 317 of file parse_spice.cpp.

#define GE_Source   278

Definition at line 328 of file parse_spice.cpp.

#define I_Source   272

Definition at line 322 of file parse_spice.cpp.

#define IC_Special   305

Definition at line 355 of file parse_spice.cpp.

#define Identifier   262

Definition at line 312 of file parse_spice.cpp.

#define INCLUDE_Action   311

Definition at line 361 of file parse_spice.cpp.

#define InvalidCharacter   259

Definition at line 309 of file parse_spice.cpp.

#define IV_Source   277

Definition at line 327 of file parse_spice.cpp.

#define JFET_Device   283

Definition at line 333 of file parse_spice.cpp.

#define K_Device   276

Definition at line 326 of file parse_spice.cpp.

#define L_Device   275

Definition at line 325 of file parse_spice.cpp.

#define MESFET_Device   285

Definition at line 335 of file parse_spice.cpp.

#define MODEL_Action   286

Definition at line 336 of file parse_spice.cpp.

#define MODEL_Spec   287

Definition at line 337 of file parse_spice.cpp.

#define ModelProps   303

Definition at line 353 of file parse_spice.cpp.

#define MOS_Special   308

Definition at line 358 of file parse_spice.cpp.

#define MOSFET_Device   284

Definition at line 334 of file parse_spice.cpp.

#define Nodes   265

Definition at line 315 of file parse_spice.cpp.

#define NODESET_Action   314

Definition at line 364 of file parse_spice.cpp.

#define NOISE_Action   296

Definition at line 346 of file parse_spice.cpp.

#define O_Device   302

Definition at line 352 of file parse_spice.cpp.

#define OFF_Special   304

Definition at line 354 of file parse_spice.cpp.

#define ON_Special   319

Definition at line 369 of file parse_spice.cpp.

#define OP_Action   271

Definition at line 321 of file parse_spice.cpp.

#define OpFunc   323

Definition at line 373 of file parse_spice.cpp.

#define Options   266

Definition at line 316 of file parse_spice.cpp.

#define OPTIONS_Action   294

Definition at line 344 of file parse_spice.cpp.

#define PLOT_Action   289

Definition at line 339 of file parse_spice.cpp.

#define PoleZero   299

Definition at line 349 of file parse_spice.cpp.

#define PRINT_Action   293

Definition at line 343 of file parse_spice.cpp.

#define PZ_Action   297

Definition at line 347 of file parse_spice.cpp.

#define RLC_Device   274

Definition at line 324 of file parse_spice.cpp.

#define S_Device   317

Definition at line 367 of file parse_spice.cpp.

#define SAVE_Action   273

Definition at line 323 of file parse_spice.cpp.

#define SENS_Action   321

Definition at line 371 of file parse_spice.cpp.

#define SIM_Type   306

Definition at line 356 of file parse_spice.cpp.

#define SUBCKT_Action   268

Definition at line 318 of file parse_spice.cpp.

#define T_Device   315

Definition at line 365 of file parse_spice.cpp.

#define TC_Special   325

Definition at line 375 of file parse_spice.cpp.

#define TEMP_Action   326

Definition at line 376 of file parse_spice.cpp.

#define TEMP_Special   307

Definition at line 357 of file parse_spice.cpp.

#define TF_Action   320

Definition at line 370 of file parse_spice.cpp.

#define TitleLine   258

Definition at line 308 of file parse_spice.cpp.

#define TRAN_Action   288

Definition at line 338 of file parse_spice.cpp.

#define U_Device   316

Definition at line 366 of file parse_spice.cpp.

#define V_Source   280

Definition at line 330 of file parse_spice.cpp.

#define VoltFunc   290

Definition at line 340 of file parse_spice.cpp.

#define W_Device   318

Definition at line 368 of file parse_spice.cpp.

#define WIDTH_Action   295

Definition at line 345 of file parse_spice.cpp.

#define X_Device   301

Definition at line 351 of file parse_spice.cpp.

#define YY_ (   msgid)    msgid

Definition at line 467 of file parse_spice.cpp.

#define YY_LOCATION_PRINT (   File,
  Loc 
)    ((void) 0)

Definition at line 1248 of file parse_spice.cpp.

#define YY_REDUCE_PRINT (   Rule)
Value:
do { \
if (yydebug) \
yy_reduce_print (yyvsp, Rule); \
} while (YYID (0))

Definition at line 1408 of file parse_spice.cpp.

#define YY_STACK_PRINT (   Bottom,
  Top 
)
Value:
do { \
if (yydebug) \
yy_stack_print ((Bottom), (Top)); \
} while (YYID (0))

Definition at line 1370 of file parse_spice.cpp.

#define YY_SYMBOL_PRINT (   Title,
  Type,
  Value,
  Location 
)
Value:
do { \
if (yydebug) \
{ \
YYFPRINTF (stderr, "%s ", Title); \
yy_symbol_print (stderr, \
Type, Value); \
YYFPRINTF (stderr, "\n"); \
} \
} while (YYID (0))

Definition at line 1275 of file parse_spice.cpp.

#define YYABORT   goto yyabortlab

Definition at line 1177 of file parse_spice.cpp.

#define YYACCEPT   goto yyacceptlab

Definition at line 1176 of file parse_spice.cpp.

#define YYBACKUP (   Token,
  Value 
)
Value:
if (yychar == YYEMPTY && yylen == 1) \
{ \
yychar = (Token); \
yylval = (Value); \
yytoken = YYTRANSLATE (yychar); \
YYPOPSTACK (1); \
goto yybackup; \
} \
else \
{ \
yyerror (YY_("syntax error: cannot back up")); \
YYERROR; \
} \
while (YYID (0))

Definition at line 1189 of file parse_spice.cpp.

#define YYBISON   1

Definition at line 46 of file parse_spice.cpp.

#define YYBISON_VERSION   "2.4.1"

Definition at line 49 of file parse_spice.cpp.

#define yychar   spice_char

Definition at line 71 of file parse_spice.cpp.

#define yyclearin   (yychar = YYEMPTY)

Definition at line 1172 of file parse_spice.cpp.

#define YYCOPY (   To,
  From,
  Count 
)
Value:
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(To)[yyi] = (From)[yyi]; \
} \
while (YYID (0))

Definition at line 593 of file parse_spice.cpp.

#define yydebug   spice_debug

Definition at line 72 of file parse_spice.cpp.

#define YYDEBUG   1

Definition at line 119 of file parse_spice.cpp.

#define YYDPRINTF (   Args)
Value:
do { \
if (yydebug) \
YYFPRINTF Args; \
} while (YYID (0))

Definition at line 1269 of file parse_spice.cpp.

#define YYEMPTY   (-2)

Definition at line 1173 of file parse_spice.cpp.

#define YYEOF   0

Definition at line 1174 of file parse_spice.cpp.

#define YYERRCODE   256

Definition at line 1208 of file parse_spice.cpp.

#define yyerrok   (yyerrstatus = 0)

Definition at line 1171 of file parse_spice.cpp.

#define yyerror   spice_error

Definition at line 69 of file parse_spice.cpp.

#define YYERROR   goto yyerrorlab

Definition at line 1178 of file parse_spice.cpp.

#define YYERROR_VERBOSE   42

Definition at line 219 of file parse_spice.cpp.

#define YYERROR_VERBOSE   1

Definition at line 219 of file parse_spice.cpp.

#define YYFAIL   goto yyerrlab

Definition at line 1185 of file parse_spice.cpp.

#define YYFINAL   113

Definition at line 623 of file parse_spice.cpp.

#define YYFPRINTF   fprintf

Definition at line 1266 of file parse_spice.cpp.

#define YYFREE   free

Definition at line 556 of file parse_spice.cpp.

#define YYID (   n)    (n)

Definition at line 480 of file parse_spice.cpp.

#define YYINITDEPTH   200

Definition at line 1427 of file parse_spice.cpp.

#define YYLAST   679

Definition at line 625 of file parse_spice.cpp.

#define yylex   spice_lex

Definition at line 68 of file parse_spice.cpp.

#define YYLEX   yylex ()

Definition at line 1258 of file parse_spice.cpp.

#define YYLLOC_DEFAULT (   Current,
  Rhs,
  N 
)
Value:
if (YYID (N)) \
{ \
(Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
(Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
(Current).last_line = YYRHSLOC (Rhs, N).last_line; \
(Current).last_column = YYRHSLOC (Rhs, N).last_column; \
} \
else \
{ \
(Current).first_line = (Current).last_line = \
YYRHSLOC (Rhs, 0).last_line; \
(Current).first_column = (Current).last_column = \
YYRHSLOC (Rhs, 0).last_column; \
} \
while (YYID (0))

Definition at line 1217 of file parse_spice.cpp.

#define YYLSP_NEEDED   0

Definition at line 64 of file parse_spice.cpp.

#define yylval   spice_lval

Definition at line 70 of file parse_spice.cpp.

#define YYMALLOC   malloc

Definition at line 549 of file parse_spice.cpp.

#define YYMAXDEPTH   1000000

Definition at line 120 of file parse_spice.cpp.

#define YYMAXUTOK   326

Definition at line 638 of file parse_spice.cpp.

#define yynerrs   spice_nerrs

Definition at line 73 of file parse_spice.cpp.

#define YYNNTS   42

Definition at line 630 of file parse_spice.cpp.

#define YYNRULES   148

Definition at line 632 of file parse_spice.cpp.

#define YYNSTATES   355

Definition at line 634 of file parse_spice.cpp.

#define YYNTOKENS   72

Definition at line 628 of file parse_spice.cpp.

#define YYPACT_NINF   -227

Definition at line 929 of file parse_spice.cpp.

int yyparse   spice_parse

Definition at line 67 of file parse_spice.cpp.

#define YYPOPSTACK (   N)    (yyvsp -= (N), yyssp -= (N))
#define YYPULL   1

Definition at line 61 of file parse_spice.cpp.

#define YYPURE   0

Definition at line 55 of file parse_spice.cpp.

#define YYPUSH   0

Definition at line 58 of file parse_spice.cpp.

#define YYRECOVERING ( )    (!!yyerrstatus)

Definition at line 1187 of file parse_spice.cpp.

#define YYRHSLOC (   Rhs,
  K 
)    ((Rhs)[K])

Definition at line 1215 of file parse_spice.cpp.

#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)

Definition at line 457 of file parse_spice.cpp.

#define YYSIZE_T   unsigned int

Definition at line 453 of file parse_spice.cpp.

#define YYSKELETON_NAME   "yacc.c"

Definition at line 52 of file parse_spice.cpp.

#define YYSTACK_ALLOC   YYMALLOC

Definition at line 535 of file parse_spice.cpp.

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

Definition at line 538 of file parse_spice.cpp.

#define YYSTACK_BYTES (   N)
Value:
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \

Definition at line 582 of file parse_spice.cpp.

#define YYSTACK_FREE   YYFREE

Definition at line 536 of file parse_spice.cpp.

#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)

Definition at line 578 of file parse_spice.cpp.

#define YYSTACK_RELOCATE (   Stack_alloc,
  Stack 
)
Value:
do \
{ \
YYSIZE_T yynewbytes; \
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
while (YYID (0))

Definition at line 609 of file parse_spice.cpp.

#define yystype   YYSTYPE /* obsolescent; will be withdrawn */

Definition at line 401 of file parse_spice.cpp.

#define YYSTYPE_IS_DECLARED   1

Definition at line 402 of file parse_spice.cpp.

#define YYSTYPE_IS_TRIVIAL   1

Definition at line 400 of file parse_spice.cpp.

#define YYTABLE_NINF   -123

Definition at line 984 of file parse_spice.cpp.

#define YYTERROR   1

Definition at line 1207 of file parse_spice.cpp.

#define YYTOKEN_TABLE   0

Definition at line 226 of file parse_spice.cpp.

#define YYTOKENTYPE

Definition at line 232 of file parse_spice.cpp.

#define YYTRANSLATE (   YYX)    ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

Definition at line 640 of file parse_spice.cpp.

#define YYUNDEFTOK   2

Definition at line 637 of file parse_spice.cpp.

#define YYUSE (   e)    ((void) (e))

Definition at line 473 of file parse_spice.cpp.

Typedef Documentation

typedef union YYSTYPE YYSTYPE
typedef short int yytype_int16

Definition at line 440 of file parse_spice.cpp.

typedef short int yytype_int8

Definition at line 428 of file parse_spice.cpp.

typedef unsigned short int yytype_uint16

Definition at line 434 of file parse_spice.cpp.

typedef unsigned char yytype_uint8

Definition at line 419 of file parse_spice.cpp.

Enumeration Type Documentation

Enumerator:
TitleLine 
InvalidCharacter 
End 
Eol 
Identifier 
Digits 
Floats 
Nodes 
Options 
Function 
SUBCKT_Action 
ENDS_Action 
AC_Action 
OP_Action 
I_Source 
SAVE_Action 
RLC_Device 
L_Device 
K_Device 
IV_Source 
GE_Source 
FH_Source 
V_Source 
Diode_Device 
Bipolar_Device 
JFET_Device 
MOSFET_Device 
MESFET_Device 
MODEL_Action 
MODEL_Spec 
TRAN_Action 
PLOT_Action 
VoltFunc 
CurrFunc 
DC_Action 
PRINT_Action 
OPTIONS_Action 
WIDTH_Action 
NOISE_Action 
PZ_Action 
CurVol 
PoleZero 
ALL_Special 
X_Device 
O_Device 
ModelProps 
OFF_Special 
IC_Special 
SIM_Type 
TEMP_Special 
MOS_Special 
B_Source 
DISTO_Action 
INCLUDE_Action 
File 
BranchFunc 
NODESET_Action 
T_Device 
U_Device 
S_Device 
W_Device 
ON_Special 
TF_Action 
SENS_Action 
FOUR_Action 
OpFunc 
Behave 
TC_Special 
TEMP_Action 
t_END 
t_COMMENT 
t_DATE 
t_ENDDEFINITIONS 
t_SCOPE 
t_TIMESCALE 
t_UPSCOPE 
t_VAR 
t_VERSION 
t_DUMPALL 
t_DUMPOFF 
t_DUMPON 
t_DUMPVARS 
s_MODULE 
s_TASK 
s_FUNCTION 
s_FORK 
s_BEGIN 
ONE 
B 
Z 
ZERO 
HASHMARK 
X 
R 
TEN 
HUNDRET 
PICO 
MICRO 
NANO 
FEMTO 
SECOND 
MILLI 
EVENT 
INTEGER 
PARAMETER 
REAL 
REG 
SUPPLY0 
SUPPLY1 
TIME 
TRI 
TRIAND 
TRIOR 
TRIREG 
TRI0 
TRI1 
WAND 
WIRE 
WOR 
Real 
Binary 
PositiveInteger 
PositiveHugeInteger 
Identifier 
IdentifierCode 
Reference 
InvalidCharacter 
TitleLine 
InvalidCharacter 
End 
Eol 
Identifier 
Digits 
Floats 
Nodes 
Options 
Function 
SUBCKT_Action 
ENDS_Action 
AC_Action 
OP_Action 
I_Source 
SAVE_Action 
RLC_Device 
L_Device 
K_Device 
IV_Source 
GE_Source 
FH_Source 
V_Source 
Diode_Device 
Bipolar_Device 
JFET_Device 
MOSFET_Device 
MESFET_Device 
MODEL_Action 
MODEL_Spec 
TRAN_Action 
PLOT_Action 
VoltFunc 
CurrFunc 
DC_Action 
PRINT_Action 
OPTIONS_Action 
WIDTH_Action 
NOISE_Action 
PZ_Action 
CurVol 
PoleZero 
ALL_Special 
X_Device 
O_Device 
ModelProps 
OFF_Special 
IC_Special 
SIM_Type 
TEMP_Special 
MOS_Special 
B_Source 
DISTO_Action 
INCLUDE_Action 
File 
BranchFunc 
NODESET_Action 
T_Device 
U_Device 
S_Device 
W_Device 
ON_Special 
TF_Action 
SENS_Action 
FOUR_Action 
OpFunc 
Behave 
TC_Special 
TEMP_Action 
t_END 
t_COMMENT 
t_DATE 
t_ENDDEFINITIONS 
t_SCOPE 
t_TIMESCALE 
t_UPSCOPE 
t_VAR 
t_VERSION 
t_DUMPALL 
t_DUMPOFF 
t_DUMPON 
t_DUMPVARS 
s_MODULE 
s_TASK 
s_FUNCTION 
s_FORK 
s_BEGIN 
ONE 
B 
Z 
ZERO 
HASHMARK 
X 
R 
TEN 
HUNDRET 
PICO 
MICRO 
NANO 
FEMTO 
SECOND 
MILLI 
EVENT 
INTEGER 
PARAMETER 
REAL 
REG 
SUPPLY0 
SUPPLY1 
TIME 
TRI 
TRIAND 
TRIOR 
TRIREG 
TRI0 
TRI1 
WAND 
WIRE 
WOR 
Real 
Binary 
PositiveInteger 
PositiveHugeInteger 
Identifier 
IdentifierCode 
Reference 
InvalidCharacter 
InvalidCharacter 
Float 
Eol 
DATA 
VAR 
NAME 
Begin 
End 
Version 
Identifier 
Integer 
CITIFILE 
VarType 
SegListBegin 
VarListBegin 
SegListEnd 
VarListEnd 
COMMENT 
CONSTANT 
SEG 
InvalidCharacter 
Float 
Identifier 
Eol 
InvalidCharacter 
Identifier 
REAL 
IMAG 
COMPLEX 
Integer 
Eol 
IndepBegin 
DepBegin 
IndepEnd 
DepEnd 
Version 
LINK 
Identifier 
String 
InvalidCharacter 
Real 
t_LINK 
t_VIEW 
t_TABLE 
t_PSTABLE 
t_CNTABLE 
t_OPTIMEDIT 
t_BLKEDIT 
t_HYPTABLE 
t_ELEMENT 
t_DATA 
t_DATASET 
t_DATASIZE 
t_POINT 
t_MEMBER 
t_LIST 
t_PLOTOPTIMIZEROPT 
t_PLOTOPTIMIZERTRACESET 
t_PLOTOPTIMIZERTRACEREGSET 
t_PLOTOPTIMIZERTRACENATREGSET 
t_PLOTERROR 
t_TYPE 
t_CIRCUITDECK 
t_PARAM 
t_RANGE 
t_CONNPAIR 
t_CALDATA 
t_CALSET 
t_TERM 
t_APPLIC 
t_SUBAPP 
t_EDITSIZE 
t_PLOTSIZE 
t_OPTRANGE 
InvalidCharacter 
Identifier 
Assign 
ScaleOrUnit 
Eol 
Eqn 
DefSub 
EndSub 
REAL 
IMAG 
COMPLEX 
Character 
STRING 
Or 
And 
Equal 
NotEqual 
GreaterOrEqual 
LessOrEqual 
Greater 
Less 
Not 
NEG 
POS 
InvalidCharacter 
Float 
Option 
Eol 
ZVR 
Version 
Identifier 
Real 
Unit 
DataFMT 
DataTYP 
DataIDN 
InvalidCharacter 
InvalidCharacter 
Float 
Eol 
DATA 
VAR 
NAME 
Begin 
End 
Version 
Identifier 
Integer 
CITIFILE 
VarType 
SegListBegin 
VarListBegin 
SegListEnd 
VarListEnd 
COMMENT 
CONSTANT 
SEG 
InvalidCharacter 
Float 
Identifier 
Eol 
InvalidCharacter 
Identifier 
REAL 
IMAG 
COMPLEX 
Integer 
Eol 
IndepBegin 
DepBegin 
IndepEnd 
DepEnd 
Version 
LINK 
Identifier 
String 
InvalidCharacter 
Real 
t_LINK 
t_VIEW 
t_TABLE 
t_PSTABLE 
t_CNTABLE 
t_OPTIMEDIT 
t_BLKEDIT 
t_HYPTABLE 
t_ELEMENT 
t_DATA 
t_DATASET 
t_DATASIZE 
t_POINT 
t_MEMBER 
t_LIST 
t_PLOTOPTIMIZEROPT 
t_PLOTOPTIMIZERTRACESET 
t_PLOTOPTIMIZERTRACEREGSET 
t_PLOTOPTIMIZERTRACENATREGSET 
t_PLOTERROR 
t_TYPE 
t_CIRCUITDECK 
t_PARAM 
t_RANGE 
t_CONNPAIR 
t_CALDATA 
t_CALSET 
t_TERM 
t_APPLIC 
t_SUBAPP 
t_EDITSIZE 
t_PLOTSIZE 
t_OPTRANGE 
InvalidCharacter 
Identifier 
Assign 
ScaleOrUnit 
Eol 
Eqn 
DefSub 
EndSub 
REAL 
IMAG 
COMPLEX 
Character 
STRING 
Or 
And 
Equal 
NotEqual 
GreaterOrEqual 
LessOrEqual 
Greater 
Less 
Not 
NEG 
POS 
InvalidCharacter 
Float 
Option 
Eol 
ZVR 
Version 
Identifier 
Real 
Unit 
DataFMT 
DataTYP 
DataIDN 
InvalidCharacter 

Definition at line 235 of file parse_spice.cpp.

Function Documentation

for ( ;yybottom<=yytop;yybottom++  )

Definition at line 1362 of file parse_spice.cpp.

for ( )

Definition at line 1398 of file parse_spice.cpp.

for ( yylen  = 0;yystr[yylen];yylen++)
if ( yymsg)

Here is the caller graph for this function:

int spice_error ( char *  error)

Definition at line 3668 of file parse_spice.cpp.

Here is the call graph for this function:

switch ( yytype  )

Definition at line 1312 of file parse_spice.cpp.

while ( *++=*++yys!  = '\0')
YY_SYMBOL_PRINT ( yymsg  ,
yytype  ,
yyvaluep  ,
yylocationp   
)
else YYFPRINTF ( yyoutput  )
YYFPRINTF ( yyoutput  ,
 
)
YYFPRINTF ( stderr  ,
"\n"   
)
YYFPRINTF ( stderr  ,
"Reducing stack by rule %d (line %lu):\n ,
yyrule 1,
yylno   
)
int yyparse ( )
YYUSE ( yyoutput  )

Variable Documentation

int yychar

Definition at line 1702 of file parse_spice.cpp.

return yyd

Definition at line 1491 of file parse_spice.cpp.

int yydebug

Definition at line 1416 of file parse_spice.cpp.

int yyi
Initial value:
{
int yynrhs = yyr2[yyrule]

Definition at line 1391 of file parse_spice.cpp.

return yylen

Definition at line 1463 of file parse_spice.cpp.

unsigned long int yylno = yyrline[yyrule]

Definition at line 1394 of file parse_spice.cpp.

YYSTYPE yylval

Definition at line 1705 of file parse_spice.cpp.

int yynerrs

Definition at line 1708 of file parse_spice.cpp.

int yyrule

Definition at line 1389 of file parse_spice.cpp.

const char* yys = yysrc

Definition at line 1486 of file parse_spice.cpp.

const char* yysrc

Definition at line 1482 of file parse_spice.cpp.

yytype_int16* yytop

Definition at line 1358 of file parse_spice.cpp.

int yytype

Definition at line 1300 of file parse_spice.cpp.

YYSTYPE * yyvaluep

Definition at line 1301 of file parse_spice.cpp.