UFO: Alien Invasion
|
Evaluates stuff like this expression. More...
Public Member Functions | |
BinaryExpressionParser (const char *expr, BEPEvaluteCallback_t varFuncParam, const void *userdataPtr) | |
bool | getResult () const |
binaryExpressionParserError_t | getError () const |
Private Member Functions | |
void | SkipWhiteSpaces (const char **s) const |
void | NextChar (const char **s) const |
Advance to the next char that is no whitespace. More... | |
const char * | GetSwitchName (const char **s) |
bool | CheckOR (const char **s) |
Evaluates or and xor in the given string. This is the entry point, it delegates to the and checks that are done in CheckAnd . More... | |
bool | CheckAND (const char **s) |
Private Attributes | |
binaryExpressionParserError_t | binaryExpressionParserError |
BEPEvaluteCallback_t | varFunc |
char | varName [MAX_VAR] |
bool | result |
const void * | userdata |
Evaluates stuff like this expression.
(x & !y) ^ z
Definition at line 36 of file binaryexpressionparser.cpp.
|
inline |
Definition at line 153 of file binaryexpressionparser.cpp.
References BEPERR_NOEND, CheckOR(), and Q_strvalid.
|
inlineprivate |
Definition at line 108 of file binaryexpressionparser.cpp.
References BEPERR_BRACE, BEPERR_NOTFOUND, CheckOR(), GetSwitchName(), NextChar(), result, SkipWhiteSpaces(), and varFunc.
Referenced by CheckOR().
|
inlineprivate |
Evaluates or and xor in the given string. This is the entry point, it delegates to the and checks that are done in CheckAnd
.
Definition at line 79 of file binaryexpressionparser.cpp.
References CheckAND(), NextChar(), result, and SkipWhiteSpaces().
Referenced by BinaryExpressionParser(), and CheckAND().
|
inline |
Definition at line 169 of file binaryexpressionparser.cpp.
References binaryExpressionParserError.
Referenced by BEP_Evaluate().
|
inline |
Definition at line 164 of file binaryexpressionparser.cpp.
References result.
Referenced by BEP_Evaluate().
|
inlineprivate |
Definition at line 60 of file binaryexpressionparser.cpp.
References varName.
Referenced by CheckAND().
|
inlineprivate |
Advance to the next char that is no whitespace.
Definition at line 53 of file binaryexpressionparser.cpp.
References SkipWhiteSpaces().
Referenced by CheckAND(), and CheckOR().
|
inlineprivate |
Definition at line 44 of file binaryexpressionparser.cpp.
Referenced by CheckAND(), CheckOR(), and NextChar().
|
private |
Definition at line 38 of file binaryexpressionparser.cpp.
Referenced by getError().
|
private |
Definition at line 41 of file binaryexpressionparser.cpp.
Referenced by CheckAND(), CheckOR(), and getResult().
|
private |
Definition at line 42 of file binaryexpressionparser.cpp.
|
private |
Definition at line 39 of file binaryexpressionparser.cpp.
Referenced by CheckAND().
|
private |
Definition at line 40 of file binaryexpressionparser.cpp.
Referenced by GetSwitchName().