Advanced Multi-Physics (AMP)
On-Line Documentation
Classes | Typedefs | Enumerations | Functions
tinyexpr.h File Reference

Go to the source code of this file.

Classes

struct  te_expr
 
struct  te_variable
 

Typedefs

typedef struct te_expr te_expr
 
typedef struct te_variable te_variable
 

Enumerations

enum  {
  TE_VARIABLE = 0 , TE_FUNCTION0 = 8 , TE_FUNCTION1 , TE_FUNCTION2 ,
  TE_FUNCTION3 , TE_FUNCTION4 , TE_FUNCTION5 , TE_FUNCTION6 ,
  TE_FUNCTION7 , TE_CLOSURE0 = 16 , TE_CLOSURE1 , TE_CLOSURE2 ,
  TE_CLOSURE3 , TE_CLOSURE4 , TE_CLOSURE5 , TE_CLOSURE6 ,
  TE_CLOSURE7 , TE_FLAG_PURE = 32
}
 

Functions

te_exprte_compile (const char *expression, const te_variable *variables, int var_count, int *error)
 
double te_eval (const te_expr *n)
 
void te_free (te_expr *n)
 
double te_interp (const char *expression, int *error)
 
void te_print (const te_expr *n)
 

Typedef Documentation

◆ te_expr

typedef struct te_expr te_expr

◆ te_variable

typedef struct te_variable te_variable

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TE_VARIABLE 
TE_FUNCTION0 
TE_FUNCTION1 
TE_FUNCTION2 
TE_FUNCTION3 
TE_FUNCTION4 
TE_FUNCTION5 
TE_FUNCTION6 
TE_FUNCTION7 
TE_CLOSURE0 
TE_CLOSURE1 
TE_CLOSURE2 
TE_CLOSURE3 
TE_CLOSURE4 
TE_CLOSURE5 
TE_CLOSURE6 
TE_CLOSURE7 
TE_FLAG_PURE 

Definition at line 43 of file tinyexpr.h.

Function Documentation

◆ te_compile()

te_expr * te_compile ( const char *  expression,
const te_variable variables,
int  var_count,
int *  error 
)

◆ te_eval()

double te_eval ( const te_expr n)

◆ te_free()

void te_free ( te_expr n)

◆ te_interp()

double te_interp ( const char *  expression,
int *  error 
)

◆ te_print()

void te_print ( const te_expr n)



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:41.
Comments on this page