Files
highground/main.py

14 lines
248 B
Python
Raw Permalink Normal View History

2025-09-01 20:41:41 +10:00
import sys
import preprocessor
2025-09-02 20:41:17 +10:00
import ast
2025-09-01 20:41:41 +10:00
if len(sys.argv) < 2:
print("Usage: hgc (file)")
exit(1)
2025-09-01 21:06:05 +10:00
with open(sys.argv[1], "r") as file:
lines = [preprocessor.process_line(line) for line in file]
2025-09-01 20:41:41 +10:00
2025-09-02 20:41:17 +10:00
ast = ast.build_ast(lines)
print(ast)