36 #define YYERROR_VERBOSE 42
38 #define YYMAXDEPTH 1000000
70 %left Less Greater LessOrEqual GreaterOrEqual
112 %type <assign> Equation
116 %type <eqn> ExpressionMatrix ExpressionVector
191 $$ = (
struct node_t *) calloc (
sizeof (
struct node_t), 1);
283 $$->type = strdup (
"Eqn");
287 $4->setInstance ($3);
289 $4->applyInstance ();
303 $$ =
new eqn::assignment ();
332 $1->appendNodes ($2);
339 $2->appendNodes ($3);
350 $$ =
new eqn::application ();
351 $$->n = strdup (
"vector");
352 $$->nargs = $1->count ();
362 $2->appendNodes ($3);
372 $3->appendNodes ($4);
380 $$ =
new eqn::application ();
381 $$->n = strdup (
"matrix");
382 $$->nargs = $1->count ();
408 $$ =
new eqn::application ();
409 $$->n = strdup (
"range");
415 $$ =
new eqn::application ();
416 $$->n = strdup (
"range");
424 $$ =
new eqn::application ();
425 $$->n = strdup (
"range");
433 $$ =
new eqn::application ();
434 $$->n = strdup (
"range");
447 $$ =
new eqn::reference ();
454 $$ =
new eqn::application ();
456 $$->nargs = $3->count ();
460 $$ =
new eqn::application ();
461 $$->n = strdup (
"array");
462 $$->nargs = 1 + $3->count ();
467 $$ =
new eqn::application ();
468 $$->n = strdup (
"+");
474 $$ =
new eqn::application ();
475 $$->n = strdup (
"-");
481 $$ =
new eqn::application ();
482 $$->n = strdup (
"*");
488 $$ =
new eqn::application ();
489 $$->n = strdup (
"/");
495 $$ =
new eqn::application ();
496 $$->n = strdup (
"%");
502 $$ =
new eqn::application ();
503 $$->n = strdup (
"+");
508 $$ =
new eqn::application ();
509 $$->n = strdup (
"-");
514 $$ =
new eqn::application ();
515 $$->n = strdup (
"^");
521 $$ =
new eqn::application ();
522 $$->n = strdup (
"?:");
529 $$ =
new eqn::application ();
530 $$->n = strdup (
"<");
536 $$ =
new eqn::application ();
537 $$->n = strdup (
">");
543 $$ =
new eqn::application ();
544 $$->n = strdup (
">=");
550 $$ =
new eqn::application ();
551 $$->n = strdup (
"<=");
557 $$ =
new eqn::application ();
558 $$->n = strdup (
"==");
564 $$ =
new eqn::application ();
565 $$->n = strdup (
"!=");
571 $$ =
new eqn::application ();
572 $$->n = strdup (
"!");
577 $$ =
new eqn::application ();
578 $$->n = strdup (
"&&");
584 $$ =
new eqn::application ();
585 $$->n = strdup (
"||");
621 $$->type = strdup (
"Def");
std::complex< nr_double_t > nr_complex_t
ExpressionCol ExpressionRowList
Expression ExpressionColList
< INITIAL >< INITIAL >< INITIAL >< INITIAL > return InvalidCharacter
struct definition_t * definition_root
int netlist_error(const char *error)
void logprint(int level, const char *format,...)
EquationLine ActionLine DefinitionLine Eol