+ new structure
This commit is contained in:
12
gui/utils.py
Normal file
12
gui/utils.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from interpreter.NassiShneidermann import NassiShneidermanDiagram
|
||||
from draw.Iinstruction import *
|
||||
|
||||
|
||||
def nassi(filepath:str, output_path: str):
|
||||
NSD = NassiShneidermanDiagram(False)
|
||||
NSD.load_from_file(filepath)
|
||||
NSD.convert_to_image(output_path + "/Nassi-Shneider-Diagramm", 500)
|
||||
|
||||
if __name__ == "__main__":
|
||||
"""Debugging"""
|
||||
nassi("res/input/input.java", "res/output")
|
||||
Reference in New Issue
Block a user