diff --git a/fromstring.py b/fromstring.py deleted file mode 100644 index bccdbf81ecde30e3f69d40b2e99ec72c5fd6ef3f..0000000000000000000000000000000000000000 --- a/fromstring.py +++ /dev/null @@ -1,26 +0,0 @@ -def fromstring(string): - uitkomst = '' - close = 0 - string = [x for x in string] - waitcheck = True - check = True - print(string) - for i in range(len(string)): - if string[i] == ' ': - pass - elif string[i] == "\\": - uitkomst += 'Abstraction(' - close += 1 - elif string[i] == ".": - waitcheck = False - else: - if check and i > 1: - uitkomst += f"Abstraction(" - close += 1 - uitkomst += f"Variable('{string[i]}'), " - if not waitcheck: - check = False - uitkomst = uitkomst[:-2] - uitkomst += close * ")" - print(uitkomst) -fromstring(r"\a b. a") \ No newline at end of file