Sanny Builder Syntax

Let's talk a little bit about SB syntax, some people has asking me, why my cleo-scripts looks so different than yours?.  That's because I'm using another syntax to write the cleo script.
Sanny Builder has two kind of syntax;
  1. Low Level Struct
  2. High Level Struct
the difference between both are;
  1. one uses labels and the other don't.
  2. cleaner code in High Level Struct
  3. more readable in High Level Struct
Low Level Struct, uses;
:label  -  else_jump @label  - jf @label   -  jump @label
High Level Struct, uses;
while true - end
while - end
repeat - until
for - end
if - then - end
if - then - else - end
now, I'm going to show you how to use High Level Struct instead Low Level Struct.

for example;
Command: while true - end
Left side: High Level Struct
Right side: Low Level Struct
the red lines, indicate the Flow of the Game

Command: while - end
Topside:  High Level Struct
Underside:  Low Level Struct
the blue lines, indicate the Flow of the Game.
the red lines, indicate the new direction of the flow (momentaneously) because of a process.

Command: repeat- until
Topside:  High Level Struct
Underside:  Low Level Struct
the blue lines, indicate the new direction of the flow (momentaneously) because of a process.
the red lines, indicate the Flow of the Game.

Command: for - end
Topside:  High Level Struct
Underside:  Low Level Struct
the blue lines, indicate the Flow of the Game.
the red lines, indicate the new direction of the flow (momentaneously) because of a process.

as we can see, the process will repeat (in this case) 10 times, then display the new number, and continue.

Command: if - then - end
Topside:  High Level Struct
Underside:  Low Level Struct
the blue lines, indicate the Flow of the Game.
the red lines, indicate the new direction of the flow (momentaneously) because of a process.

Command: if - then - else - end
Topside:  High Level Struct
Underside:  Low Level Struct
the blue lines, indicate the Flow of the Game.
the red lines, indicate the new direction of the flow (momentaneously) because of a process.


couldn't be simpler.

Hope you like it ;)

Comentarios