zettacode.files/hello_world.text/fish.txt in zettacode-0.1.0 vs zettacode.files/hello_world.text/fish.txt in zettacode-0.1.1

- old
+ new

@@ -1,9 +1,9 @@ -S H, , f f : -!v"Ho wod!"! - ?! -E f c:b -!" ju cc ! , " .b -T cc H ! , c ".b -T c f (), ju (!) cu ju ! b f cu . ([[F]] c)b -Af b , b b cu.b -T u c z (), () f c qu 0 (?). E cu ! c f ju , c uu [:..Ac ASCII]. T cu . I ffc c u ' , . +Standard Hello, world example, modified for this task: +!v"Hello world!"r! + >l?!;o +Explanation of the code:<br/> +<tt>!v"</tt> jumps over the <tt>v</tt> character with the <tt>!</tt> sign, then starts the string mode with <tt>"</tt> .<br/> +Then the characters <tt>Hello world!</tt> are added, and string mode is closed with <tt>"</tt>.<br/> +The stack is reversed for printing (<tt>r</tt>), and a jump (<tt>!</tt>) is executed to jump over the <tt>!</tt> at the beginning of the line and execute the <tt>v</tt>. ([[Fish]] is torical)<br/> +After going down by <tt>v</tt>, it goes rightwards again by <tt>></tt> and this line is being executed.<br/> +This line pushes the stack size (<tt>l</tt>), and stops (<tt>;</tt>) if the top item on the stack is equal to 0 (<tt>?</tt>). Else it executes the <tt>!</tt> directly after it and jumps to the <tt>o</tt>, which outputs the top item in [http://en.wikipedia.org/wiki/Ascii ASCII]. Then the line is executed again. It effectively prints the stack until it's empty, then it terminates.