Skip to content

Commit

Permalink
結果のみを出力
Browse files Browse the repository at this point in the history
  • Loading branch information
k-fog committed May 4, 2023
1 parent 7621054 commit 51734ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ int main(int argc, char *argv[]) {
// view_ast(node);

Env *env = new_env(NULL);
printf("{%s} = %ld\n", argv[1], eval(node, env)->val.intnum);
printf("%ld\n", eval(node, env)->val.intnum);

return 0;
}

0 comments on commit 51734ee

Please sign in to comment.