diff options
-rw-r--r-- | ast.cpp | 1 | ||||
-rw-r--r-- | environment.cpp | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -1,4 +1,5 @@ #include <stdexcept> +#include <cstring> #include <cctype> #include "ast.h" diff --git a/environment.cpp b/environment.cpp index e375353..e49ec94 100644 --- a/environment.cpp +++ b/environment.cpp @@ -292,6 +292,9 @@ static bool hasFree(AST &ast,Index fromIndex){ case AST::Type::lambda: return hasFree(*ast.lambdaval.body,fromIndex+1); + + default: + throw logic_error("Unknown AST::Type?"); } } |