Qucs-core  0.0.18
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Macros | Functions | Variables
parse_mdl.y File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "object.h"
#include "complex.h"
#include "vector.h"
#include "check_mdl.h"

Go to the source code of this file.

Data Structures

struct  mdl_point_t
 
struct  mdl_datasize_t
 
struct  mdl_element_t
 
struct  mdl_hyptable_t
 
struct  mdl_table_t
 
struct  mdl_dataset_t
 
struct  mdl_link_t
 
struct  mdl_lcontent_t
 
struct  mdl_data_t
 
struct  mdl_dcontent_t
 
struct  mdl_sync_t
 

Macros

#define YYERROR_VERBOSE   42
 
#define YYDEBUG   1
 
#define YYMAXDEPTH   1000000
 
#define __NOEXTENSIONS__   1
 

Functions

void mdl_restart (FILE *)
 
__BEGIN_DECLS int mdl_check (void)
 
int mdl_parse (void)
 
int mdl_error (const char *)
 
int mdl_lex (void)
 
int mdl_lex_destroy (void)
 
void mdl_destroy (void)
 
void mdl_init (void)
 
 free ($4)
 

Variables

FILE * mdl_in
 
__END_DECLS qucs::datasetmdl_result
 
struct mdl_link_tmdl_root
 
struct mdl_sync_tmdl_sync_root
 
name prefix
 
LinkList __pad11__
 
LINK_Definition LinkList
 
TableContent __pad12__ = $1
 
 ELEMENT_Line
 
 TABLE_Definition
 
TableContentList __pad13__
 
TableContent TableContentList
 
HypTableContent __pad14__
 
HypTableContentList __pad15__
 
HypTableContent HypTableContentList
 
ConnTableContent __pad16__
 
ConnTableContentList __pad17__
 
OptEditContent __pad18__
 
OptEditContentList __pad19__
 
LinkContent __pad20__
 
 APPLIC_Line
 
 SUBAPP_Line
 
 LIST_Line
 
 MEMBER_Line
 
 type = t_TABLE
 
 table = $1
 
 LINK_Definition
 
 link = $1
 
 DATA_Definition
 
 data = $1
 
LinkContentList __pad21__
 
LinkContent LinkContentList
 
DataContent __pad22__
 
 PLOTOPTIMIZERTRACESET_Line
 
 PLOTOPTIMIZERTRACEREGSET_Line
 
 PLOTOPTIMIZERTRACENATREGSET_Line
 
 PLOTERROR_Line
 
 EDITSIZE_Line
 
 PLOTSIZE_Line
 
 PSTABLE_Definition
 
 CNTABLE_Definition
 
 OPTIMEDIT_Definition
 
 CALSET_Definition
 
 HYPTABLE_Definition
 
 hyptable = $1
 
 DATASET_Definition
 
 BLKEDIT_Definition
 
 CIRCUITDECK_Definition
 
DataContentList __pad23__
 
DataContent DataContentList
 
PSContent __pad24__
 
PSContentList __pad25__
 
DSContent __pad26__
 
DSContent dsize = $1
 
 type1 = $2
 
 data1 = $3
 
DATASIZE_Line TYPE_Line
PointList TYPE_Line 
PointList
 
 type2 = $4
 
 data2 = $5
 
Point __pad27__
 
PointList __pad28__
 
ELEMENT_Line __pad29__ = $1
 
ELEMENT_Line number = (int) $2
 
 name = $3
 
 value = $4
 
 attr = $5
 
t_ELEMENT Real String String
 
VIEW_Line __pad30__
 
TABLE_Definition __pad31__
 
t_TABLE String Real
 
LINK_Definition __pad32__
 
 content = $5
 
DATA_Definition __pad33__
 
PSTABLE_Definition __pad34__
 
CIRCUITDECK_Definition __pad35__
 
BLKEDIT_Definition __pad36__
 
CNTABLE_Definition __pad37__
 
OPTIMEDIT_Definition __pad38__
 
CALSET_Definition __pad39__
 
CalSetContent __pad40__
 
CALDATA_Definition __pad41__
 
CalDataContentList __pad42__
 
CalDataContent __pad43__
 
TERM_Line __pad44__
 
APPLIC_Line __pad45__
 
SUBAPP_Line __pad46__
 
HYPTABLE_Definition __pad47__
 
DATASET_Definition __pad48__
 
DATASIZE_Line __pad49__
 
 size = (int) $3
 
 x = (int) $4
 
 y = (int) $5
 
TYPE_Line __pad50__
 
POINT_Line __pad51__
 
POINT_Line n = (int) $2
 
 r = $5
 
 i = $6
 
LIST_Line __pad52__
 
PLOTOPTIMIZEROPT_Line __pad53__
 
PLOTOPTIMIZERTRACESET_Line __pad54__
 
PLOTOPTIMIZERTRACEREGSET_Line __pad55__
 
PLOTOPTIMIZERTRACENATREGSET_Line __pad56__
 
PLOTERROR_Line __pad57__
 
EDITSIZE_Line __pad58__
 
PLOTSIZE_Line __pad59__
 
MEMBER_Line __pad60__
 
PARAM_Line __pad61__
 
RANGE_Line __pad62__
 
OPTRANGE_Line __pad63__
 
CONNPAIR_Line __pad64__
 

Macro Definition Documentation

#define __NOEXTENSIONS__   1
#define YYDEBUG   1
#define YYERROR_VERBOSE   42
#define YYMAXDEPTH   1000000

Function Documentation

free (   $4)
__BEGIN_DECLS int mdl_check ( void  )

Definition at line 658 of file check_mdl.cpp.

void mdl_destroy ( void  )

Definition at line 672 of file check_mdl.cpp.

int mdl_error ( const char *  error)

Definition at line 620 of file parse_mdl.y.

void mdl_init ( void  )

Definition at line 695 of file check_mdl.cpp.

int mdl_lex ( void  )
int mdl_lex_destroy ( void  )
int mdl_parse ( void  )
void mdl_restart ( FILE *  )

Variable Documentation

LinkList __pad11__

Definition at line 130 of file parse_mdl.y.

TableContent __pad12__ = $1

Definition at line 133 of file parse_mdl.y.

TableContentList __pad13__

Definition at line 147 of file parse_mdl.y.

HypTableContent __pad14__

Definition at line 162 of file parse_mdl.y.

Definition at line 167 of file parse_mdl.y.

ConnTableContent __pad16__

Definition at line 182 of file parse_mdl.y.

ConnTableContentList __pad17__

Definition at line 187 of file parse_mdl.y.

OptEditContent __pad18__

Definition at line 192 of file parse_mdl.y.

OptEditContentList __pad19__

Definition at line 197 of file parse_mdl.y.

LinkContent __pad20__

Definition at line 201 of file parse_mdl.y.

LinkContentList __pad21__

Definition at line 230 of file parse_mdl.y.

DataContent __pad22__

Definition at line 245 of file parse_mdl.y.

DataContentList __pad23__

Definition at line 296 of file parse_mdl.y.

PSContent __pad24__

Definition at line 313 of file parse_mdl.y.

PSContentList __pad25__

Definition at line 318 of file parse_mdl.y.

DSContent __pad26__

Definition at line 322 of file parse_mdl.y.

Point __pad27__

Definition at line 335 of file parse_mdl.y.

PointList __pad28__

Definition at line 341 of file parse_mdl.y.

ELEMENT_Line __pad29__ = $1

Definition at line 344 of file parse_mdl.y.

VIEW_Line __pad30__

Definition at line 367 of file parse_mdl.y.

TABLE_Definition __pad31__

Definition at line 374 of file parse_mdl.y.

LINK_Definition __pad32__

Definition at line 394 of file parse_mdl.y.

DATA_Definition __pad33__

Definition at line 399 of file parse_mdl.y.

PSTABLE_Definition __pad34__

Definition at line 406 of file parse_mdl.y.

Definition at line 412 of file parse_mdl.y.

BLKEDIT_Definition __pad36__

Definition at line 420 of file parse_mdl.y.

CNTABLE_Definition __pad37__

Definition at line 422 of file parse_mdl.y.

Definition at line 428 of file parse_mdl.y.

CALSET_Definition __pad39__

Definition at line 437 of file parse_mdl.y.

CalSetContent __pad40__

Definition at line 439 of file parse_mdl.y.

CALDATA_Definition __pad41__

Definition at line 450 of file parse_mdl.y.

CalDataContentList __pad42__

Definition at line 455 of file parse_mdl.y.

CalDataContent __pad43__

Definition at line 460 of file parse_mdl.y.

TERM_Line __pad44__

Definition at line 465 of file parse_mdl.y.

APPLIC_Line __pad45__

Definition at line 469 of file parse_mdl.y.

SUBAPP_Line __pad46__

Definition at line 471 of file parse_mdl.y.

Definition at line 477 of file parse_mdl.y.

DATASET_Definition __pad48__

Definition at line 485 of file parse_mdl.y.

DATASIZE_Line __pad49__

Definition at line 491 of file parse_mdl.y.

TYPE_Line __pad50__

Definition at line 501 of file parse_mdl.y.

POINT_Line __pad51__

Definition at line 507 of file parse_mdl.y.

LIST_Line __pad52__

Definition at line 518 of file parse_mdl.y.

PLOTOPTIMIZEROPT_Line __pad53__

Definition at line 525 of file parse_mdl.y.

Definition at line 531 of file parse_mdl.y.

Definition at line 543 of file parse_mdl.y.

Definition at line 553 of file parse_mdl.y.

PLOTERROR_Line __pad57__

Definition at line 563 of file parse_mdl.y.

EDITSIZE_Line __pad58__

Definition at line 569 of file parse_mdl.y.

PLOTSIZE_Line __pad59__

Definition at line 579 of file parse_mdl.y.

MEMBER_Line __pad60__

Definition at line 583 of file parse_mdl.y.

PARAM_Line __pad61__

Definition at line 586 of file parse_mdl.y.

RANGE_Line __pad62__

Definition at line 593 of file parse_mdl.y.

OPTRANGE_Line __pad63__

Definition at line 601 of file parse_mdl.y.

CONNPAIR_Line __pad64__

Definition at line 609 of file parse_mdl.y.

APPLIC_Line
Initial value:
{
$$ = NULL

Definition at line 203 of file parse_mdl.y.

attr = $5

Definition at line 354 of file parse_mdl.y.

BLKEDIT_Definition
Initial value:
{
$$ = NULL

Definition at line 290 of file parse_mdl.y.

CALSET_Definition
Initial value:
{
$$ = NULL

Definition at line 277 of file parse_mdl.y.

CIRCUITDECK_Definition
Initial value:
{
$$ = NULL

Definition at line 293 of file parse_mdl.y.

CNTABLE_Definition
Initial value:
{
$$ = NULL

Definition at line 271 of file parse_mdl.y.

DATA_Definition content = $5

Definition at line 397 of file parse_mdl.y.

data = $1

Definition at line 228 of file parse_mdl.y.

data1 = $3

Definition at line 325 of file parse_mdl.y.

data2 = $5

Definition at line 333 of file parse_mdl.y.

DATA_Definition
Initial value:
{
$$ = (struct mdl_lcontent_t *) calloc (sizeof (struct mdl_lcontent_t), 1)

Definition at line 225 of file parse_mdl.y.

DataContent DataContentList
Initial value:
{
if ($1) {
$1->next = $2;
$$ = $1;
} else {
$$ = $2;
}
}

Definition at line 299 of file parse_mdl.y.

DATASET_Definition
Initial value:
{
$$ = (struct mdl_dcontent_t *) calloc (sizeof (struct mdl_dcontent_t), 1)

Definition at line 285 of file parse_mdl.y.

dsize = $1

Definition at line 323 of file parse_mdl.y.

EDITSIZE_Line
Initial value:
{
$$ = NULL

Definition at line 259 of file parse_mdl.y.

ELEMENT_Line
Initial value:
{
$$ = $1

Definition at line 141 of file parse_mdl.y.

hyptable = $1

Definition at line 283 of file parse_mdl.y.

HYPTABLE_Definition
Initial value:
{
$$ = (struct mdl_dcontent_t *) calloc (sizeof (struct mdl_dcontent_t), 1)

Definition at line 280 of file parse_mdl.y.

HypTableContent HypTableContentList
Initial value:
{
if ($1) {
$1->next = $2;
$$ = $1;
} else {
$$ = $2;
}
}

Definition at line 170 of file parse_mdl.y.

i = $6

Definition at line 516 of file parse_mdl.y.

link = $1

Definition at line 223 of file parse_mdl.y.

LINK_Definition
Initial value:
{
$$ = (struct mdl_lcontent_t *) calloc (sizeof (struct mdl_lcontent_t), 1)

Definition at line 220 of file parse_mdl.y.

LinkContent LinkContentList
Initial value:
{
if ($1) {
$1->next = $2;
$$ = $1;
} else {
$$ = $2;
}
}

Definition at line 233 of file parse_mdl.y.

LINK_Definition LinkList
Initial value:
{
$1->next = $2

Definition at line 131 of file parse_mdl.y.

LIST_Line
Initial value:
{
$$ = NULL

Definition at line 209 of file parse_mdl.y.

FILE* mdl_in
__END_DECLS qucs::dataset* mdl_result

Definition at line 52 of file check_mdl.cpp.

struct mdl_link_t* mdl_root

Definition at line 53 of file check_mdl.cpp.

struct mdl_sync_t* mdl_sync_root

Definition at line 54 of file check_mdl.cpp.

MEMBER_Line
Initial value:
{
$$ = NULL

Definition at line 212 of file parse_mdl.y.

POINT_Line n = (int) $2

Definition at line 512 of file parse_mdl.y.

Definition at line 352 of file parse_mdl.y.

number = (int) $2

Definition at line 351 of file parse_mdl.y.

OPTIMEDIT_Definition
Initial value:
{
$$ = NULL

Definition at line 274 of file parse_mdl.y.

PLOTERROR_Line
Initial value:
{
$$ = NULL

Definition at line 256 of file parse_mdl.y.

PLOTOPTIMIZERTRACENATREGSET_Line
Initial value:
{
$$ = NULL

Definition at line 253 of file parse_mdl.y.

PLOTOPTIMIZERTRACEREGSET_Line
Initial value:
{
$$ = NULL

Definition at line 250 of file parse_mdl.y.

PLOTOPTIMIZERTRACESET_Line
Initial value:
{
$$ = NULL

Definition at line 247 of file parse_mdl.y.

PLOTSIZE_Line
Initial value:
{
$$ = NULL

Definition at line 262 of file parse_mdl.y.

Point PointList
Initial value:
{
$$ = (struct mdl_dataset_t *) calloc (sizeof (struct mdl_dataset_t), 1)

Definition at line 327 of file parse_mdl.y.

name prefix

Definition at line 52 of file parse_mdl.y.

PSTABLE_Definition
Initial value:
{
$$ = NULL

Definition at line 268 of file parse_mdl.y.

r = $5

Definition at line 515 of file parse_mdl.y.

t_TABLE String Real
Initial value:
{' TableContentList '}' {
$$ = (struct mdl_table_t *) calloc (sizeof (struct mdl_table_t), 1);
$$->name = $2;
$$->data = $5;
}
| t_TABLE '{' '}' {
$$ = (struct mdl_table_t *) calloc (sizeof (struct mdl_table_t), 1);
}

Definition at line 382 of file parse_mdl.y.

size = (int) $3

Definition at line 497 of file parse_mdl.y.

t_PLOTOPTIMIZERTRACESET String String
Initial value:
{
$$ = (struct mdl_element_t *) calloc (sizeof (struct mdl_element_t), 1)

Definition at line 356 of file parse_mdl.y.

SUBAPP_Line
Initial value:
{
$$ = NULL

Definition at line 206 of file parse_mdl.y.

table = $1

Definition at line 218 of file parse_mdl.y.

TABLE_Definition
Initial value:
{
$$ = NULL

Definition at line 144 of file parse_mdl.y.

TableContent TableContentList
Initial value:
{
if ($1) {
$1->next = $2;
$$ = $1;
} else {
$$ = $2;
}
}

Definition at line 150 of file parse_mdl.y.

DATASIZE_Line type = t_TABLE

Definition at line 217 of file parse_mdl.y.

type1 = $2

Definition at line 324 of file parse_mdl.y.

type2 = $4

Definition at line 332 of file parse_mdl.y.

value = $4

Definition at line 353 of file parse_mdl.y.

x = (int) $4

Definition at line 498 of file parse_mdl.y.

y = (int) $5

Definition at line 499 of file parse_mdl.y.