Skip to content
This repository was archived by the owner on Apr 25, 2023. It is now read-only.

Commit 51443a0

Browse files
committed
Added action that gets executed when running python -m ilanguage FILE
1 parent 1a2f108 commit 51443a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ilanguage/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
if len(sys.argv[1:]) > 0:
5858
try:
5959
with open(sys.argv[1:][0], "r", encoding="utf-8") as file:
60-
pass
60+
print("\n".join([str(token) for token in Main.lexer.lex(file.read())]))
6161
except FileNotFoundError:
6262
print("Error: The specified file does not exist.")
6363
except UnicodeEncodeError:

0 commit comments

Comments
 (0)