updated .gitignore

This commit is contained in:
weckyy702
2020-12-21 22:07:20 +01:00
parent 862c6ef904
commit 711ceb2567
5 changed files with 41 additions and 15 deletions

View File

@@ -1,6 +1,7 @@
from os import cpu_count
from code_to_image import NSD_save
from Iinstruction import Iinstruction
import interpet_source as itp
import logging
class NassiShneidermanDiagram:
@@ -29,6 +30,9 @@ class NassiShneidermanDiagram:
x, y = instruction.to_image(x, y, x_sz, 200)
cti.NSD_save(filename)
def load_from_file(self, filepath:str):
source_code = itp.load_src(filepath)
instructions = itp.get_scoped_instructions(filepath)
@@ -39,6 +43,6 @@ if __name__ == "__main__":
NSD = NassiShneidermanDiagram(True)
#NSD.load_from_file("res/input/input.java")
NSD.load_from_file("res/input/input.java")
NSD.convert_to_image("Nina", 500)