Skip to content

Commit 0a43943

Browse files
authored
Update JAGL.py
1 parent 5928645 commit 0a43943

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

JAGL/JAGL.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
1-
i="""@Hello, World!|#@heh|#""";p=0;s=[];ts=[]
2-
while p!=len(i):
1+
="""@helo!|#"""
2+
p=0;s=[];ts=[];m=0
3+
while True:
34
if i[p]=="@":
45
p+=1
56
while 1:
67
ts.append(i[p]);p+=1
78
if i[p]=="\n" or i[p]=="|":break
89
while len(ts)>1:a=str(ts[0])+str(ts[1]);ts.pop(0);ts.pop(0);ts.reverse();ts.append(a);ts.reverse()
9-
s.append(ts[0]);ts.pop()
10-
if i[p]=="#":
11-
if len(s)>0:s.reverse();print(s[0]);s.reverse();s.pop()
12-
if i[p]=="ƒ":
13-
if len(s)>0:s.reverse();print(s[0],end="");s.reverse();s.pop()
10+
s.append(ts[0]);ts.pop
11+
if i[p]=="#":s.reverse();print(s[0]);s.reverse();s.pop()
12+
elif i[p]=="ƒ":s.reverse();print(s[0],end="");s.reverse();s.pop()
13+
elif i[p]=="~":m=1
1414
p+=1
15+
if p==len(i) and m==0:break
16+
elif p==len(i) and m==1:
17+
while True:
18+
p-=1
19+
if i[p]=="\n":break
20+
elif p==0:break

0 commit comments

Comments
 (0)