|
CAEN Utility
2.0.2
Utilities for CAEN projects
|
Tools to compute the numeric result of a string. More...
#include <CAENExpressionEvaluator.h>#include <assert.h>#include <string.h>#include <stdlib.h>#include <stdio.h>#include <inttypes.h>#include <stdbool.h>#include <CAENMultiplatform.h>Go to the source code of this file.
Functions | |
| int64_t | ParseAtom (const char **expr) |
| int64_t | ParseFactors (const char **expr) |
| int64_t | ParseSummands (const char **expr) |
| int64_t | ParseShiftands (const char **expr) |
| int64_t | ParseOR_ands (const char **expr) |
| int64_t | ParseAND_ands (const char **expr) |
| int64_t | c_ee_exprEval (const char *expr) |
| c_ee_err_t | c_ee_getErr (void) |
| const char * | c_ee_getErrPos (void) |
| void | c_ee_substituteIdxExpression (const char *expression, int32_t value, char *dest, size_t maxsize) |
| int32_t | c_ee_modifyAndEvaluateExpression (const char *expression, int32_t idx, int64_t *result) |
Variables | |
| int32_t | _paren_count |
| c_ee_err_t | _err |
| const char * | _err_pos |
Tools to compute the numeric result of a string.
Definition in file CAENExpressionEvaluator.c.
| int64_t ParseAtom | ( | const char ** | expr | ) |
Definition at line 60 of file CAENExpressionEvaluator.c.
| int64_t ParseFactors | ( | const char ** | expr | ) |
Definition at line 108 of file CAENExpressionEvaluator.c.
| int64_t ParseSummands | ( | const char ** | expr | ) |
Definition at line 145 of file CAENExpressionEvaluator.c.
| int64_t ParseShiftands | ( | const char ** | expr | ) |
Definition at line 167 of file CAENExpressionEvaluator.c.
| int64_t ParseOR_ands | ( | const char ** | expr | ) |
Definition at line 196 of file CAENExpressionEvaluator.c.
| int64_t ParseAND_ands | ( | const char ** | expr | ) |
Definition at line 215 of file CAENExpressionEvaluator.c.
| int64_t c_ee_exprEval | ( | const char * | expr | ) |
Definition at line 233 of file CAENExpressionEvaluator.c.
| c_ee_err_t c_ee_getErr | ( | void | ) |
Definition at line 252 of file CAENExpressionEvaluator.c.
| const char* c_ee_getErrPos | ( | void | ) |
| void c_ee_substituteIdxExpression | ( | const char * | expression, |
| int32_t | value, | ||
| char * | dest, | ||
| size_t | maxsize | ||
| ) |
Definition at line 359 of file CAENExpressionEvaluator.c.
| int32_t c_ee_modifyAndEvaluateExpression | ( | const char * | expression, |
| int32_t | idx, | ||
| int64_t * | result | ||
| ) |
| int32_t _paren_count |
Definition at line 48 of file CAENExpressionEvaluator.c.
| c_ee_err_t _err |
Definition at line 49 of file CAENExpressionEvaluator.c.
| const char* _err_pos |
Definition at line 50 of file CAENExpressionEvaluator.c.