Archived
1
0
Fork 0

Used a stl array for nodes for better maintanability

This commit is contained in:
Brandon Rozek 2018-09-27 22:37:21 -04:00
parent 53575d25f9
commit f8f7829cb6

View file

@ -2,6 +2,7 @@
#define NODE_H
#include <string>
#include <array>
#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<struct Node*, MAX_CHILDREN> children;
};
// Abstract Syntax Tree Functions