mirror of
https://github.com/Lore09/Tesi-Magistrale.git
synced 2025-12-19 12:24:31 +00:00
project refactor
This commit is contained in:
12
main.py
Normal file
12
main.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import src.task_splitter.code_processor as splitter
|
||||
|
||||
input_file = "source-code/tasks.c" # Replace this with your actual file name
|
||||
output_dir = "build/"
|
||||
|
||||
functions = splitter.extract_functions_from_file(input_file)
|
||||
print(f"Found {len(functions)} functions in the file.")
|
||||
|
||||
splitter.create_independent_files(functions, output_dir)
|
||||
print("Functions have been split into separate files with their own main functions.")
|
||||
|
||||
splitter.save_functions_to_yaml(functions, output_dir + "functions.yaml")
|
||||
Reference in New Issue
Block a user