#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "check_spice.h"
Go to the source code of this file.
|
| int | spice_checker (void) |
| |
| int | spice_parse (void) |
| |
| int | spice_error (const char *) |
| |
| int | spice_lex (void) |
| |
| int | spice_lex_destroy (void) |
| |
| void | spice_destroy (void) |
| |
| void | spice_add_last_hint (struct value_t *, int) |
| |
| void | spice_set_last_hint (struct value_t *, int) |
| |
| struct value_t * | netlist_append_values (struct value_t *, struct value_t *) |
| |
| struct definition_t * | spice_checker_intern (struct definition_t *) |
| |
| static __END_DECLS char * | spice_toupper (char *str) |
| |
| static struct definition_t * | spice_create_device (char *instance) |
| |
| static struct definition_t * | spice_create_action (char *type, char *instance) |
| |
| static struct value_t * | spice_create_str_value (char *value, int hint) |
| |
| static struct value_t * | spice_create_val_value (char *value, int hint) |
| |
| static struct value_t * | spice_create_par_value (char *key, char *value) |
| |
| static void | spice_append_str_value (struct definition_t *def, char *value, int hint) |
| |
| static struct value_t * | spice_append_str_values (struct value_t *values, char *value, int hint) |
| |
| static void | spice_append_val_value (struct definition_t *def, char *value, int hint) |
| |
| static struct value_t * | spice_append_val_values (struct value_t *values, char *value, int hint) |
| |
| | spice_append_str_value ($$, $2, HINT_NODE) |
| |
| | spice_append_val_value ($$, $4, HINT_NUMBER) |
| |
| | spice_append_str_value ($$, $5, HINT_NAME) |
| |
| | spice_add_last_hint ($2, HINT_MSTOP) |
| |
| int | spice_error (const char *error) |
| |
|
| name | prefix |
| |
| InputList | __pad0__ |
| |
| InputLine | __pad1__ |
| |
| | definition_root = $1 |
| |
| | DefinitionLine |
| |
| DefinitionLine | __pad2__ |
| |
| | values = netlist_append_values ($$->values, $5) |
| |
RLC_Device Node Node Value
MODEL_Ident PairList | Eol |
| |
| TC_Value_1 | __pad3__ |
| |
| TC_Value_2 | __pad4__ = spice_create_par_value ($1, $2) |
| |
| IC_Condition_1 | __pad5__ = spice_append_val_values ($$, $3, HINT_NUMBER) |
| |
| IC_Condition_2 | __pad6__ = spice_append_val_values ($$, $2, HINT_NUMBER) |
| |
| IC_Condition_3 | __pad7__ = spice_append_val_values ($$, $3, HINT_NUMBER) |
| |
| IC_Condition_4 | __pad8__ = spice_append_val_values ($$, $4, HINT_NUMBER) |
| |
| Output_Range | __pad9__ = spice_append_val_values ($$, $5, HINT_NUMBER) |
| |
| VOLTAGE_Output | __pad10__ = spice_append_val_values ($$, $2, HINT_NUMBER) |
| |
| VoltFunc | Node |
| |
| IV_Reference | __pad11__ = spice_append_str_values ($$, $3, HINT_NODE | HINT_MSTOP) |
| |
| CURRENT_Output | __pad12__ |
| |
| | BranchFunc |
| |
| | OpFunc |
| |
| PLOT_List | __pad13__ = spice_append_str_values ($$, $1, HINT_NAME | HINT_MSTOP) |
| |
| VOLTAGE_Output | PLOT_List |
| |
| SWITCH_State | __pad14__ = netlist_append_values ($$, $3) |
| |
| | ON_Special |
| |
| | OFF_Special |
| |
| PRINT_List | __pad15__ |
| |
| OPTIONS_List | __pad16__ |
| |
| Options | OPTIONS_List |
| |
| MODEL_List | __pad17__ = netlist_append_values ($$, $3) |
| |
| ModelProps | MODEL_List |
| |
| NODESET_List | __pad18__ = netlist_append_values ($$, $3) |
| |
| VoltFunc Node Value | NODESET_List |
| |
| DEVICE_List_1 | __pad19__ = netlist_append_values ($$, $4) |
| |
| TEMP_Special Value | DEVICE_List_1 |
| |
| DEVICE_List_2 | __pad20__ |
| |
| TEMP_Special Value | DEVICE_List_2 |
| |
| DEVICE_List_3 | __pad21__ = netlist_append_values ($$, $3) |
| |
| TEMP_Special Value | DEVICE_List_3 |
| |
| MODEL_Ident | __pad22__ |
| |
| DC_List | __pad23__ |
| |
| Value | __pad24__ = spice_append_val_values ($$, $4, HINT_NUMBER | HINT_MSTOP) |
| |
| Node | __pad25__ |
| |
| FH_Node | __pad26__ |
| |
| PairList | __pad27__ |
| |
| Identifier Value | PairList |
| |
| | next = $3 |
| |
| ValueList | __pad28__ |
| |
| Value | ValueList |
| |
| NodeValueList | __pad29__ |
| |
| Node | NodeValueList |
| |
| NodeList | __pad30__ |
| |
| Node | NodeList |
| |
| VSourceList | __pad31__ |
| |
| V_Source | VSourceList |
| |
| Expr | __pad32__ |
| |
| Expr HINT_NAME | HINT_MSTART |
| |
| ExprList | __pad33__ |
| |
| Expr | ExprList |
| |
| Subcircuit | __pad34__ |
| |
| BeginSub | __pad35__ = NULL |
| |
| SubBody | __pad36__ |
| |
| SubBodyLine | SubBody |
| |
| SubCkt_Ident | __pad37__ |
| |
| EndSub | __pad38__ |
| |
| SubBodyLine | __pad39__ |
| |
| | Subcircuit |
| |
| #define YYERROR_VERBOSE 42 |
| #define YYMAXDEPTH 1000000 |
| void spice_add_last_hint |
( |
struct value_t * |
, |
|
|
int |
|
|
) |
| |
| static void spice_append_str_value |
( |
struct definition_t * |
def, |
|
|
char * |
value, |
|
|
int |
hint |
|
) |
| |
|
static |
| static struct value_t* spice_append_str_values |
( |
struct value_t * |
values, |
|
|
char * |
value, |
|
|
int |
hint |
|
) |
| |
|
static |
| static void spice_append_val_value |
( |
struct definition_t * |
def, |
|
|
char * |
value, |
|
|
int |
hint |
|
) |
| |
|
static |
| static struct value_t* spice_append_val_values |
( |
struct value_t * |
values, |
|
|
char * |
value, |
|
|
int |
hint |
|
) |
| |
|
static |
| int spice_checker |
( |
void |
| ) |
|
| static struct definition_t* spice_create_action |
( |
char * |
type, |
|
|
char * |
instance |
|
) |
| |
|
static |
| static struct definition_t* spice_create_device |
( |
char * |
instance | ) |
|
|
static |
| static struct value_t* spice_create_par_value |
( |
char * |
key, |
|
|
char * |
value |
|
) |
| |
|
static |
| static struct value_t* spice_create_str_value |
( |
char * |
value, |
|
|
int |
hint |
|
) |
| |
|
static |
| static struct value_t* spice_create_val_value |
( |
char * |
value, |
|
|
int |
hint |
|
) |
| |
|
static |
| void spice_destroy |
( |
void |
| ) |
|
| int spice_error |
( |
const char * |
| ) |
|
| int spice_error |
( |
const char * |
error | ) |
|
| int spice_lex_destroy |
( |
void |
| ) |
|
| void spice_set_last_hint |
( |
struct value_t * |
, |
|
|
int |
|
|
) |
| |
| static __END_DECLS char* spice_toupper |
( |
char * |
str | ) |
|
|
static |
| BeginSub __pad35__ = NULL |
Initial value:{
if ($1) {
}
}
RLC_Device Node Node Value MODEL_Ident PairList Eol
Definition at line 206 of file parse_spice.y.
| IC_Condition_1 DEVICE_List_1 |
Initial value:{
static struct value_t * spice_create_par_value(char *key, char *value)
Definition at line 776 of file parse_spice.y.
| MOS_Special Value DEVICE_List_2 |
Initial value:{
static struct value_t * spice_create_par_value(char *key, char *value)
Definition at line 794 of file parse_spice.y.
| IC_Condition_3 DEVICE_List_3 |
Initial value:{
static struct value_t * spice_create_par_value(char *key, char *value)
Definition at line 816 of file parse_spice.y.
| VarListBegin Eol VarList VarListEnd Eol |
Initial value:{
static struct definition_t * spice_create_device(char *instance)
Definition at line 225 of file parse_spice.y.
Initial value:{
struct value_t * netlist_append_values(struct value_t *v1, struct value_t *v2)
Definition at line 904 of file parse_spice.y.
Initial value:{
static struct value_t * spice_create_str_value(char *value, int hint)
Definition at line 755 of file parse_spice.y.
Initial value:{
static struct value_t * spice_create_str_value(char *value, int hint)
Definition at line 882 of file parse_spice.y.
| VoltFunc Node Value NODESET_List |
Initial value:{
static struct value_t * spice_create_str_value(char *value, int hint)
Definition at line 871 of file parse_spice.y.
Initial value:{
static struct value_t * spice_create_str_value(char *value, int hint)
Definition at line 729 of file parse_spice.y.
Initial value:{
static struct value_t * spice_create_str_value(char *value, int hint)
Definition at line 726 of file parse_spice.y.
Initial value:{
static struct value_t * spice_create_str_value(char *value, int hint)
Definition at line 744 of file parse_spice.y.
| Assign NoneValue PairList |
Initial value:{
static struct value_t * spice_create_par_value(char *key, char *value)
Definition at line 857 of file parse_spice.y.
Initial value:{
struct value_t * netlist_append_values(struct value_t *v1, struct value_t *v2)
Definition at line 709 of file parse_spice.y.
Initial value:{
if ($1) {
$1->next = $2;
$$ = $1;
}
else {
$$ = $2;
}
}
Definition at line 925 of file parse_spice.y.
Initial value:{ }
$$ = NULL;
}
RLC_Device Node Node Value MODEL_Ident PairList Eol
Definition at line 950 of file parse_spice.y.
Initial value:{
static struct value_t * spice_create_val_value(char *value, int hint)
Definition at line 864 of file parse_spice.y.
Initial value:{
static struct value_t * spice_create_str_value(char *value, int hint)
Definition at line 889 of file parse_spice.y.