#COND"\" failed: " \
93<< __FILE__ << " line " \
95throw ParserError( ss.str() ); \
98 #define MUP_ASSERT(COND) 101 #define MUP_FAIL(MSG) 102 #define MUP_ASSERT(COND) 118 #if defined(MUP_UNICODE) 122 inlinestd::wostream&
console()
249 typedefstd::basic_stringstream<
char_type,
250std::char_traits<char_type>,
unsigned int
A callback function used to compare two keys in a database.
#define MUP_BYTECODE_TYPE
Definition of the basic bytecode datatype.
#define MUP_STRING_TYPE
Definition of the basic parser string type.
#define MUP_BASETYPE
Define the base datatype for values.
This file contains compatibility fixes for some platforms.
Namespace for mathematical applications.
value_type(* multfun_type)(const value_type *, int)
Callback type used for functions with a variable argument list.
std::ostream & console()
Encapsulate cout.
int(* identfun_type)(const char_type *sExpr, int *nPos, value_type *fVal)
Callback used for functions that identify values in a string.
value_type(* strfun_type2)(const char_type *, value_type)
Callback type used for functions taking a string and a value as arguments.
value_type(* strfun_type3)(const char_type *, value_type, value_type)
Callback type used for functions taking a string and two values as arguments.
std::istream & console_in()
Encapsulate cin.
value_type(* strfun_type1)(const char_type *)
Callback type used for functions taking a string as an argument.
std::map< string_type, value_type > valmap_type
Type used for storing constants.
long bytecode_type
The bytecode type used by the parser.
value_type(* fun_type5)(value_type, value_type, value_type, value_type, value_type)
Callback type used for functions with five arguments.
string_type::value_type char_type
The character type used by the parser.
std::basic_stringstream< char_type, std::char_traits< char_type >, std::allocator< char_type > > stringstream_type
Typedef for easily using stringstream that respect the parser stringtype.
char MAP_TYPE_CANT_BE_UNSIGNED[sizeof(STATIC_ASSERTION_FAILURE< bytecode_type(-1)< 0 >)]
This is a static typecheck.
std::map< string_type, value_type * > varmap_type
Type used for storing variables.
ECmdCode
Bytecode values.
@ cmADD
Operator item: add.
@ cmGE
Operator item: greater or equal.
@ cmLT
Operator item: less than.
@ cmPOW
Operator item: y to the power of ...
@ cmASSIGN
Operator item: Assignment operator.
@ cmARG_SEP
function argument separator
@ cmLE
Operator item: less or equal.
@ cmBO
Operator item: opening bracket.
@ cmMUL
Operator item: multiply.
@ cmXOR
Operator item: logical xor.
@ cmSTRING
Code for a string token.
@ cmDIV
Operator item: division.
@ cmOPRT_INFIX
code for infix operators
@ cmAND
Operator item: logical and.
@ cmBC
Operator item: closing bracket.
@ cmOPRT_BIN
user defined binary operator
@ cmUNKNOWN
uninitialized item
@ cmOR
Operator item: logical or.
@ cmNEQ
Operator item: not equal.
@ cmGT
Operator item: greater than.
@ cmEQ
Operator item: equals.
@ cmSUB
Operator item: subtract.
@ cmFUNC_STR
Code for a function with a string parameter.
@ cmFUNC
Code for a function item.
@ cmOPRT_POSTFIX
code for postfix operators
EPrec
Parser operator precedence values.
@ prPOSTFIX
Postfix operator priority (currently unused)
@ prINFIX
Signs have a higher priority than ADD_SUB, but lower than power operator.
@ prCMP
comparsion operators
@ prLOGIC
logic operators
@ prPOW
power operator priority (highest)
@ prMUL_DIV
multiplication/division
value_type(* fun_type2)(value_type, value_type)
Callback type used for functions with two arguments.
ETypeCode
Types internally used by the parser.
@ tpDBL
Floating point variables.
@ tpSTR
String type (Function arguments and constants only, no string variables)
value_type(* fun_type3)(value_type, value_type, value_type)
Callback type used for functions with three arguments.
double value_type
The numeric datatype used by the parser.
value_type(* fun_type4)(value_type, value_type, value_type, value_type)
Callback type used for functions with four arguments.
std::string string_type
The stringtype used by the parser.
std::map< string_type, std::size_t > strmap_type
Type for assigning a string name to an index in the internal string table.
value_type(* fun_type0)()
Callback type used for functions without arguments.
value_type(* fun_type1)(value_type)
Callback type used for functions with a single arguments.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4