Skip to content

Commit

Permalink
Run files
Browse files Browse the repository at this point in the history
  • Loading branch information
dils2k committed Mar 7, 2023
1 parent 9a26fe1 commit a044260
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ int main(int argc, const char* argv[]) {

if (argc == 1) {
repl();
} else if (argc == 2) {
runFile(argv[1]);
} else {
fprintf(stderr, "Usage: clox [path]\n");
exit(64);
Expand Down

0 comments on commit a044260

Please sign in to comment.