Revert "Restructure to keep __main__ free to be used when using codegen as part"

This reverts commit 87abfe8900.
This commit is contained in:
Abdelrahman Said 2025-03-02 12:07:28 +00:00
parent 87abfe8900
commit 8029d26c6b
4 changed files with 5 additions and 11 deletions

View File

@ -1,6 +1,6 @@
def main():
pass
from .codegen import test_str8, test_doubly_linked_list, test_typed_array
if __name__ == "__main__":
main()
test_str8()
test_typed_array()
test_doubly_linked_list()

View File

@ -1,6 +0,0 @@
from .codegen_example import test_str8, test_doubly_linked_list, test_typed_array
if __name__ == "__main__":
test_str8()
test_typed_array()
test_doubly_linked_list()

2
run
View File

@ -1,3 +1,3 @@
#!/bin/bash
python3 -m codegen.dev_main
python3 -m codegen