Skip to content

Commit e3fe3b9

Browse files
authored
Update tpy.py
1 parent 519e20c commit e3fe3b9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

true/tpy.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
try: i = open(sys.argv[2]).readlines()
55
except: i=[]
66
except: print(f"Usage: python {__file__.split(chr(0x5c))[-1]} \"(file name)\"");exit()
7-
p = 0; ts = []; s = []
7+
p = 0; ts = []; s = []; ld = []
88
if not code : code = " "
99
while 1:
1010
if code[p] == '"' :
@@ -20,6 +20,9 @@
2020
elif code[p] == "-" : s.pop()
2121
elif code[p] == "`" : s.append(int(s.pop())*-1)
2222
elif code[p] == ":" : s.append(s[-1])
23+
elif code[p] == '(' :
24+
p+=1; s.append(code[p : code.index(')', p)])
25+
p=code.index(')', p)
2326
if code[p] == "\n" : break
2427
if len(code) == p +1 : p = -1
2528
p += 1

0 commit comments

Comments
 (0)