Mathematic Expressions Library  0.1
The core math data structures and manipulators
expression_lite.h
Go to the documentation of this file.
1 
9 #ifndef _EXPRESSION_LITE_H_
10 #define _EXPRESSION_LITE_H_
11 
12 #include <stddef.h> // size_t
13 
14 // Indicate that expression_t is a pointer type
15 typedef struct expression *expression_t;
16 
17 /*---------------------------------------------*
18  * expression_t allocation functions *
19  *---------------------------------------------*/
20 
21 expression_t
22 expression_new (void);
23 
24 void
25 expression_free (expression_t exp);
26 
27 
28 /*---------------------------------------------*
29  * expression_t manipulation functions *
30  *---------------------------------------------*/
31 
32 value_t
33 expression_evaluate (expression_t exp);
34 
35 void
36 expression_to_string (char *dst_str,
37  expression_t src_exp);
38 
39 expression_t
40 string_to_expression (size_t str_len,
41  char const *str);
42 
43 #endif /* _EXPRESSION_LITE_H_ */
struct expression * expression_t
Definition: expression_lite.h:15
void expression_free(expression_t exp)
Free an expression.
Definition: expression.c:66
The stored representation of mathematical expressions.
Definition: expression.h:72
void expression_to_string(char *dst_str, expression_t src_exp)
Expression to String.
Definition: expression.c:133
expression_t string_to_expression(size_t str_len, char const *str)
Convert String to an Expression.
Definition: expression.c:215
Represents a numeric value or an error.
Definition: types.h:64
expression_t expression_new(void)
New blank expression.
Definition: expression.c:27
value_t expression_evaluate(expression_t exp)
Definition: expression.c:88