30 #ifndef AMATH_OPTIMIZER_H 31 #define AMATH_OPTIMIZER_H 33 #include "main/nodes.h"
Base class for all nodes in a syntax tree.
Optimizer(SyntaxNode *root)
static void ReduceUnaryNodes(SyntaxNode *node)
static void BalanceTree(SyntaxNode *node)
static void TagStartNode(SyntaxNode *node)
static void ReduceValueNodes(SyntaxNode *node)
SyntaxNode * GetRoot() const
static int GetTreeDepth(SyntaxNode *node, int depth)
static void TagChildren(SyntaxNode *node)