sqrt function works... finally... ;-;
This commit is contained in:
7
main.py
7
main.py
@@ -46,7 +46,7 @@ if __name__ == "__main__":
|
||||
parse_st: float = time.time()
|
||||
program: Program = p.parse_program()
|
||||
parse_et: float = time.time()
|
||||
print(f"Parsed in {round((parse_et - parse_st) * 1000, 6)} ms.")
|
||||
#print(f"Parsed in {round((parse_et - parse_st) * 1000, 6)} ms.")
|
||||
|
||||
if len(p.errors) > 0:
|
||||
for err in p.errors:
|
||||
@@ -67,7 +67,7 @@ if __name__ == "__main__":
|
||||
compiler_st: float = time.time()
|
||||
c.compile(program)
|
||||
compiler_et: float = time.time()
|
||||
print(f"Compiled in {round((compiler_et - compiler_st) * 1000, 6)} ms.")
|
||||
#print(f"Compiled in {round((compiler_et - compiler_st) * 1000, 6)} ms.")
|
||||
|
||||
module: ir.Module = c.module
|
||||
module.triple = llvm.get_default_triple()
|
||||
@@ -101,4 +101,5 @@ if __name__ == "__main__":
|
||||
|
||||
et = time.time()
|
||||
|
||||
print(f"\n\nProgram returned: {result}\n=== Executed in {round((et - st) * 1000, 6)} ms. ===")
|
||||
#print(f"\n\nProgram returned: {result}\n=== Executed in {round((et - st) * 1000, 6)} ms. ===")
|
||||
exit(result)
|
||||
Reference in New Issue
Block a user