CAEN Utility  2.0.2
Utilities for CAEN projects
CAENExpressionEvaluator.c File Reference

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>
Include dependency graph for CAENExpressionEvaluator.c:

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
 

Detailed Description

Tools to compute the numeric result of a string.

Author

Definition in file CAENExpressionEvaluator.c.

Function Documentation

◆ ParseAtom()

int64_t ParseAtom ( const char **  expr)

Definition at line 60 of file CAENExpressionEvaluator.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseFactors()

int64_t ParseFactors ( const char **  expr)

Definition at line 108 of file CAENExpressionEvaluator.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseSummands()

int64_t ParseSummands ( const char **  expr)

Definition at line 145 of file CAENExpressionEvaluator.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseShiftands()

int64_t ParseShiftands ( const char **  expr)

Definition at line 167 of file CAENExpressionEvaluator.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseOR_ands()

int64_t ParseOR_ands ( const char **  expr)

Definition at line 196 of file CAENExpressionEvaluator.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseAND_ands()

int64_t ParseAND_ands ( const char **  expr)

Definition at line 215 of file CAENExpressionEvaluator.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ c_ee_exprEval()

int64_t c_ee_exprEval ( const char *  expr)

Definition at line 233 of file CAENExpressionEvaluator.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ c_ee_getErr()

c_ee_err_t c_ee_getErr ( void  )

Definition at line 252 of file CAENExpressionEvaluator.c.

Here is the caller graph for this function:

◆ c_ee_getErrPos()

const char* c_ee_getErrPos ( void  )

Definition at line 256 of file CAENExpressionEvaluator.c.

Here is the call graph for this function:

◆ c_ee_substituteIdxExpression()

void c_ee_substituteIdxExpression ( const char *  expression,
int32_t  value,
char *  dest,
size_t  maxsize 
)

Definition at line 359 of file CAENExpressionEvaluator.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ c_ee_modifyAndEvaluateExpression()

int32_t c_ee_modifyAndEvaluateExpression ( const char *  expression,
int32_t  idx,
int64_t *  result 
)

Definition at line 386 of file CAENExpressionEvaluator.c.

Here is the call graph for this function:

Variable Documentation

◆ _paren_count

int32_t _paren_count

Definition at line 48 of file CAENExpressionEvaluator.c.

◆ _err

c_ee_err_t _err

Definition at line 49 of file CAENExpressionEvaluator.c.

◆ _err_pos

const char* _err_pos

Definition at line 50 of file CAENExpressionEvaluator.c.