aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/src/c_parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'c_compiler/src/c_parser.y')
-rw-r--r--c_compiler/src/c_parser.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/c_compiler/src/c_parser.y b/c_compiler/src/c_parser.y
index 315d227..9e9997b 100644
--- a/c_compiler/src/c_parser.y
+++ b/c_compiler/src/c_parser.y
@@ -177,7 +177,7 @@ IdentifierList: T_IDENTIFIER { $$ = new Declaration(); }
StatementList:
Statement { $$ = $1; }
-| StatementList Statement { $2->linkStatement($$); $$ = $2; printf("# Making statement list\n"); }
+ | StatementList Statement { $2->linkStatement($$); $$ = $2; }
;
Statement: CompoundStatement { $$ = $1; }
@@ -205,7 +205,7 @@ SelectionStatement:
ExpressionStatement:
T_SC { $$ = new ExpressionStatement(); }
-| Expression T_SC { $$ = new ExpressionStatement($1); printf("# Adding Expression statement\n"); }
+| Expression T_SC { $$ = new ExpressionStatement($1); }
;
JumpStatement: T_RETURN Expression T_SC { $$ = new JumpStatement($2); }