Mathematic Expressions Library
0.1
The core math data structures and manipulators
|
#include <stddef.h>
Go to the source code of this file.
Typedefs | |
typedef struct expression * | expression_t |
Functions | |
expression_t | expression_new (void) |
New blank expression. More... | |
void | expression_free (expression_t exp) |
Free an expression. More... | |
value_t | expression_evaluate (expression_t exp) |
void | expression_to_string (char *dst_str, expression_t src_exp) |
Expression to String. More... | |
expression_t | string_to_expression (size_t str_len, char const *str) |
Convert String to an Expression. More... | |
Does not include any other project header file. This ensures that there are no circular dependencies.
typedef struct expression* expression_t |
value_t expression_evaluate | ( | expression_t | exp | ) |
void expression_free | ( | expression_t | exp | ) |
Free an expression.
exp | The expression to free |
expression_t expression_new | ( | void | ) |
New blank expression.
This function creates the most basic empty expression.
void expression_to_string | ( | char * | dst_str, |
expression_t | src_exp | ||
) |
Expression to String.
expression_t string_to_expression | ( | size_t | str_len, |
char const * | str | ||
) |
Convert String to an Expression.
Parses a string into an expression.
str_len | Length of given string |
str | String to parse |
< Store original index
< Used to explore the presence of a symbol parameter