QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
exp.h File Reference
This graph shows which files directly or indirectly include this file:

Data Structures

struct  functable_s
 
struct  optable_s
 
struct  token_func_s
 
struct  token_generic_s
 
struct  token_num_s
 
struct  token_op_s
 
union  token_u
 

Typedefs

typedef double(* funcfunc )(double *oplist, unsigned int numops)
 
typedef struct functable_s functable_t
 
typedef double(* opfunc )(double op1, double op2)
 
typedef struct optable_s optable_t
 
typedef union token_u token
 
typedef struct token_func_s token_func
 
typedef struct token_generic_s token_generic
 
typedef struct token_num_s token_num
 
typedef struct token_op_s token_op
 

Enumerations

enum  exp_error_t {
  EXP_E_NORMAL = 0, EXP_E_PARSE, EXP_E_INVOP, EXP_E_PAREN,
  EXP_E_INVPARAM, EXP_E_SYNTAX
}
 
enum  token_type {
  TOKEN_GENERIC, TOKEN_NUM, TOKEN_OP, TOKEN_FUNC,
  TOKEN_OPAREN, TOKEN_CPAREN, TOKEN_COMMA
}
 

Functions

void EXP_DestroyTokens (token *chain)
 
double EXP_Evaluate (char *str)
 
const char * EXP_GetErrorMsg (void)
 
void EXP_InsertTokenAfter (token *spot, token *new)
 
tokenEXP_ParseString (char *str)
 
void EXP_PrintTokens (token *chain)
 
void EXP_RemoveToken (token *tok)
 
exp_error_t EXP_SimplifyTokens (token *chain)
 
exp_error_t EXP_Validate (token *chain)
 

Variables

exp_error_t EXP_ERROR
 

Typedef Documentation

typedef double(* funcfunc)(double *oplist, unsigned int numops)
typedef struct functable_s functable_t
typedef double(* opfunc)(double op1, double op2)
typedef struct optable_s optable_t
typedef union token_u token
typedef struct token_func_s token_func
typedef struct token_num_s token_num
typedef struct token_op_s token_op

Enumeration Type Documentation

Enumerator
EXP_E_NORMAL 
EXP_E_PARSE 
EXP_E_INVOP 
EXP_E_PAREN 
EXP_E_INVPARAM 
EXP_E_SYNTAX 
enum token_type
Enumerator
TOKEN_GENERIC 
TOKEN_NUM 
TOKEN_OP 
TOKEN_FUNC 
TOKEN_OPAREN 
TOKEN_CPAREN 
TOKEN_COMMA 

Function Documentation

void EXP_DestroyTokens ( token chain)
double EXP_Evaluate ( char *  str)
const char* EXP_GetErrorMsg ( void  )
void EXP_InsertTokenAfter ( token spot,
token new 
)
token* EXP_ParseString ( char *  str)
void EXP_PrintTokens ( token chain)
void EXP_RemoveToken ( token tok)
exp_error_t EXP_SimplifyTokens ( token chain)
exp_error_t EXP_Validate ( token chain)

Variable Documentation

exp_error_t EXP_ERROR