Преглед на файлове

Update formatting of examples file

Moved the comments to above the code they exemplify. This provides for
easier copying and pasting.
ApisNecros преди 1 година
родител
ревизия
214df9b595
променени са 1 файла, в които са добавени 25 реда и са изтрити 12 реда
  1. 25 12
      examples.txt

+ 25 - 12
examples.txt

@@ -1,9 +1,12 @@
-|;n*84				prints "32"
+;; prints "32"
+|;n*84
 
-\;nf				prints "15"
+;; prints "15"
+\;nf
 \|
 
->11+nv				prints "2 5 28 2.25 3"
+;; prints "2 5 28 2.25 3"
+>11+nv
 /o*84<
 \72-n\
 /o*84<
@@ -13,23 +16,33 @@
 /o*84<
 \f4%n;
 
-abcdef0983[D3[DII;      prints nothing, but should have three stacks [[10, 11, 12], [13, 14, 15], [0, 9, 8]]
-abcdef0983[D3[DIID]I];  prints nothing, and ends with the stack in the same order. Splits it and collapse it several times, though.
+;; prints nothing, but should have three stacks [[10, 11, 12], [13, 14, 15], [0, 9, 8]]
+abcdef0983[D3[DII;
 
-c22g\           	prints "5011012", or what should be read as "50", "110", and "12"
+;; prints nothing, and ends with the stack in the same order. Splits it and collapse it several times, though.
+abcdef0983[D3[DIID]I];
+
+;; prints "5011012", or what should be read as "50", "110", and "12"
+c22g\
 /g32/
 \nnn;
   2
 
-f:&&1+nn;       	prints "1615"
+;; prints "1615"
+f:&&1+nn;
 
-abcdefr&r3[D&n; 	prints "10"
+;; prints "10"
+abcdefr&r3[D&n;
 
-10772**01p;     	prints nothing, but after running cb.box should have two rows, and [1][0] == 'b'
+;; prints nothing, but after running cb.box should have two rows, and [1][0] == 'b'
+10772**01p;
 
-s":"m":"hnonon;		prints whatever your current time is
+;; prints whatever your current time is
+s":"m":"hnonon;
 
-aa*Sfn;				prints "15" after 10 seconds
+;; prints "15" after 10 seconds
+aa*Sfn;
 
-    r\        prints the string in the initial stack
+;; prints the string in the initial stack
+    r\
 o;!?l<