Initial commit

This commit is contained in:
2025-09-01 20:41:41 +10:00
commit a604b8d5c4
4 changed files with 151 additions and 0 deletions

17
main.py Normal file
View File

@@ -0,0 +1,17 @@
import sys
import preprocessor
import token
if len(sys.argv) < 2:
print("Usage: hgc (file)")
exit(1)
file = open(sys.argv[1]).readlines()
lines: list[token.tokenlist] = []
for line in file:
lines.append(preprocessor.process_line(line))
for line in lines:
print(line)