abouttreesummaryrefslogcommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPatrick Schönberger2021-08-04 15:05:42 +0200
committerPatrick Schönberger2021-08-04 15:05:42 +0200
commit7f83e1b208e87e3808b268303bb633a8fda203f5 (patch)
tree8ab149b206144fc1bf99872b281cb7d965edf5e1 /src/main.cpp
parentbe56e29997e17685eebf8bd7cb745183c60de7db (diff)
downloadtoc-7f83e1b208e87e3808b268303bb633a8fda203f5.tar.gz
toc-7f83e1b208e87e3808b268303bb633a8fda203f5.zip
pre change
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 19b35f3..461d014 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -7,7 +7,7 @@
#include "toc.h"
#include "repr.h"
#include "repr_get.h"
-#include "check.h"
+//#include "check.h"
using namespace antlr4;
@@ -35,14 +35,14 @@ int main(int argc, const char * argv[])
//std::cout << "Parse Tree: " << s << std::endl;
- Program prg = getProgram(prog);
+ Program prg = getProgram(prog, nullptr);
try
{
tocProgram(std::cout, prg);
- if (!checkProgram(prg))
- std::cerr << "Error" << std::endl;
+ // if (!checkProgram(prg))
+ // std::cerr << "Error" << std::endl;
std::ofstream ofs("output.c");
tocProgram(ofs, prg);