aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/src/compiler_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c_compiler/src/compiler_main.cpp')
-rw-r--r--c_compiler/src/compiler_main.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/c_compiler/src/compiler_main.cpp b/c_compiler/src/compiler_main.cpp
index 4ed3bff..f9a8ec5 100644
--- a/c_compiler/src/compiler_main.cpp
+++ b/c_compiler/src/compiler_main.cpp
@@ -8,21 +8,21 @@ Node* parseAST();
int main(int, char**)
{
- try
- {
- std::unique_ptr<Node> ast(parseAST());
- Bindings bindings;
- int label_count = 0;
- ast->printAsm(bindings, label_count);
- }
- catch(const std::exception& e)
- {
- fprintf(stderr, "%s\n", e.what());
- }
- catch(...)
- {
- fprintf(stderr, "Error : Exception thrown\n");
- }
+ try
+ {
+ std::unique_ptr<Node> ast(parseAST());
+ Bindings bindings;
+ int label_count = 0;
+ ast->printAsm(bindings, label_count);
+ }
+ catch(const std::exception& e)
+ {
+ fprintf(stderr, "%s\n", e.what());
+ }
+ catch(...)
+ {
+ fprintf(stderr, "Error : Exception thrown\n");
+ }
- return 0;
+ return 0;
}