Commit 790b7698 authored by joni's avatar joni
Browse files

...

parent b638e189
Pipeline #46 canceled with stages
.DEFAULT_GOAL := build
CC = gcc
build:
CC Access.cpp Declare.cpp error.cpp ParserExercise.cpp Parser.cpp Scope.cpp Sentence.cpp
gcc Access.cpp Declare.cpp error.cpp ParserExercise.cpp Parser.cpp Scope.cpp Sentence.cpp
......@@ -4,6 +4,7 @@
#include "Access.h"
#include "Declare.h"
#include <algorithm>
#include <string.h>
std::string ltrim(const std::string& s)
......
......@@ -19,7 +19,7 @@ std::string readFile(const char* file) {
int main(int argc, char* argv[])
{
try {
//try {
SentenceParser mainParser = SentenceParser(NULL);
mainParser.Load(readFile("simple.txt"));
bool error = false;
......@@ -32,8 +32,8 @@ int main(int argc, char* argv[])
if (!error) {
printf("SUCCESS\n");
}
}
/*}
catch(_exception e){
printf("SYNTAX ERROR\n");
}
}*/
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment