diff --git a/src/operations/node.hpp b/src/operations/node.hpp index c9d65ec..7c7a3d9 100644 --- a/src/operations/node.hpp +++ b/src/operations/node.hpp @@ -2,6 +2,7 @@ #define NODE_H #include +#include #include "../variables/value.hpp" #include "../variables/environment.hpp" @@ -18,7 +19,7 @@ struct Node { /* at most three children nodes */ int num_children; - struct Node* children[MAX_CHILDREN]; + std::array children; }; // Abstract Syntax Tree Functions