Next: Intrinsic Types, Up: Expression Evaluator [Index]
To evaluate an expression its parsed represention must be build, its type must be determined and its logic must be executed. When done, the expression parsed representation should be destroyed.
A simple expression evaluation is outlined in this section. To keep the example simple, the expression evaluation will allow no variables and will use the libaime function and operator sets.
| • Parsing An Expression: | Simple expression parsing overview | |
| • Typing An Expression: | Determining the expression type | |
| • Evaluating An Expression: | Computing the expression value | |
| • Cleaning Up: | Freeing the allocated resources | |
| • Wrapping Up: | Sample simple expression evaluator |