initial commit

This commit is contained in:
2025-08-31 13:48:32 +10:00
parent ea93fdb4f2
commit 0b6d74d3a9
5 changed files with 129 additions and 0 deletions

19
main.py Normal file
View File

@@ -0,0 +1,19 @@
from tokenizer import tokenize
from rich import print
from time import time
def main():
start = time()
file = open("test.grnd", "r")
code = file.read()
file.close()
tokens = tokenize(code)
compile_time = time()-start
print(tokens)
print(f"Compiled in {compile_time} seconds.")
if __name__ == "__main__":
main()