abouttreesummaryrefslogcommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 199f04d..4c78f5b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -12,7 +12,8 @@
using namespace antlr4;
-int main(int argc, const char * argv[]) {
+int main(int argc, const char * argv[])
+{
std::ifstream ifs("test.toc");
ANTLRInputStream input(ifs);
@@ -24,7 +25,8 @@ int main(int argc, const char * argv[]) {
TocParser::ProgContext * prog = parser.prog();
tree::ParseTree * tree = prog;
- if (parser.getNumberOfSyntaxErrors() > 0) {
+ if (parser.getNumberOfSyntaxErrors() > 0)
+ {
std::cerr << "Parsing error" << std::endl;
return 1;
}