Skip to content

Commit bb968f2

Browse files
committed
Remove extra whitespace at end of lines.
1 parent f5a4fc7 commit bb968f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

calc.y

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ void yyerror(const char* s);
2929

3030
%%
3131

32-
calculation:
32+
calculation:
3333
| calculation line
3434
;
3535

3636
line: T_NEWLINE
3737
| mixed_expression T_NEWLINE { printf("\tResult: %f\n", $1);}
38-
| expression T_NEWLINE { printf("\tResult: %i\n", $1); }
38+
| expression T_NEWLINE { printf("\tResult: %i\n", $1); }
3939
| T_QUIT T_NEWLINE { printf("bye!\n"); exit(0); }
4040
;
4141

@@ -68,7 +68,7 @@ expression: T_INT { $$ = $1; }
6868
int main() {
6969
yyin = stdin;
7070

71-
do {
71+
do {
7272
yyparse();
7373
} while(!feof(yyin));
7474

0 commit comments

Comments
 (0)