OMNeT++ NEDXML  6.0.3
yyutil.h File Reference
#include <string>
#include "astnode.h"
#include "yydefs.h"

Go to the source code of this file.

Namespaces

 omnetpp
 
 omnetpp::nedxml
 

Macros

#define DETECT_PARSER_REENTRY()
 

Functions

std::string slashifyFilename (const char *fname)
 
const char * currentLocation (ParseContext *np)
 
ASTNode * createElementWithTag (ParseContext *np, ASTNodeFactory *factory, int tagcode, ASTNode *parent=nullptr)
 
ASTNode * getOrCreateElementWithTag (ParseContext *np, ASTNodeFactory *factory, int tagcode, ASTNode *parent)
 
void storePos (ParseContext *np, ASTNode *node, YYLoc pos)
 
void storePos (ParseContext *np, ASTNode *node, YYLoc firstpos, YYLoc lastpos)
 
void swapAttributes (ASTNode *node, const char *attr1, const char *attr2)
 
void transferChildren (ASTNode *from, ASTNode *to)
 
YYLoc trimQuotes (YYLoc vectorpos)
 
YYLoc trimDoubleBraces (YYLoc vectorpos)
 
const char * toString (ParseContext *np, YYLoc)
 
const char * toString (long)
 
std::string removeSpaces (ParseContext *np, YYLoc pos)
 
bool isEmpty (YYLoc pos)
 
YYLoc makeYYLoc (int fl, int fc, int ll, int lc)
 
YYLoc makeEmptyYYLoc ()
 

Variables

bool parseInProgress
 

Macro Definition Documentation

◆ DETECT_PARSER_REENTRY

#define DETECT_PARSER_REENTRY ( )
Value:
struct Guard { \
Guard() {if (parseInProgress) throw opp_runtime_error("non-reentrant parser invoked again while parsing"); parseInProgress = true;} \
~Guard() {parseInProgress = false;} \
} __guard;
omnetpp::nedxml::parseInProgress
bool parseInProgress