diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -31,7 +31,7 @@ #include "var.hpp" static LLVMState llvmState; -static std::list<ThunkAST> scope; +std::list<ThunkAST> scope; static bool parseString(std::string_view sv); @@ -42,8 +42,10 @@ int main() std::string line; for (unsigned lineno = 1; std::cin.good(); ++lineno) { std::getline(std::cin, line); - if (!parseString(line)) + if (!parseString(line)) { std::cerr << " at line " << lineno << std::endl; + return -1; + } } llvmState.output(); |