Skip to content
Snippets Groups Projects

Cmake-infrastructure for tests and CI-setup for Levante

Merged Jonas Jucker requested to merge cmake_for_tests into master
Files
5
+ 16
26
@@ -5,45 +5,35 @@
#define NUM_FCT 9
#define MAX_NAME_LEN 32
#ifdef __cplusplus
extern "C" {
#endif
int priority(char op);
#ifdef __cplusplus
}
#endif
typedef enum { VARIABLE, VALUE, OPERATOR, FUNCTION } expr_type;
typedef enum {
EXP = 0,
LOG = 1,
SIN = 2,
COS = 3,
MIN = 4,
MAX = 5,
IF = 6,
SQRT = 7,
ERF = 8
EXP = 0,
LOG = 1,
SIN = 2,
COS = 3,
MIN = 4,
MAX = 5,
IF = 6,
SQRT = 7,
ERF = 8
} fct_type;
extern const char *const fct_name[NUM_FCT];
/* Data type for postfix stack and queue (shunting yard algorithm) */
struct t_item {
expr_type type;
expr_type type;
char op;
double val;
fct_type fct;
char field[MAX_NAME_LEN];
char op;
double val;
fct_type fct;
char field[MAX_NAME_LEN];
};
/* Data type for stack or queue. */
struct t_list {
int size;
struct t_item list[1024];
int size;
struct t_item list[1024];
};
/* takes a string as input and generates a post-fix parse tree. */
Loading