examples.txt 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. ;; prints "32"
  2. |;n*84
  3. ;; prints "15"
  4. \;nf
  5. \|
  6. ;; prints "2 5 28 2.25 3"
  7. >11+nv
  8. /o*84<
  9. \72-n\
  10. /o*84<
  11. \47*n\
  12. /o*84<
  13. \94,n\
  14. /o*84<
  15. \f4%n;
  16. ;; prints nothing, but should have three stacks [[10, 11, 12], [13, 14, 15], [0, 9, 8]]
  17. abcdef0983[D3[DII;
  18. ;; prints nothing, and ends with the stack in the same order. Splits it and collapse it several times, though.
  19. abcdef0983[D3[DIID]I];
  20. ;; prints "5011012", or what should be read as "50", "110", and "12"
  21. c22g\
  22. /g32/
  23. \nnn;
  24. 2
  25. ;; prints "1615"
  26. f:&&1+nn;
  27. ;; prints "10"
  28. abcdefr&r3[D&n;
  29. ;; prints nothing, but after running cb.box should have two rows, and [1][0] == 'b'
  30. 10772**01p;
  31. ;; prints whatever your current time is
  32. s":"m":"hnonon;
  33. ;; prints "15" after 10 seconds
  34. aa*Sfn;
  35. ;; prints the string in the initial stack
  36. r\
  37. o;!?l<
  38. ;; Test Call and Ret instructions
  39. <;n&C10&a
  40. R
  41. ;; Test dive and rise instructions
  42. "Hello, world!"r>Ool?u!|;
  43. ;; Basic test of the fisherman
  44. "Hi"r`;
  45. l?!`o
  46. ;; demo of fisherman's behavior when the IP movement is up/down
  47. "hi"`
  48. `roo!/<
  49. "
  50. e
  51. y
  52. b
  53. "
  54. ;oooo`