From f8f7829cb6d636c3ae649dd5eb235d1b9d134936 Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Thu, 27 Sep 2018 22:37:21 -0400 Subject: [PATCH] Used a stl array for nodes for better maintanability --- src/operations/node.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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