Mathematic Expressions Library  0.1
The core math data structures and manipulators
expression Struct Reference

The stored representation of mathematical expressions. More...

#include <expression.h>

Collaboration diagram for expression:
Collaboration graph

Data Fields

enum expression_type type
 The expression's selected type. More...
 
union expression_data data
 The expression's data corresponding to it's type. More...
 

Detailed Description

The stored representation of mathematical expressions.

An expression is either an expanded value of an operation on two other sub-expressions, a direct value (evaluated expression), or a symbolic expression. An expression consists of an expression_type and it's expression_data.

Note
New types must have an entry in the type enumeration and an associated entry in the data union.

Field Documentation

◆ data

union expression_data data

The expression's data corresponding to it's type.

◆ type

enum expression_type type

The expression's selected type.


The documentation for this struct was generated from the following file: