Skip to content

Commit

Permalink
[Phase1] Fix: delete the last \n in output
Browse files Browse the repository at this point in the history
  • Loading branch information
liqwang committed Oct 27, 2023
1 parent 3bfda99 commit 33f6fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phase1/syntax.y
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

/* HIGH-LEVEL DEFINITION specifies the top-level syntax for a SPL program, including global variable declarations and function definitions.*/
Program:
ExtDefList {printf("Program (%d)\n%s\n", @1.first_line, concat_shift($1));}
ExtDefList {printf("Program (%d)\n%s", @1.first_line, concat_shift($1));}

ExtDefList:
%empty {$$=strdup("");}
Expand Down

0 comments on commit 33f6fbb

Please sign in to comment.