My Project
0.0.16
QUCS Mapping
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "check_spice.h"
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 |
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_int16 * | yytop |
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 |
#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 | ) |
Definition at line 1408 of file parse_spice.cpp.
#define YY_STACK_PRINT | ( | Bottom, | |
Top | |||
) |
Definition at line 1370 of file parse_spice.cpp.
#define YY_SYMBOL_PRINT | ( | Title, | |
Type, | |||
Value, | |||
Location | |||
) |
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 | |||
) |
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.
Definition at line 1172 of file parse_spice.cpp.
#define YYCOPY | ( | To, | |
From, | |||
Count | |||
) |
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 | ) |
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.
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 | |||
) |
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 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.
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 | ) |
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 | |||
) |
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.
Definition at line 473 of file parse_spice.cpp.
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.
enum yytokentype |
Definition at line 235 of file parse_spice.cpp.
for | ( | ;yybottom<=yytop;yybottom++ | ) |
Definition at line 1362 of file parse_spice.cpp.
for | ( | ) |
Definition at line 1398 of file parse_spice.cpp.
if | ( | ! | yymsg | ) |
int spice_error | ( | char * | error | ) |
switch | ( | yytype | ) |
Definition at line 1312 of file parse_spice.cpp.
while | ( | *++=*++yys! | = '\0' | ) |
else YYFPRINTF | ( | yyoutput | ) |
YYFPRINTF | ( | yyoutput | , |
" | |||
) |
YYFPRINTF | ( | stderr | , |
"\n" | |||
) |
int yyparse | ( | ) |
YYUSE | ( | yyoutput | ) |
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 |
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.