From 6154309f0cd3ed5071996951465808f2503e2eb1 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 29 Mar 2020 18:30:04 +0200 Subject: mcc produces first dummy executable --- grammer.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'grammer.cpp') diff --git a/grammer.cpp b/grammer.cpp index cb6b3bf..40775ef 100644 --- a/grammer.cpp +++ b/grammer.cpp @@ -1,18 +1,12 @@ #include "grammer.h" +#include "debug.h" + #include #include using namespace Gram; -bool debug{false}; - -void Debug(std::string s) -{ - if (debug) - std::cout << s << std::endl; -} - void Compiler::clear() { symbol_variants.clear(); -- cgit v1.2.3