View Single Post
Old 18th March 2004, 04:41   #5
TomyLobo
Major Dude
 
TomyLobo's Avatar
 
Join Date: Feb 2004
Location: Germany
Posts: 580
It's done

You can now check a box to filter comments and you can now write things like

code:

loop(a=x+15,
a=b;
c=d;
e=f
);


which is transformed to
code:

loop(assign(a,x+15),exec3(assign(a,b),assign(c,d),assign(e,f)))




or even cascade the loops
code:

loop(y=x+15,
a=b;
loop(u=v-1,
c=d;
e=f
)
);


to get this:
code:

loop(assign(y,x+15),exec2(assign(a,b),loop(assign(u,v-1),exec2(assign(c,d),assign(e,f)))))



The indentation is not necessary btw

[edit]
jheriko: hmm just mention that you used the program somewhere in the comments, so people know you went the short way, i think that's just fair.
and about the usage...
you could actually speed up your presets by using translated conditional blocks like
code:

if(cond,a=b;c=d,e=f;g=h)
||
\/
if(cond,exec2(assign(a,b),assign(c,d)),exec2(assign(e,f),assign(g,h)))


and finally you can use big loops in Init or not so big loops in Frame.
[/edit]
[edit]
small bugfix: doesn't crash anymore when entering code with syntax errors
[/edit]
Attached Files
File Type: zip avstrans.zip (12.2 KB, 275 views)

Last edited by TomyLobo; 18th March 2004 at 05:49.
TomyLobo is offline   Reply With Quote