summaryrefslogtreecommitdiffhomepage
path: root/grammer.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-03-29 18:30:04 +0200
committerRoland Reichwein <mail@reichwein.it>2020-03-29 18:30:04 +0200
commit6154309f0cd3ed5071996951465808f2503e2eb1 (patch)
treeb1666eea410e859f814ae47ca47b8b2d7d333c50 /grammer.cpp
parentb0cac4997b5767526b29187fecf2a87aa1b0ebef (diff)
mcc produces first dummy executable
Diffstat (limited to 'grammer.cpp')
-rw-r--r--grammer.cpp10
1 files changed, 2 insertions, 8 deletions
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 <algorithm>
#include <limits>
using namespace Gram;
-bool debug{false};
-
-void Debug(std::string s)
-{
- if (debug)
- std::cout << s << std::endl;
-}
-
void Compiler::clear()
{
symbol_variants.clear();