#include <string>
#include "nedelements.h"
#include "nedyydefs.h"
#include "nedparser.h"
Go to the source code of this file.
Defines | |
#define | NONREENTRANT_NED_PARSER(p) |
Functions | |
std::string | slashifyFilename (const char *fname) |
const char * | currentLocation () |
NEDElement * | createElementWithTag (int tagcode, NEDElement *parent=NULL) |
NEDElement * | getOrCreateElementWithTag (int tagcode, NEDElement *parent) |
void | storePos (NEDElement *node, YYLTYPE pos) |
void | storePos (NEDElement *node, YYLTYPE firstpos, YYLTYPE lastpos) |
PropertyElement * | addProperty (NEDElement *node, const char *name) |
PropertyElement * | addComponentProperty (NEDElement *node, const char *name) |
PropertyElement * | storeSourceCode (NEDElement *node, YYLTYPE tokenpos) |
PropertyElement * | storeComponentSourceCode (NEDElement *node, YYLTYPE tokenpos) |
PropertyElement * | setIsNetworkProperty (NEDElement *node) |
void | addComment (NEDElement *node, const char *locId, const char *comment, const char *defaultValue) |
void | storeFileComment (NEDElement *node) |
void | storeBannerComment (NEDElement *node, YYLTYPE tokenpos) |
void | storeRightComment (NEDElement *node, YYLTYPE tokenpos) |
void | storeTrailingComment (NEDElement *node, YYLTYPE tokenpos) |
void | storeBannerAndRightComments (NEDElement *node, YYLTYPE pos) |
void | storeBannerAndRightComments (NEDElement *node, YYLTYPE firstpos, YYLTYPE lastpos) |
void | storeInnerComments (NEDElement *node, YYLTYPE pos) |
ParamElement * | addParameter (NEDElement *params, YYLTYPE namepos) |
ParamElement * | addParameter (NEDElement *params, const char *name, YYLTYPE namepos) |
GateElement * | addGate (NEDElement *gates, YYLTYPE namepos) |
YYLTYPE | trimQuotes (YYLTYPE vectorpos) |
YYLTYPE | trimDoubleBraces (YYLTYPE vectorpos) |
void | swapAttributes (NEDElement *node, const char *attr1, const char *attr2) |
void | swapExpressionChildren (NEDElement *node, const char *attr1, const char *attr2) |
void | swapConnection (NEDElement *conn) |
void | transferChildren (NEDElement *from, NEDElement *to) |
const char * | toString (YYLTYPE) |
const char * | toString (long) |
std::string | removeSpaces (YYLTYPE pos) |
ExpressionElement * | createExpression (NEDElement *expr) |
OperatorElement * | createOperator (const char *op, NEDElement *operand1, NEDElement *operand2=NULL, NEDElement *operand3=NULL) |
FunctionElement * | createFunction (const char *funcname, NEDElement *arg1=NULL, NEDElement *arg2=NULL, NEDElement *arg3=NULL, NEDElement *arg4=NULL, NEDElement *arg5=NULL, NEDElement *arg6=NULL, NEDElement *arg7=NULL, NEDElement *arg8=NULL, NEDElement *arg9=NULL, NEDElement *arg10=NULL) |
IdentElement * | createIdent (YYLTYPE parampos) |
IdentElement * | createIdent (YYLTYPE parampos, YYLTYPE modulepos, NEDElement *moduleindexoperand=NULL) |
LiteralElement * | createPropertyValue (YYLTYPE textpos) |
LiteralElement * | createLiteral (int type, YYLTYPE valuepos, YYLTYPE textpos) |
LiteralElement * | createLiteral (int type, const char *value, const char *text) |
LiteralElement * | createStringLiteral (YYLTYPE textpos) |
LiteralElement * | createQuantityLiteral (YYLTYPE textpos) |
NEDElement * | unaryMinus (NEDElement *node) |
void | addOptionalExpression (NEDElement *elem, const char *attrname, YYLTYPE exprpos, NEDElement *expr) |
void | addExpression (NEDElement *elem, const char *attrname, YYLTYPE exprpos, NEDElement *expr) |
std::string | convertBackgroundDisplayString (const char *old) |
bool | isEmpty (YYLTYPE pos) |
YYLTYPE | makeYYLTYPE (int fl, int fc, int ll, int lc) |
YYLTYPE | makeEmptyYYLTYPE () |
#define NONREENTRANT_NED_PARSER | ( | p | ) |
void addComment | ( | NEDElement * | node, | |
const char * | locId, | |||
const char * | comment, | |||
const char * | defaultValue | |||
) |
PropertyElement* addComponentProperty | ( | NEDElement * | node, | |
const char * | name | |||
) |
void addExpression | ( | NEDElement * | elem, | |
const char * | attrname, | |||
YYLTYPE | exprpos, | |||
NEDElement * | expr | |||
) |
GateElement* addGate | ( | NEDElement * | gates, | |
YYLTYPE | namepos | |||
) |
void addOptionalExpression | ( | NEDElement * | elem, | |
const char * | attrname, | |||
YYLTYPE | exprpos, | |||
NEDElement * | expr | |||
) |
ParamElement* addParameter | ( | NEDElement * | params, | |
const char * | name, | |||
YYLTYPE | namepos | |||
) |
ParamElement* addParameter | ( | NEDElement * | params, | |
YYLTYPE | namepos | |||
) |
PropertyElement* addProperty | ( | NEDElement * | node, | |
const char * | name | |||
) |
std::string convertBackgroundDisplayString | ( | const char * | old | ) |
NEDElement* createElementWithTag | ( | int | tagcode, | |
NEDElement * | parent = NULL | |||
) |
ExpressionElement* createExpression | ( | NEDElement * | expr | ) |
FunctionElement* createFunction | ( | const char * | funcname, | |
NEDElement * | arg1 = NULL , |
|||
NEDElement * | arg2 = NULL , |
|||
NEDElement * | arg3 = NULL , |
|||
NEDElement * | arg4 = NULL , |
|||
NEDElement * | arg5 = NULL , |
|||
NEDElement * | arg6 = NULL , |
|||
NEDElement * | arg7 = NULL , |
|||
NEDElement * | arg8 = NULL , |
|||
NEDElement * | arg9 = NULL , |
|||
NEDElement * | arg10 = NULL | |||
) |
IdentElement* createIdent | ( | YYLTYPE | parampos, | |
YYLTYPE | modulepos, | |||
NEDElement * | moduleindexoperand = NULL | |||
) |
IdentElement* createIdent | ( | YYLTYPE | parampos | ) |
LiteralElement* createLiteral | ( | int | type, | |
const char * | value, | |||
const char * | text | |||
) |
LiteralElement* createLiteral | ( | int | type, | |
YYLTYPE | valuepos, | |||
YYLTYPE | textpos | |||
) |
OperatorElement* createOperator | ( | const char * | op, | |
NEDElement * | operand1, | |||
NEDElement * | operand2 = NULL , |
|||
NEDElement * | operand3 = NULL | |||
) |
LiteralElement* createPropertyValue | ( | YYLTYPE | textpos | ) |
LiteralElement* createQuantityLiteral | ( | YYLTYPE | textpos | ) |
LiteralElement* createStringLiteral | ( | YYLTYPE | textpos | ) |
const char* currentLocation | ( | ) |
NEDElement* getOrCreateElementWithTag | ( | int | tagcode, | |
NEDElement * | parent | |||
) |
bool isEmpty | ( | YYLTYPE | pos | ) | [inline] |
YYLTYPE makeEmptyYYLTYPE | ( | ) | [inline] |
References makeYYLTYPE().
YYLTYPE makeYYLTYPE | ( | int | fl, | |
int | fc, | |||
int | ll, | |||
int | lc | |||
) | [inline] |
References pos.
Referenced by makeEmptyYYLTYPE().
std::string removeSpaces | ( | YYLTYPE | pos | ) |
PropertyElement* setIsNetworkProperty | ( | NEDElement * | node | ) |
std::string slashifyFilename | ( | const char * | fname | ) |
void storeBannerAndRightComments | ( | NEDElement * | node, | |
YYLTYPE | firstpos, | |||
YYLTYPE | lastpos | |||
) |
void storeBannerAndRightComments | ( | NEDElement * | node, | |
YYLTYPE | pos | |||
) |
void storeBannerComment | ( | NEDElement * | node, | |
YYLTYPE | tokenpos | |||
) |
PropertyElement* storeComponentSourceCode | ( | NEDElement * | node, | |
YYLTYPE | tokenpos | |||
) |
void storeFileComment | ( | NEDElement * | node | ) |
void storeInnerComments | ( | NEDElement * | node, | |
YYLTYPE | pos | |||
) |
void storePos | ( | NEDElement * | node, | |
YYLTYPE | firstpos, | |||
YYLTYPE | lastpos | |||
) |
void storePos | ( | NEDElement * | node, | |
YYLTYPE | pos | |||
) |
void storeRightComment | ( | NEDElement * | node, | |
YYLTYPE | tokenpos | |||
) |
PropertyElement* storeSourceCode | ( | NEDElement * | node, | |
YYLTYPE | tokenpos | |||
) |
void storeTrailingComment | ( | NEDElement * | node, | |
YYLTYPE | tokenpos | |||
) |
void swapAttributes | ( | NEDElement * | node, | |
const char * | attr1, | |||
const char * | attr2 | |||
) |
void swapConnection | ( | NEDElement * | conn | ) |
void swapExpressionChildren | ( | NEDElement * | node, | |
const char * | attr1, | |||
const char * | attr2 | |||
) |
const char* toString | ( | long | ) |
const char* toString | ( | YYLTYPE | ) |
void transferChildren | ( | NEDElement * | from, | |
NEDElement * | to | |||
) |
YYLTYPE trimDoubleBraces | ( | YYLTYPE | vectorpos | ) |
YYLTYPE trimQuotes | ( | YYLTYPE | vectorpos | ) |
NEDElement* unaryMinus | ( | NEDElement * | node | ) |