OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExpressionParser.cpp File Reference
#include "ImportExport/ExpressionParser.h"
#include <regex>
#include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
#include <muparserx/mpParser.h>
#include "Logger/Logger.h"
#include "Shared/StringTransform.h"
+ Include dependency graph for ExpressionParser.cpp:

Go to the source code of this file.

Classes

class  import_export::anonymous_namespace{ExpressionParser.cpp}::Function_substr
 
class  import_export::anonymous_namespace{ExpressionParser.cpp}::Function_regex_match
 
class  import_export::anonymous_namespace{ExpressionParser.cpp}::Function_split_part
 
class  import_export::anonymous_namespace{ExpressionParser.cpp}::Function_int
 
class  import_export::anonymous_namespace{ExpressionParser.cpp}::Function_float
 
class  import_export::anonymous_namespace{ExpressionParser.cpp}::Function_double
 
class  import_export::anonymous_namespace{ExpressionParser.cpp}::Function_str
 
class  import_export::anonymous_namespace{ExpressionParser.cpp}::Function_bool
 
class  import_export::anonymous_namespace{ExpressionParser.cpp}::Operator_not
 

Namespaces

 import_export
 
 import_export::anonymous_namespace{ExpressionParser.cpp}
 

Macros

#define VALIDATE_ARG_TYPE(arg, t2)
 
#define THROW_INVALID_PARAMETER(arg, what)
 
#define THROW_INVALID_PARAMETER_COUNT()
 

Functions

std::string import_export::anonymous_namespace{ExpressionParser.cpp}::ms_to_ss (const mup::string_type &s)
 
mup::string_type import_export::anonymous_namespace{ExpressionParser.cpp}::ss_to_ms (const std::string &s)
 
mup::Value import_export::anonymous_namespace{ExpressionParser.cpp}::evaluate (mup::ParserX *parser)
 

Macro Definition Documentation

#define THROW_INVALID_PARAMETER_COUNT ( )
Value:
mup::ErrorContext err; \
err.Errc = mup::ecINVALID_NUMBER_OF_PARAMETERS; \
err.Ident = GetIdent(); \
throw mup::ParserError(err);

Definition at line 79 of file ExpressionParser.cpp.

Referenced by import_export::anonymous_namespace{ExpressionParser.cpp}::Function_substr::Eval().

#define VALIDATE_ARG_TYPE (   arg,
  t2 
)
Value:
if (args[arg]->GetType() != t2) { \
mup::ErrorContext err; \
err.Errc = mup::ecINVALID_TYPE; \
err.Type1 = args[arg]->GetType(); \
err.Type2 = t2; \
err.Ident = GetIdent(); \
throw mup::ParserError(err); \
}

Definition at line 62 of file ExpressionParser.cpp.

Referenced by import_export::anonymous_namespace{ExpressionParser.cpp}::Function_substr::Eval(), import_export::anonymous_namespace{ExpressionParser.cpp}::Function_regex_match::Eval(), import_export::anonymous_namespace{ExpressionParser.cpp}::Function_split_part::Eval(), and import_export::anonymous_namespace{ExpressionParser.cpp}::Operator_not::Eval().