zettacode 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (776) hide show
  1. checksums.yaml +7 -0
  2. data/.ruby-version +1 -0
  3. data/.standard.yml +4 -0
  4. data/CHANGELOG.md +5 -0
  5. data/Gemfile +10 -0
  6. data/LICENSE +674 -0
  7. data/README.md +47 -0
  8. data/Rakefile +21 -0
  9. data/bin/zcode +3 -0
  10. data/bin/zettacode +28 -0
  11. data/config/analize.yaml +11 -0
  12. data/config/scrap.yaml +2 -0
  13. data/docs/parse.md +9 -0
  14. data/docs/scrap.md +15 -0
  15. data/lib/zettacode/parse/parse.rb +113 -0
  16. data/lib/zettacode/scrap/scrap.rb +57 -0
  17. data/lib/zettacode/version.rb +5 -0
  18. data/lib/zettacode.rb +10 -0
  19. data/sig/zettacode.rbs +4 -0
  20. data/tasks/devel.rb +8 -0
  21. data/zcode-scrap +7 -0
  22. data/zettacode.files/arithmetic.integer/0815}.txt +14 -0
  23. data/zettacode.files/arithmetic.integer/11l}.txt +9 -0
  24. data/zettacode.files/arithmetic.integer/360_assembly.txt +55 -0
  25. data/zettacode.files/arithmetic.integer/6502_assembly}.txt +50 -0
  26. data/zettacode.files/arithmetic.integer/68000_assembly.txt +24 -0
  27. data/zettacode.files/arithmetic.integer/aarch64_assembly.txt +137 -0
  28. data/zettacode.files/arithmetic.integer/abap.txt +25 -0
  29. data/zettacode.files/arithmetic.integer/acl2.txt +21 -0
  30. data/zettacode.files/arithmetic.integer/action!.txt +36 -0
  31. data/zettacode.files/arithmetic.integer/ada.txt +20 -0
  32. data/zettacode.files/arithmetic.integer/aikido.txt +10 -0
  33. data/zettacode.files/arithmetic.integer/algol_68.txt +14 -0
  34. data/zettacode.files/arithmetic.integer/algol_w.txt +16 -0
  35. data/zettacode.files/arithmetic.integer/amigae.txt +14 -0
  36. data/zettacode.files/arithmetic.integer/apl.txt +7 -0
  37. data/zettacode.files/arithmetic.integer/applescript.txt +16 -0
  38. data/zettacode.files/arithmetic.integer/arm_assembly.txt +293 -0
  39. data/zettacode.files/arithmetic.integer/arturo.txt +10 -0
  40. data/zettacode.files/arithmetic.integer/asymptote.txt +17 -0
  41. data/zettacode.files/arithmetic.integer/autohotkey.txt +20 -0
  42. data/zettacode.files/arithmetic.integer/avail.txt +13 -0
  43. data/zettacode.files/arithmetic.integer/awk.txt +12 -0
  44. data/zettacode.files/arithmetic.integer/basic.txt +56 -0
  45. data/zettacode.files/arithmetic.integer/basic256.txt +11 -0
  46. data/zettacode.files/arithmetic.integer/batch_file.txt +7 -0
  47. data/zettacode.files/arithmetic.integer/bbc_basic.txt +9 -0
  48. data/zettacode.files/arithmetic.integer/bc.txt +8 -0
  49. data/zettacode.files/arithmetic.integer/befunge.txt +6 -0
  50. data/zettacode.files/arithmetic.integer/bqn.txt +22 -0
  51. data/zettacode.files/arithmetic.integer/bracmat.txt +19 -0
  52. data/zettacode.files/arithmetic.integer/brat.txt +8 -0
  53. data/zettacode.files/arithmetic.integer/c++.txt +12 -0
  54. data/zettacode.files/arithmetic.integer/c.txt +17 -0
  55. data/zettacode.files/arithmetic.integer/c_sharp|c#.txt +17 -0
  56. data/zettacode.files/arithmetic.integer/chef.txt +37 -0
  57. data/zettacode.files/arithmetic.integer/clipper.txt +11 -0
  58. data/zettacode.files/arithmetic.integer/clojure.txt +18 -0
  59. data/zettacode.files/arithmetic.integer/cobol.txt +44 -0
  60. data/zettacode.files/arithmetic.integer/common_lisp.txt +29 -0
  61. data/zettacode.files/arithmetic.integer/component_pascal.txt +32 -0
  62. data/zettacode.files/arithmetic.integer/crystal.txt +11 -0
  63. data/zettacode.files/arithmetic.integer/d.txt +17 -0
  64. data/zettacode.files/arithmetic.integer/dc.txt +10 -0
  65. data/zettacode.files/arithmetic.integer/dcl.txt +8 -0
  66. data/zettacode.files/arithmetic.integer/delphi.txt +19 -0
  67. data/zettacode.files/arithmetic.integer/dwscript.txt +9 -0
  68. data/zettacode.files/arithmetic.integer/dyalect.txt +13 -0
  69. data/zettacode.files/arithmetic.integer/e.txt +9 -0
  70. data/zettacode.files/arithmetic.integer/easylang.txt +9 -0
  71. data/zettacode.files/arithmetic.integer/ecl.txt +33 -0
  72. data/zettacode.files/arithmetic.integer/efene.txt +16 -0
  73. data/zettacode.files/arithmetic.integer/eiffel.txt +32 -0
  74. data/zettacode.files/arithmetic.integer/elena.txt +16 -0
  75. data/zettacode.files/arithmetic.integer/elixir.txt +26 -0
  76. data/zettacode.files/arithmetic.integer/emojicode.txt +9 -0
  77. data/zettacode.files/arithmetic.integer/erlang.txt +15 -0
  78. data/zettacode.files/arithmetic.integer/erre.txt +20 -0
  79. data/zettacode.files/arithmetic.integer/euphoria.txt +13 -0
  80. data/zettacode.files/arithmetic.integer/excel.txt +32 -0
  81. data/zettacode.files/arithmetic.integer/f_sharp|f#.txt +15 -0
  82. data/zettacode.files/arithmetic.integer/factor.txt +17 -0
  83. data/zettacode.files/arithmetic.integer/false.txt +8 -0
  84. data/zettacode.files/arithmetic.integer/fermat.txt +10 -0
  85. data/zettacode.files/arithmetic.integer/forth.txt +19 -0
  86. data/zettacode.files/arithmetic.integer/fortran.txt +15 -0
  87. data/zettacode.files/arithmetic.integer/freebasic.txt +18 -0
  88. data/zettacode.files/arithmetic.integer/friendly_interactive_shell.txt +10 -0
  89. data/zettacode.files/arithmetic.integer/frink.txt +10 -0
  90. data/zettacode.files/arithmetic.integer/futurebasic.txt +158 -0
  91. data/zettacode.files/arithmetic.integer/gambas.txt +30 -0
  92. data/zettacode.files/arithmetic.integer/gap.txt +15 -0
  93. data/zettacode.files/arithmetic.integer/genie.txt +23 -0
  94. data/zettacode.files/arithmetic.integer/george.txt +7 -0
  95. data/zettacode.files/arithmetic.integer/go.txt +66 -0
  96. data/zettacode.files/arithmetic.integer/groovy.txt +18 -0
  97. data/zettacode.files/arithmetic.integer/harbour.txt +11 -0
  98. data/zettacode.files/arithmetic.integer/haskell.txt +16 -0
  99. data/zettacode.files/arithmetic.integer/haxe.txt +13 -0
  100. data/zettacode.files/arithmetic.integer/hicest.txt +26 -0
  101. data/zettacode.files/arithmetic.integer/holyc.txt +14 -0
  102. data/zettacode.files/arithmetic.integer/i.txt +11 -0
  103. data/zettacode.files/arithmetic.integer/icon}}_and_{{header|unicon.txt +13 -0
  104. data/zettacode.files/arithmetic.integer/inform_7.txt +27 -0
  105. data/zettacode.files/arithmetic.integer/j.txt +18 -0
  106. data/zettacode.files/arithmetic.integer/java.txt +22 -0
  107. data/zettacode.files/arithmetic.integer/javascript.txt +30 -0
  108. data/zettacode.files/arithmetic.integer/jq.txt +17 -0
  109. data/zettacode.files/arithmetic.integer/jsish.txt +33 -0
  110. data/zettacode.files/arithmetic.integer/julia.txt +4 -0
  111. data/zettacode.files/arithmetic.integer/kotlin.txt +41 -0
  112. data/zettacode.files/arithmetic.integer/labview.txt +2 -0
  113. data/zettacode.files/arithmetic.integer/lambdatalk.txt +23 -0
  114. data/zettacode.files/arithmetic.integer/lasso.txt +8 -0
  115. data/zettacode.files/arithmetic.integer/lfe.txt +32 -0
  116. data/zettacode.files/arithmetic.integer/liberty_basic.txt +12 -0
  117. data/zettacode.files/arithmetic.integer/lil.txt +14 -0
  118. data/zettacode.files/arithmetic.integer/lingo.txt +10 -0
  119. data/zettacode.files/arithmetic.integer/little.txt +15 -0
  120. data/zettacode.files/arithmetic.integer/livecode.txt +17 -0
  121. data/zettacode.files/arithmetic.integer/logo.txt +11 -0
  122. data/zettacode.files/arithmetic.integer/lse64.txt +10 -0
  123. data/zettacode.files/arithmetic.integer/lua.txt +9 -0
  124. data/zettacode.files/arithmetic.integer/m2000_interpreter.txt +54 -0
  125. data/zettacode.files/arithmetic.integer/m4.txt +17 -0
  126. data/zettacode.files/arithmetic.integer/maple.txt +25 -0
  127. data/zettacode.files/arithmetic.integer/mathcad.txt +51 -0
  128. data/zettacode.files/arithmetic.integer/mathematica}}-{{header|wolfram_language.txt +18 -0
  129. data/zettacode.files/arithmetic.integer/matlab}}_-_{{header|octave.txt +8 -0
  130. data/zettacode.files/arithmetic.integer/maxima.txt +10 -0
  131. data/zettacode.files/arithmetic.integer/maxscript.txt +8 -0
  132. data/zettacode.files/arithmetic.integer/mercury.txt +44 -0
  133. data/zettacode.files/arithmetic.integer/metafont.txt +19 -0
  134. data/zettacode.files/arithmetic.integer/min.txt +5 -0
  135. data/zettacode.files/arithmetic.integer/ml-i.txt +18 -0
  136. data/zettacode.files/arithmetic.integer/modula-2.txt +31 -0
  137. data/zettacode.files/arithmetic.integer/modula-3.txt +15 -0
  138. data/zettacode.files/arithmetic.integer/mumps.txt +52 -0
  139. data/zettacode.files/arithmetic.integer/nanoquery.txt +13 -0
  140. data/zettacode.files/arithmetic.integer/nemerle.txt +18 -0
  141. data/zettacode.files/arithmetic.integer/netrexx.txt +14 -0
  142. data/zettacode.files/arithmetic.integer/newlisp.txt +26 -0
  143. data/zettacode.files/arithmetic.integer/nial.txt +23 -0
  144. data/zettacode.files/arithmetic.integer/nim.txt +25 -0
  145. data/zettacode.files/arithmetic.integer/nsis.txt +25 -0
  146. data/zettacode.files/arithmetic.integer/oberon-2.txt +14 -0
  147. data/zettacode.files/arithmetic.integer/objeck.txt +17 -0
  148. data/zettacode.files/arithmetic.integer/ocaml.txt +9 -0
  149. data/zettacode.files/arithmetic.integer/oforth.txt +9 -0
  150. data/zettacode.files/arithmetic.integer/ol.txt +23 -0
  151. data/zettacode.files/arithmetic.integer/onyx.txt +44 -0
  152. data/zettacode.files/arithmetic.integer/openscad.txt +6 -0
  153. data/zettacode.files/arithmetic.integer/oz.txt +19 -0
  154. data/zettacode.files/arithmetic.integer/panda.txt +2 -0
  155. data/zettacode.files/arithmetic.integer/pari-gp.txt +9 -0
  156. data/zettacode.files/arithmetic.integer/pascal.txt +14 -0
  157. data/zettacode.files/arithmetic.integer/perl.txt +12 -0
  158. data/zettacode.files/arithmetic.integer/phix.txt +49 -0
  159. data/zettacode.files/arithmetic.integer/phixmonti.txt +14 -0
  160. data/zettacode.files/arithmetic.integer/phl.txt +20 -0
  161. data/zettacode.files/arithmetic.integer/php.txt +13 -0
  162. data/zettacode.files/arithmetic.integer/picat.txt +8 -0
  163. data/zettacode.files/arithmetic.integer/picolisp.txt +8 -0
  164. data/zettacode.files/arithmetic.integer/piet.txt +38 -0
  165. data/zettacode.files/arithmetic.integer/pl-i.txt +8 -0
  166. data/zettacode.files/arithmetic.integer/plain_english.txt +26 -0
  167. data/zettacode.files/arithmetic.integer/pop11.txt +12 -0
  168. data/zettacode.files/arithmetic.integer/postscript.txt +10 -0
  169. data/zettacode.files/arithmetic.integer/powershell.txt +15 -0
  170. data/zettacode.files/arithmetic.integer/processing.txt +7 -0
  171. data/zettacode.files/arithmetic.integer/prodos.txt +35 -0
  172. data/zettacode.files/arithmetic.integer/prolog.txt +33 -0
  173. data/zettacode.files/arithmetic.integer/purebasic.txt +17 -0
  174. data/zettacode.files/arithmetic.integer/python.txt +47 -0
  175. data/zettacode.files/arithmetic.integer/qb64.txt +21 -0
  176. data/zettacode.files/arithmetic.integer/quackery.txt +12 -0
  177. data/zettacode.files/arithmetic.integer/r.txt +11 -0
  178. data/zettacode.files/arithmetic.integer/racket.txt +8 -0
  179. data/zettacode.files/arithmetic.integer/raku.txt +12 -0
  180. data/zettacode.files/arithmetic.integer/raven.txt +9 -0
  181. data/zettacode.files/arithmetic.integer/rebol.txt +51 -0
  182. data/zettacode.files/arithmetic.integer/relation.txt +11 -0
  183. data/zettacode.files/arithmetic.integer/rescript.txt +15 -0
  184. data/zettacode.files/arithmetic.integer/retro.txt +10 -0
  185. data/zettacode.files/arithmetic.integer/rexx.txt +47 -0
  186. data/zettacode.files/arithmetic.integer/ring.txt +11 -0
  187. data/zettacode.files/arithmetic.integer/robotic.txt +13 -0
  188. data/zettacode.files/arithmetic.integer/ruby.txt +12 -0
  189. data/zettacode.files/arithmetic.integer/run_basic.txt +9 -0
  190. data/zettacode.files/arithmetic.integer/rust.txt +15 -0
  191. data/zettacode.files/arithmetic.integer/sass-scss.txt +36 -0
  192. data/zettacode.files/arithmetic.integer/scala.txt +9 -0
  193. data/zettacode.files/arithmetic.integer/scheme.txt +27 -0
  194. data/zettacode.files/arithmetic.integer/seed7.txt +20 -0
  195. data/zettacode.files/arithmetic.integer/sensetalk.txt +12 -0
  196. data/zettacode.files/arithmetic.integer/sidef.txt +6 -0
  197. data/zettacode.files/arithmetic.integer/slate.txt +9 -0
  198. data/zettacode.files/arithmetic.integer/smalltalk.txt +28 -0
  199. data/zettacode.files/arithmetic.integer/smart_basic.txt +18 -0
  200. data/zettacode.files/arithmetic.integer/snobol4.txt +12 -0
  201. data/zettacode.files/arithmetic.integer/snusp.txt +61 -0
  202. data/zettacode.files/arithmetic.integer/sql.txt +68 -0
  203. data/zettacode.files/arithmetic.integer/ssem.txt +15 -0
  204. data/zettacode.files/arithmetic.integer/standard_ml.txt +13 -0
  205. data/zettacode.files/arithmetic.integer/swift.txt +11 -0
  206. data/zettacode.files/arithmetic.integer/tcl.txt +19 -0
  207. data/zettacode.files/arithmetic.integer/terraform.txt +33 -0
  208. data/zettacode.files/arithmetic.integer/ti-83_basic.txt +14 -0
  209. data/zettacode.files/arithmetic.integer/ti-89_basic.txt +8 -0
  210. data/zettacode.files/arithmetic.integer/toka.txt +7 -0
  211. data/zettacode.files/arithmetic.integer/tuscript.txt +9 -0
  212. data/zettacode.files/arithmetic.integer/unix_shell.txt +29 -0
  213. data/zettacode.files/arithmetic.integer/ursa.txt +27 -0
  214. data/zettacode.files/arithmetic.integer/v_(vlang).txt +29 -0
  215. data/zettacode.files/arithmetic.integer/vba.txt +19 -0
  216. data/zettacode.files/arithmetic.integer/vbscript.txt +51 -0
  217. data/zettacode.files/arithmetic.integer/vedit_macro_language.txt +8 -0
  218. data/zettacode.files/arithmetic.integer/verilog.txt +26 -0
  219. data/zettacode.files/arithmetic.integer/vim_script.txt +10 -0
  220. data/zettacode.files/arithmetic.integer/visual_basic_.net.txt +14 -0
  221. data/zettacode.files/arithmetic.integer/wart.txt +9 -0
  222. data/zettacode.files/arithmetic.integer/wren.txt +16 -0
  223. data/zettacode.files/arithmetic.integer/x86_assembly.txt +23 -0
  224. data/zettacode.files/arithmetic.integer/xlisp.txt +17 -0
  225. data/zettacode.files/arithmetic.integer/xpl0.txt +10 -0
  226. data/zettacode.files/arithmetic.integer/xslt.txt +10 -0
  227. data/zettacode.files/arithmetic.integer/yabasic.txt +11 -0
  228. data/zettacode.files/arithmetic.integer/yorick.txt +8 -0
  229. data/zettacode.files/arithmetic.integer/zkl.txt +7 -0
  230. data/zettacode.files/arithmetic.integer/zonnon.txt +13 -0
  231. data/zettacode.files/arithmetic.integer/zx_spectrum_basic.txt +11 -0
  232. data/zettacode.files/arithmetic.integer//320/274/320/272-61-52.txt +7 -0
  233. data/zettacode.files/hello_world.text/0815.txt +7 -0
  234. data/zettacode.files/hello_world.text/11l.txt +1 -0
  235. data/zettacode.files/hello_world.text/360_assembly.txt +17 -0
  236. data/zettacode.files/hello_world.text/4dos_batch.txt +1 -0
  237. data/zettacode.files/hello_world.text/6502_assembly.txt +22 -0
  238. data/zettacode.files/hello_world.text/6800_assembly.txt +31 -0
  239. data/zettacode.files/hello_world.text/8080_assembly.txt +12 -0
  240. data/zettacode.files/hello_world.text/8086_assembly.txt +30 -0
  241. data/zettacode.files/hello_world.text/8th.txt +1 -0
  242. data/zettacode.files/hello_world.text/aarch64_assembly.txt +22 -0
  243. data/zettacode.files/hello_world.text/abap.txt +2 -0
  244. data/zettacode.files/hello_world.text/acl2.txt +2 -0
  245. data/zettacode.files/hello_world.text/action!.txt +3 -0
  246. data/zettacode.files/hello_world.text/actionscript.txt +1 -0
  247. data/zettacode.files/hello_world.text/ada.txt +6 -0
  248. data/zettacode.files/hello_world.text/agda.txt +14 -0
  249. data/zettacode.files/hello_world.text/agena.txt +1 -0
  250. data/zettacode.files/hello_world.text/aime.txt +11 -0
  251. data/zettacode.files/hello_world.text/algae.txt +1 -0
  252. data/zettacode.files/hello_world.text/algol-m.txt +3 -0
  253. data/zettacode.files/hello_world.text/algol_60.txt +4 -0
  254. data/zettacode.files/hello_world.text/algol_68.txt +3 -0
  255. data/zettacode.files/hello_world.text/algol_w.txt +3 -0
  256. data/zettacode.files/hello_world.text/alore.txt +1 -0
  257. data/zettacode.files/hello_world.text/amazing_hopper.txt +21 -0
  258. data/zettacode.files/hello_world.text/ambienttalk.txt +1 -0
  259. data/zettacode.files/hello_world.text/amigae.txt +3 -0
  260. data/zettacode.files/hello_world.text/angelscript.txt +1 -0
  261. data/zettacode.files/hello_world.text/antlang.txt +3 -0
  262. data/zettacode.files/hello_world.text/anyways.txt +4 -0
  263. data/zettacode.files/hello_world.text/apl.txt +1 -0
  264. data/zettacode.files/hello_world.text/applescript.txt +5 -0
  265. data/zettacode.files/hello_world.text/applesoft_basic.txt +5 -0
  266. data/zettacode.files/hello_world.text/apricot.txt +1 -0
  267. data/zettacode.files/hello_world.text/arc.txt +1 -0
  268. data/zettacode.files/hello_world.text/arendelle.txt +1 -0
  269. data/zettacode.files/hello_world.text/argile.txt +3 -0
  270. data/zettacode.files/hello_world.text/arm_assembly.txt +13 -0
  271. data/zettacode.files/hello_world.text/arnoldc.txt +3 -0
  272. data/zettacode.files/hello_world.text/arturo.txt +1 -0
  273. data/zettacode.files/hello_world.text/asciidots.txt +4 -0
  274. data/zettacode.files/hello_world.text/astro.txt +1 -0
  275. data/zettacode.files/hello_world.text/asymptote.txt +2 -0
  276. data/zettacode.files/hello_world.text/ats.txt +1 -0
  277. data/zettacode.files/hello_world.text/autohotkey.txt +9 -0
  278. data/zettacode.files/hello_world.text/autoit.txt +1 -0
  279. data/zettacode.files/hello_world.text/autolisp.txt +1 -0
  280. data/zettacode.files/hello_world.text/avail.txt +1 -0
  281. data/zettacode.files/hello_world.text/awk.txt +30 -0
  282. data/zettacode.files/hello_world.text/axe.txt +2 -0
  283. data/zettacode.files/hello_world.text/b.txt +6 -0
  284. data/zettacode.files/hello_world.text/b4x.txt +1 -0
  285. data/zettacode.files/hello_world.text/babel.txt +2 -0
  286. data/zettacode.files/hello_world.text/bash.txt +1 -0
  287. data/zettacode.files/hello_world.text/basic.txt +14 -0
  288. data/zettacode.files/hello_world.text/basic256.txt +1 -0
  289. data/zettacode.files/hello_world.text/batch_file.txt +6 -0
  290. data/zettacode.files/hello_world.text/battlestar.txt +4 -0
  291. data/zettacode.files/hello_world.text/bbc_basic.txt +1 -0
  292. data/zettacode.files/hello_world.text/bc.txt +2 -0
  293. data/zettacode.files/hello_world.text/bcpl.txt +6 -0
  294. data/zettacode.files/hello_world.text/beef.txt +11 -0
  295. data/zettacode.files/hello_world.text/beeswax.txt +23 -0
  296. data/zettacode.files/hello_world.text/befunge.txt +1 -0
  297. data/zettacode.files/hello_world.text/binary_lambda_calculus.txt +2 -0
  298. data/zettacode.files/hello_world.text/bird.txt +6 -0
  299. data/zettacode.files/hello_world.text/blade.txt +6 -0
  300. data/zettacode.files/hello_world.text/blast.txt +10 -0
  301. data/zettacode.files/hello_world.text/blue.txt +18 -0
  302. data/zettacode.files/hello_world.text/blz.txt +1 -0
  303. data/zettacode.files/hello_world.text/bml.txt +1 -0
  304. data/zettacode.files/hello_world.text/boo.txt +1 -0
  305. data/zettacode.files/hello_world.text/bootbasic.txt +1 -0
  306. data/zettacode.files/hello_world.text/bqn.txt +4 -0
  307. data/zettacode.files/hello_world.text/brace.txt +4 -0
  308. data/zettacode.files/hello_world.text/bracmat.txt +1 -0
  309. data/zettacode.files/hello_world.text/brainf***.txt +83 -0
  310. data/zettacode.files/hello_world.text/brat.txt +1 -0
  311. data/zettacode.files/hello_world.text/brlcad.txt +6 -0
  312. data/zettacode.files/hello_world.text/burlesque.txt +6 -0
  313. data/zettacode.files/hello_world.text/c++-cli.txt +5 -0
  314. data/zettacode.files/hello_world.text/c++.txt +5 -0
  315. data/zettacode.files/hello_world.text/c.txt +37 -0
  316. data/zettacode.files/hello_world.text/c1r.txt +1 -0
  317. data/zettacode.files/hello_world.text/c2.txt +7 -0
  318. data/zettacode.files/hello_world.text/c3.txt +7 -0
  319. data/zettacode.files/hello_world.text/c_sharp|c#.txt +19 -0
  320. data/zettacode.files/hello_world.text/casio_basic.txt +3 -0
  321. data/zettacode.files/hello_world.text/cat.txt +1 -0
  322. data/zettacode.files/hello_world.text/cduce.txt +1 -0
  323. data/zettacode.files/hello_world.text/cfengine.txt +11 -0
  324. data/zettacode.files/hello_world.text/chapel.txt +1 -0
  325. data/zettacode.files/hello_world.text/chef.txt +36 -0
  326. data/zettacode.files/hello_world.text/chuck.txt +1 -0
  327. data/zettacode.files/hello_world.text/cind.txt +6 -0
  328. data/zettacode.files/hello_world.text/clay.txt +3 -0
  329. data/zettacode.files/hello_world.text/clean.txt +1 -0
  330. data/zettacode.files/hello_world.text/clio.txt +1 -0
  331. data/zettacode.files/hello_world.text/clipper.txt +1 -0
  332. data/zettacode.files/hello_world.text/clips.txt +1 -0
  333. data/zettacode.files/hello_world.text/clojure.txt +1 -0
  334. data/zettacode.files/hello_world.text/clu.txt +4 -0
  335. data/zettacode.files/hello_world.text/cmake.txt +5 -0
  336. data/zettacode.files/hello_world.text/cobol.txt +22 -0
  337. data/zettacode.files/hello_world.text/cobra.txt +3 -0
  338. data/zettacode.files/hello_world.text/coffeescript.txt +4 -0
  339. data/zettacode.files/hello_world.text/coldfusion.txt +1 -0
  340. data/zettacode.files/hello_world.text/comal.txt +1 -0
  341. data/zettacode.files/hello_world.text/comefrom0x10.txt +3 -0
  342. data/zettacode.files/hello_world.text/commodore_basic.txt +5 -0
  343. data/zettacode.files/hello_world.text/common_lisp.txt +18 -0
  344. data/zettacode.files/hello_world.text/component_pascal.txt +10 -0
  345. data/zettacode.files/hello_world.text/coq.txt +5 -0
  346. data/zettacode.files/hello_world.text/corescript.txt +1 -0
  347. data/zettacode.files/hello_world.text/cowgol.txt +4 -0
  348. data/zettacode.files/hello_world.text/crack.txt +4 -0
  349. data/zettacode.files/hello_world.text/creative_basic.txt +15 -0
  350. data/zettacode.files/hello_world.text/crystal.txt +1 -0
  351. data/zettacode.files/hello_world.text/d.txt +6 -0
  352. data/zettacode.files/hello_world.text/dafny.txt +6 -0
  353. data/zettacode.files/hello_world.text/dao.txt +1 -0
  354. data/zettacode.files/hello_world.text/dart.txt +4 -0
  355. data/zettacode.files/hello_world.text/dataweave.txt +1 -0
  356. data/zettacode.files/hello_world.text/dbl.txt +15 -0
  357. data/zettacode.files/hello_world.text/dc.txt +3 -0
  358. data/zettacode.files/hello_world.text/dcl.txt +1 -0
  359. data/zettacode.files/hello_world.text/ddnc.txt +40 -0
  360. data/zettacode.files/hello_world.text/delphi.txt +7 -0
  361. data/zettacode.files/hello_world.text/deviousyarn.txt +1 -0
  362. data/zettacode.files/hello_world.text/dibol-11.txt +14 -0
  363. data/zettacode.files/hello_world.text/diego.txt +12 -0
  364. data/zettacode.files/hello_world.text/div_games_studio.txt +12 -0
  365. data/zettacode.files/hello_world.text/dm.txt +5 -0
  366. data/zettacode.files/hello_world.text/draco.txt +3 -0
  367. data/zettacode.files/hello_world.text/dragon.txt +3 -0
  368. data/zettacode.files/hello_world.text/dwscript.txt +3 -0
  369. data/zettacode.files/hello_world.text/dyalect.txt +1 -0
  370. data/zettacode.files/hello_world.text/dylan.net.txt +28 -0
  371. data/zettacode.files/hello_world.text/dylan.txt +5 -0
  372. data/zettacode.files/hello_world.text/d/303/251j/303/240_vu.txt +1 -0
  373. data/zettacode.files/hello_world.text/e.txt +3 -0
  374. data/zettacode.files/hello_world.text/easylang.txt +2 -0
  375. data/zettacode.files/hello_world.text/ec.txt +7 -0
  376. data/zettacode.files/hello_world.text/echolisp.txt +3 -0
  377. data/zettacode.files/hello_world.text/ecl.txt +3 -0
  378. data/zettacode.files/hello_world.text/ecstasy.txt +8 -0
  379. data/zettacode.files/hello_world.text/edsac_order_code.txt +34 -0
  380. data/zettacode.files/hello_world.text/efene.txt +10 -0
  381. data/zettacode.files/hello_world.text/egel.txt +3 -0
  382. data/zettacode.files/hello_world.text/egison.txt +6 -0
  383. data/zettacode.files/hello_world.text/egl.txt +9 -0
  384. data/zettacode.files/hello_world.text/eiffel.txt +11 -0
  385. data/zettacode.files/hello_world.text/ela.txt +2 -0
  386. data/zettacode.files/hello_world.text/elan.txt +1 -0
  387. data/zettacode.files/hello_world.text/elastic.txt +20 -0
  388. data/zettacode.files/hello_world.text/elena.txt +5 -0
  389. data/zettacode.files/hello_world.text/elisa.txt +1 -0
  390. data/zettacode.files/hello_world.text/elixir.txt +3 -0
  391. data/zettacode.files/hello_world.text/elm.txt +1 -0
  392. data/zettacode.files/hello_world.text/emacs_lisp.txt +6 -0
  393. data/zettacode.files/hello_world.text/emojicode.txt +3 -0
  394. data/zettacode.files/hello_world.text/erlang.txt +1 -0
  395. data/zettacode.files/hello_world.text/erre.txt +7 -0
  396. data/zettacode.files/hello_world.text/euler_math_toolbox.txt +4 -0
  397. data/zettacode.files/hello_world.text/extended_brainf***.txt +2 -0
  398. data/zettacode.files/hello_world.text/ezhil.txt +5 -0
  399. data/zettacode.files/hello_world.text/f_sharp|f#.txt +3 -0
  400. data/zettacode.files/hello_world.text/factor.txt +1 -0
  401. data/zettacode.files/hello_world.text/falcon.txt +4 -0
  402. data/zettacode.files/hello_world.text/false.txt +2 -0
  403. data/zettacode.files/hello_world.text/fantom.txt +10 -0
  404. data/zettacode.files/hello_world.text/fennel.txt +1 -0
  405. data/zettacode.files/hello_world.text/ferite.txt +3 -0
  406. data/zettacode.files/hello_world.text/fermat.txt +1 -0
  407. data/zettacode.files/hello_world.text/fexl.txt +1 -0
  408. data/zettacode.files/hello_world.text/fhidwfe.txt +1 -0
  409. data/zettacode.files/hello_world.text/fish.txt +9 -0
  410. data/zettacode.files/hello_world.text/focal.txt +1 -0
  411. data/zettacode.files/hello_world.text/forth.txt +5 -0
  412. data/zettacode.files/hello_world.text/fortran.txt +16 -0
  413. data/zettacode.files/hello_world.text/fortress.txt +3 -0
  414. data/zettacode.files/hello_world.text/free_pascal.txt +21 -0
  415. data/zettacode.files/hello_world.text/freebasic.txt +3 -0
  416. data/zettacode.files/hello_world.text/frege.txt +5 -0
  417. data/zettacode.files/hello_world.text/friendly_interactive_shell.txt +2 -0
  418. data/zettacode.files/hello_world.text/frink.txt +3 -0
  419. data/zettacode.files/hello_world.text/funl.txt +2 -0
  420. data/zettacode.files/hello_world.text/furor.txt +1 -0
  421. data/zettacode.files/hello_world.text/futurebasic.txt +4 -0
  422. data/zettacode.files/hello_world.text/fuze_basic.txt +1 -0
  423. data/zettacode.files/hello_world.text/gambas.txt +6 -0
  424. data/zettacode.files/hello_world.text/gap.txt +10 -0
  425. data/zettacode.files/hello_world.text/gb_basic.txt +1 -0
  426. data/zettacode.files/hello_world.text/gecho.txt +1 -0
  427. data/zettacode.files/hello_world.text/gema.txt +5 -0
  428. data/zettacode.files/hello_world.text/genie.txt +4 -0
  429. data/zettacode.files/hello_world.text/gentee.txt +4 -0
  430. data/zettacode.files/hello_world.text/gfa_basic.txt +1 -0
  431. data/zettacode.files/hello_world.text/glbasic.txt +1 -0
  432. data/zettacode.files/hello_world.text/glee.txt +13 -0
  433. data/zettacode.files/hello_world.text/global_script.txt +3 -0
  434. data/zettacode.files/hello_world.text/glovepie.txt +1 -0
  435. data/zettacode.files/hello_world.text/gml.txt +2 -0
  436. data/zettacode.files/hello_world.text/go.txt +6 -0
  437. data/zettacode.files/hello_world.text/golfscript.txt +1 -0
  438. data/zettacode.files/hello_world.text/gosu.txt +1 -0
  439. data/zettacode.files/hello_world.text/grain.txt +1 -0
  440. data/zettacode.files/hello_world.text/groovy.txt +1 -0
  441. data/zettacode.files/hello_world.text/gw-basic.txt +1 -0
  442. data/zettacode.files/hello_world.text/hack.txt +1 -0
  443. data/zettacode.files/hello_world.text/halon.txt +3 -0
  444. data/zettacode.files/hello_world.text/harbour.txt +1 -0
  445. data/zettacode.files/hello_world.text/hare.txt +5 -0
  446. data/zettacode.files/hello_world.text/haskell.txt +3 -0
  447. data/zettacode.files/hello_world.text/haxe.txt +1 -0
  448. data/zettacode.files/hello_world.text/hexiscript.txt +1 -0
  449. data/zettacode.files/hello_world.text/hicest.txt +1 -0
  450. data/zettacode.files/hello_world.text/hla.txt +7 -0
  451. data/zettacode.files/hello_world.text/holyc.txt +1 -0
  452. data/zettacode.files/hello_world.text/hoon.txt +1 -0
  453. data/zettacode.files/hello_world.text/hpppl.txt +1 -0
  454. data/zettacode.files/hello_world.text/hq9+.txt +7 -0
  455. data/zettacode.files/hello_world.text/html5.txt +8 -0
  456. data/zettacode.files/hello_world.text/huginn.txt +8 -0
  457. data/zettacode.files/hello_world.text/hy.txt +1 -0
  458. data/zettacode.files/hello_world.text/i.txt +3 -0
  459. data/zettacode.files/hello_world.text/icon}}_and_{{header|unicon.txt +3 -0
  460. data/zettacode.files/hello_world.text/idl.txt +1 -0
  461. data/zettacode.files/hello_world.text/idris.txt +4 -0
  462. data/zettacode.files/hello_world.text/inform_6.txt +3 -0
  463. data/zettacode.files/hello_world.text/inko.txt +4 -0
  464. data/zettacode.files/hello_world.text/integer_basic.txt +4 -0
  465. data/zettacode.files/hello_world.text/intercal.txt +17 -0
  466. data/zettacode.files/hello_world.text/io.txt +1 -0
  467. data/zettacode.files/hello_world.text/ioke.txt +1 -0
  468. data/zettacode.files/hello_world.text/is-basic.txt +1 -0
  469. data/zettacode.files/hello_world.text/isabelle.txt +5 -0
  470. data/zettacode.files/hello_world.text/iwbasic.txt +15 -0
  471. data/zettacode.files/hello_world.text/j.txt +40 -0
  472. data/zettacode.files/hello_world.text/jack.txt +7 -0
  473. data/zettacode.files/hello_world.text/jacquard_loom.txt +88 -0
  474. data/zettacode.files/hello_world.text/java.txt +7 -0
  475. data/zettacode.files/hello_world.text/javascript.txt +12 -0
  476. data/zettacode.files/hello_world.text/jcl.txt +1 -0
  477. data/zettacode.files/hello_world.text/jinja.txt +9 -0
  478. data/zettacode.files/hello_world.text/joy.txt +1 -0
  479. data/zettacode.files/hello_world.text/jq.txt +1 -0
  480. data/zettacode.files/hello_world.text/jse.txt +1 -0
  481. data/zettacode.files/hello_world.text/jsish.txt +1 -0
  482. data/zettacode.files/hello_world.text/julia.txt +1 -0
  483. data/zettacode.files/hello_world.text/k.txt +14 -0
  484. data/zettacode.files/hello_world.text/kabap.txt +1 -0
  485. data/zettacode.files/hello_world.text/kaya.txt +6 -0
  486. data/zettacode.files/hello_world.text/kdf9_usercode.txt +13 -0
  487. data/zettacode.files/hello_world.text/keg.txt +1 -0
  488. data/zettacode.files/hello_world.text/kite.txt +4 -0
  489. data/zettacode.files/hello_world.text/kitten.txt +2 -0
  490. data/zettacode.files/hello_world.text/koka.txt +3 -0
  491. data/zettacode.files/hello_world.text/konsolscript.txt +4 -0
  492. data/zettacode.files/hello_world.text/kotlin.txt +3 -0
  493. data/zettacode.files/hello_world.text/kql.txt +2 -0
  494. data/zettacode.files/hello_world.text/ksi.txt +5 -0
  495. data/zettacode.files/hello_world.text/lambdatalk.txt +5 -0
  496. data/zettacode.files/hello_world.text/lang5.txt +1 -0
  497. data/zettacode.files/hello_world.text/langur.txt +1 -0
  498. data/zettacode.files/hello_world.text/lasso.txt +2 -0
  499. data/zettacode.files/hello_world.text/latex.txt +4 -0
  500. data/zettacode.files/hello_world.text/latitude.txt +1 -0
  501. data/zettacode.files/hello_world.text/lc3_assembly.txt +18 -0
  502. data/zettacode.files/hello_world.text/ldpl.txt +4 -0
  503. data/zettacode.files/hello_world.text/lean.txt +3 -0
  504. data/zettacode.files/hello_world.text/lfe.txt +3 -0
  505. data/zettacode.files/hello_world.text/liberty_basic.txt +1 -0
  506. data/zettacode.files/hello_world.text/lil.txt +5 -0
  507. data/zettacode.files/hello_world.text/lily.txt +7 -0
  508. data/zettacode.files/hello_world.text/lilypond.txt +11 -0
  509. data/zettacode.files/hello_world.text/limbo.txt +14 -0
  510. data/zettacode.files/hello_world.text/lingo.txt +5 -0
  511. data/zettacode.files/hello_world.text/lisaac.txt +16 -0
  512. data/zettacode.files/hello_world.text/little.txt +9 -0
  513. data/zettacode.files/hello_world.text/livecode.txt +15 -0
  514. data/zettacode.files/hello_world.text/llvm.txt +13 -0
  515. data/zettacode.files/hello_world.text/lobster.txt +1 -0
  516. data/zettacode.files/hello_world.text/logo.txt +4 -0
  517. data/zettacode.files/hello_world.text/logtalk.txt +7 -0
  518. data/zettacode.files/hello_world.text/lolcode.txt +6 -0
  519. data/zettacode.files/hello_world.text/lotusscript.txt +5 -0
  520. data/zettacode.files/hello_world.text/lse.txt +1 -0
  521. data/zettacode.files/hello_world.text/lse64.txt +1 -0
  522. data/zettacode.files/hello_world.text/lua.txt +12 -0
  523. data/zettacode.files/hello_world.text/luna.txt +3 -0
  524. data/zettacode.files/hello_world.text/m2000_interpreter.txt +5 -0
  525. data/zettacode.files/hello_world.text/m4.txt +2 -0
  526. data/zettacode.files/hello_world.text/maclisp.txt +3 -0
  527. data/zettacode.files/hello_world.text/macro-10.txt +24 -0
  528. data/zettacode.files/hello_world.text/macro-11.txt +28 -0
  529. data/zettacode.files/hello_world.text/mad.txt +4 -0
  530. data/zettacode.files/hello_world.text/make.txt +9 -0
  531. data/zettacode.files/hello_world.text/malbolge.txt +7 -0
  532. data/zettacode.files/hello_world.text/manool.txt +10 -0
  533. data/zettacode.files/hello_world.text/maple.txt +4 -0
  534. data/zettacode.files/hello_world.text/mathcad.txt +3 -0
  535. data/zettacode.files/hello_world.text/mathematica}}_-_{{header|wolfram_language.txt +1 -0
  536. data/zettacode.files/hello_world.text/matlab.txt +2 -0
  537. data/zettacode.files/hello_world.text/maude.txt +13 -0
  538. data/zettacode.files/hello_world.text/maxima.txt +1 -0
  539. data/zettacode.files/hello_world.text/maxscript.txt +3 -0
  540. data/zettacode.files/hello_world.text/mdl.txt +2 -0
  541. data/zettacode.files/hello_world.text/mel.txt +3 -0
  542. data/zettacode.files/hello_world.text/melonbasic.txt +3 -0
  543. data/zettacode.files/hello_world.text/mercury.txt +8 -0
  544. data/zettacode.files/hello_world.text/metafont.txt +1 -0
  545. data/zettacode.files/hello_world.text/min.txt +1 -0
  546. data/zettacode.files/hello_world.text/miniscript.txt +1 -0
  547. data/zettacode.files/hello_world.text/minizinc.txt +2 -0
  548. data/zettacode.files/hello_world.text/mips_assembly.txt +12 -0
  549. data/zettacode.files/hello_world.text/mirc_scripting_language.txt +1 -0
  550. data/zettacode.files/hello_world.text/ml-i.txt +1 -0
  551. data/zettacode.files/hello_world.text/modula-2.txt +24 -0
  552. data/zettacode.files/hello_world.text/modula-3.txt +7 -0
  553. data/zettacode.files/hello_world.text/montilang.txt +1 -0
  554. data/zettacode.files/hello_world.text/morfa.txt +7 -0
  555. data/zettacode.files/hello_world.text/mosaic.txt +3 -0
  556. data/zettacode.files/hello_world.text/muf.txt +4 -0
  557. data/zettacode.files/hello_world.text/mumps.txt +1 -0
  558. data/zettacode.files/hello_world.text/mydef.txt +27 -0
  559. data/zettacode.files/hello_world.text/myrtlescript.txt +6 -0
  560. data/zettacode.files/hello_world.text/mysql.txt +2 -0
  561. data/zettacode.files/hello_world.text/mythryl.txt +2 -0
  562. data/zettacode.files/hello_world.text/n-t-roff.txt +6 -0
  563. data/zettacode.files/hello_world.text/nanoquery.txt +1 -0
  564. data/zettacode.files/hello_world.text/neat.txt +2 -0
  565. data/zettacode.files/hello_world.text/neko.txt +1 -0
  566. data/zettacode.files/hello_world.text/nemerle.txt +13 -0
  567. data/zettacode.files/hello_world.text/netrexx.txt +1 -0
  568. data/zettacode.files/hello_world.text/never.txt +4 -0
  569. data/zettacode.files/hello_world.text/newlisp.txt +2 -0
  570. data/zettacode.files/hello_world.text/nickle.txt +1 -0
  571. data/zettacode.files/hello_world.text/nim.txt +3 -0
  572. data/zettacode.files/hello_world.text/nit.txt +1 -0
  573. data/zettacode.files/hello_world.text/nix.txt +1 -0
  574. data/zettacode.files/hello_world.text/nlp++.txt +5 -0
  575. data/zettacode.files/hello_world.text/ns-hubasic.txt +6 -0
  576. data/zettacode.files/hello_world.text/nyquist.txt +15 -0
  577. data/zettacode.files/hello_world.text/oberon-2.txt +11 -0
  578. data/zettacode.files/hello_world.text/objeck.txt +6 -0
  579. data/zettacode.files/hello_world.text/objective-c.txt +42 -0
  580. data/zettacode.files/hello_world.text/ocaml.txt +1 -0
  581. data/zettacode.files/hello_world.text/occam.txt +5 -0
  582. data/zettacode.files/hello_world.text/octave.txt +5 -0
  583. data/zettacode.files/hello_world.text/odin.txt +6 -0
  584. data/zettacode.files/hello_world.text/oforth.txt +1 -0
  585. data/zettacode.files/hello_world.text/ol.txt +1 -0
  586. data/zettacode.files/hello_world.text/onyx.txt +1 -0
  587. data/zettacode.files/hello_world.text/ooc.txt +8 -0
  588. data/zettacode.files/hello_world.text/oorexx.txt +4 -0
  589. data/zettacode.files/hello_world.text/openlisp.txt +10 -0
  590. data/zettacode.files/hello_world.text/openscad.txt +5 -0
  591. data/zettacode.files/hello_world.text/oxygene.txt +25 -0
  592. data/zettacode.files/hello_world.text/oz.txt +1 -0
  593. data/zettacode.files/hello_world.text/pari-gp.txt +2 -0
  594. data/zettacode.files/hello_world.text/pascal.txt +5 -0
  595. data/zettacode.files/hello_world.text/pasm.txt +2 -0
  596. data/zettacode.files/hello_world.text/pdp-11_assembly.txt +15 -0
  597. data/zettacode.files/hello_world.text/pdp-1_assembly.txt +22 -0
  598. data/zettacode.files/hello_world.text/pepsiscript.txt +16 -0
  599. data/zettacode.files/hello_world.text/perl.txt +11 -0
  600. data/zettacode.files/hello_world.text/peylang.txt +1 -0
  601. data/zettacode.files/hello_world.text/pharo.txt +4 -0
  602. data/zettacode.files/hello_world.text/phix.txt +4 -0
  603. data/zettacode.files/hello_world.text/phl.txt +7 -0
  604. data/zettacode.files/hello_world.text/php.txt +5 -0
  605. data/zettacode.files/hello_world.text/picat.txt +1 -0
  606. data/zettacode.files/hello_world.text/picolisp.txt +1 -0
  607. data/zettacode.files/hello_world.text/pict.txt +6 -0
  608. data/zettacode.files/hello_world.text/pikachu.txt +23 -0
  609. data/zettacode.files/hello_world.text/pike.txt +3 -0
  610. data/zettacode.files/hello_world.text/pilot.txt +1 -0
  611. data/zettacode.files/hello_world.text/pir.txt +3 -0
  612. data/zettacode.files/hello_world.text/pixilang.txt +1 -0
  613. data/zettacode.files/hello_world.text/pl-i.txt +3 -0
  614. data/zettacode.files/hello_world.text/pl-m.txt +13 -0
  615. data/zettacode.files/hello_world.text/pl-sql.txt +21 -0
  616. data/zettacode.files/hello_world.text/plain_english.txt +7 -0
  617. data/zettacode.files/hello_world.text/plan.txt +14 -0
  618. data/zettacode.files/hello_world.text/pony.txt +3 -0
  619. data/zettacode.files/hello_world.text/pop11.txt +1 -0
  620. data/zettacode.files/hello_world.text/portugol.txt +11 -0
  621. data/zettacode.files/hello_world.text/postscript.txt +31 -0
  622. data/zettacode.files/hello_world.text/potion.txt +1 -0
  623. data/zettacode.files/hello_world.text/powerbasic.txt +7 -0
  624. data/zettacode.files/hello_world.text/powershell.txt +4 -0
  625. data/zettacode.files/hello_world.text/processing.txt +1 -0
  626. data/zettacode.files/hello_world.text/prodos.txt +1 -0
  627. data/zettacode.files/hello_world.text/programming_language.txt +5 -0
  628. data/zettacode.files/hello_world.text/prolog.txt +1 -0
  629. data/zettacode.files/hello_world.text/promal.txt +7 -0
  630. data/zettacode.files/hello_world.text/psql.txt +7 -0
  631. data/zettacode.files/hello_world.text/pure.txt +5 -0
  632. data/zettacode.files/hello_world.text/purebasic.txt +5 -0
  633. data/zettacode.files/hello_world.text/python.txt +19 -0
  634. data/zettacode.files/hello_world.text/qb64.txt +1 -0
  635. data/zettacode.files/hello_world.text/quackery.txt +1 -0
  636. data/zettacode.files/hello_world.text/quill.txt +1 -0
  637. data/zettacode.files/hello_world.text/quite_basic.txt +1 -0
  638. data/zettacode.files/hello_world.text/r.txt +5 -0
  639. data/zettacode.files/hello_world.text/ra.txt +8 -0
  640. data/zettacode.files/hello_world.text/racket.txt +3 -0
  641. data/zettacode.files/hello_world.text/raku.txt +4 -0
  642. data/zettacode.files/hello_world.text/rasel.txt +1 -0
  643. data/zettacode.files/hello_world.text/ratfor.txt +11 -0
  644. data/zettacode.files/hello_world.text/raven.txt +1 -0
  645. data/zettacode.files/hello_world.text/realbasic.txt +7 -0
  646. data/zettacode.files/hello_world.text/rebol.txt +1 -0
  647. data/zettacode.files/hello_world.text/red.txt +1 -0
  648. data/zettacode.files/hello_world.text/relation.txt +4 -0
  649. data/zettacode.files/hello_world.text/rescript.txt +2 -0
  650. data/zettacode.files/hello_world.text/retro.txt +4 -0
  651. data/zettacode.files/hello_world.text/rexx.txt +13 -0
  652. data/zettacode.files/hello_world.text/ring.txt +1 -0
  653. data/zettacode.files/hello_world.text/risc-v.txt +11 -0
  654. data/zettacode.files/hello_world.text/rockstar.txt +1 -0
  655. data/zettacode.files/hello_world.text/rtl-2.txt +12 -0
  656. data/zettacode.files/hello_world.text/ruby.txt +11 -0
  657. data/zettacode.files/hello_world.text/run_basic.txt +1 -0
  658. data/zettacode.files/hello_world.text/rust.txt +13 -0
  659. data/zettacode.files/hello_world.text/salmon.txt +9 -0
  660. data/zettacode.files/hello_world.text/sas.txt +4 -0
  661. data/zettacode.files/hello_world.text/sasl.txt +4 -0
  662. data/zettacode.files/hello_world.text/sather.txt +5 -0
  663. data/zettacode.files/hello_world.text/scala.txt +19 -0
  664. data/zettacode.files/hello_world.text/scheme.txt +21 -0
  665. data/zettacode.files/hello_world.text/scilab.txt +1 -0
  666. data/zettacode.files/hello_world.text/scratchscript.txt +4 -0
  667. data/zettacode.files/hello_world.text/sed.txt +3 -0
  668. data/zettacode.files/hello_world.text/seed7.txt +6 -0
  669. data/zettacode.files/hello_world.text/self.txt +1 -0
  670. data/zettacode.files/hello_world.text/sensetalk.txt +1 -0
  671. data/zettacode.files/hello_world.text/set_lang.txt +12 -0
  672. data/zettacode.files/hello_world.text/setl.txt +1 -0
  673. data/zettacode.files/hello_world.text/setl4.txt +1 -0
  674. data/zettacode.files/hello_world.text/shen.txt +1 -0
  675. data/zettacode.files/hello_world.text/shiny.txt +1 -0
  676. data/zettacode.files/hello_world.text/sidef.txt +1 -0
  677. data/zettacode.files/hello_world.text/simplecode.txt +3 -0
  678. data/zettacode.files/hello_world.text/simpol.txt +2 -0
  679. data/zettacode.files/hello_world.text/simula.txt +5 -0
  680. data/zettacode.files/hello_world.text/sing.txt +7 -0
  681. data/zettacode.files/hello_world.text/sisal.txt +10 -0
  682. data/zettacode.files/hello_world.text/skookumscript.txt +3 -0
  683. data/zettacode.files/hello_world.text/slate.txt +1 -0
  684. data/zettacode.files/hello_world.text/slope.txt +1 -0
  685. data/zettacode.files/hello_world.text/smalltalk.txt +4 -0
  686. data/zettacode.files/hello_world.text/smart_basic.txt +1 -0
  687. data/zettacode.files/hello_world.text/smilebasic.txt +1 -0
  688. data/zettacode.files/hello_world.text/snobol4.txt +3 -0
  689. data/zettacode.files/hello_world.text/snusp.txt +11 -0
  690. data/zettacode.files/hello_world.text/soneking_assembly.txt +10 -0
  691. data/zettacode.files/hello_world.text/sparc_assembly.txt +18 -0
  692. data/zettacode.files/hello_world.text/sparkling.txt +1 -0
  693. data/zettacode.files/hello_world.text/spl.txt +1 -0
  694. data/zettacode.files/hello_world.text/sql.txt +12 -0
  695. data/zettacode.files/hello_world.text/sql_pl.txt +35 -0
  696. data/zettacode.files/hello_world.text/standard_ml.txt +1 -0
  697. data/zettacode.files/hello_world.text/stata.txt +1 -0
  698. data/zettacode.files/hello_world.text/suneido.txt +1 -0
  699. data/zettacode.files/hello_world.text/swahili.txt +1 -0
  700. data/zettacode.files/hello_world.text/swift.txt +4 -0
  701. data/zettacode.files/hello_world.text/symsyn.txt +3 -0
  702. data/zettacode.files/hello_world.text/tailspin.txt +1 -0
  703. data/zettacode.files/hello_world.text/tcl.txt +5 -0
  704. data/zettacode.files/hello_world.text/teco.txt +2 -0
  705. data/zettacode.files/hello_world.text/tern.txt +1 -0
  706. data/zettacode.files/hello_world.text/terra.txt +6 -0
  707. data/zettacode.files/hello_world.text/terraform.txt +3 -0
  708. data/zettacode.files/hello_world.text/testml.txt +2 -0
  709. data/zettacode.files/hello_world.text/ti-83_basic.txt +2 -0
  710. data/zettacode.files/hello_world.text/ti-89_basic.txt +1 -0
  711. data/zettacode.files/hello_world.text/tiny_basic.txt +5 -0
  712. data/zettacode.files/hello_world.text/tmg.txt +2 -0
  713. data/zettacode.files/hello_world.text/torquescript.txt +1 -0
  714. data/zettacode.files/hello_world.text/tpp.txt +1 -0
  715. data/zettacode.files/hello_world.text/transact-sql.txt +2 -0
  716. data/zettacode.files/hello_world.text/transd.txt +2 -0
  717. data/zettacode.files/hello_world.text/transforth.txt +1 -0
  718. data/zettacode.files/hello_world.text/trith.txt +1 -0
  719. data/zettacode.files/hello_world.text/true_basic.txt +5 -0
  720. data/zettacode.files/hello_world.text/tuscript.txt +8 -0
  721. data/zettacode.files/hello_world.text/ubasic-4th.txt +1 -0
  722. data/zettacode.files/hello_world.text/uniface.txt +3 -0
  723. data/zettacode.files/hello_world.text/unison.txt +3 -0
  724. data/zettacode.files/hello_world.text/unix_shell.txt +9 -0
  725. data/zettacode.files/hello_world.text/unlambda.txt +1 -0
  726. data/zettacode.files/hello_world.text/ursa.txt +1 -0
  727. data/zettacode.files/hello_world.text/ursala.txt +10 -0
  728. data/zettacode.files/hello_world.text/v.txt +1 -0
  729. data/zettacode.files/hello_world.text/v_(vlang).txt +3 -0
  730. data/zettacode.files/hello_world.text/vala.txt +3 -0
  731. data/zettacode.files/hello_world.text/vax_assembly.txt +10 -0
  732. data/zettacode.files/hello_world.text/vba.txt +6 -0
  733. data/zettacode.files/hello_world.text/vbscript.txt +2 -0
  734. data/zettacode.files/hello_world.text/vedit_macro_language.txt +1 -0
  735. data/zettacode.files/hello_world.text/verbexx.txt +2 -0
  736. data/zettacode.files/hello_world.text/verilog.txt +8 -0
  737. data/zettacode.files/hello_world.text/vhdl.txt +16 -0
  738. data/zettacode.files/hello_world.text/vim_script.txt +1 -0
  739. data/zettacode.files/hello_world.text/visual_basic.txt +22 -0
  740. data/zettacode.files/hello_world.text/visual_basic_.net.txt +7 -0
  741. data/zettacode.files/hello_world.text/viua_vm_assembly.txt +6 -0
  742. data/zettacode.files/hello_world.text/vtl-2.txt +1 -0
  743. data/zettacode.files/hello_world.text/wart.txt +2 -0
  744. data/zettacode.files/hello_world.text/wdte.txt +1 -0
  745. data/zettacode.files/hello_world.text/webassembly.txt +38 -0
  746. data/zettacode.files/hello_world.text/wee_basic.txt +2 -0
  747. data/zettacode.files/hello_world.text/whenever.txt +2 -0
  748. data/zettacode.files/hello_world.text/whiley.txt +5 -0
  749. data/zettacode.files/hello_world.text/whitespace.txt +1 -0
  750. data/zettacode.files/hello_world.text/wisp.txt +8 -0
  751. data/zettacode.files/hello_world.text/wolfram_language.txt +1 -0
  752. data/zettacode.files/hello_world.text/wren.txt +1 -0
  753. data/zettacode.files/hello_world.text/x10.txt +8 -0
  754. data/zettacode.files/hello_world.text/x86-64_assembly.txt +44 -0
  755. data/zettacode.files/hello_world.text/x86_assembly.txt +37 -0
  756. data/zettacode.files/hello_world.text/xbasic.txt +12 -0
  757. data/zettacode.files/hello_world.text/xeec.txt +4 -0
  758. data/zettacode.files/hello_world.text/xl.txt +2 -0
  759. data/zettacode.files/hello_world.text/xlisp.txt +2 -0
  760. data/zettacode.files/hello_world.text/xpath.txt +1 -0
  761. data/zettacode.files/hello_world.text/xpl0.txt +3 -0
  762. data/zettacode.files/hello_world.text/xslt.txt +5 -0
  763. data/zettacode.files/hello_world.text/yabasic.txt +3 -0
  764. data/zettacode.files/hello_world.text/yorick.txt +1 -0
  765. data/zettacode.files/hello_world.text/z80_assembly.txt +21 -0
  766. data/zettacode.files/hello_world.text/zig.txt +4 -0
  767. data/zettacode.files/hello_world.text/zkl.txt +2 -0
  768. data/zettacode.files/hello_world.text/zoea.txt +2 -0
  769. data/zettacode.files/hello_world.text/zoea_visual.txt +1 -0
  770. data/zettacode.files/hello_world.text/zoomscript.txt +5 -0
  771. data/zettacode.files/hello_world.text/zx_spectrum_basic.txt +4 -0
  772. data/zettacode.files/hello_world.text//340/256/211/340/256/257/340/256/277/340/256/260/340/257/215-uyir.txt +5 -0
  773. data/zettacode.files/input/aritmetic-integer.xml +5876 -0
  774. data/zettacode.files/input/hello-world-text.xml +4498 -0
  775. data/zettacode.gemspec +45 -0
  776. metadata +892 -0
data/README.md ADDED
@@ -0,0 +1,47 @@
1
+
2
+ ```
3
+ _____ _ _ ____ _
4
+ |__ /___| |_| |_ __ _ / ___|___ __| | ___
5
+ / // _ \ __| __/ _` | | | / _ \ / _` |/ _ \
6
+ / /| __/ |_| || (_| | | |__| (_) | (_| | __/
7
+ /____\___|\__|\__\__,_| \____\___/ \__,_|\___|
8
+ ```
9
+
10
+ # Zettacode
11
+
12
+ This repository has two sections:
13
+ 1. `zettacode` app source code
14
+ 2. [Repository of processed files](zettacode.files) usign `zettacode`
15
+
16
+ # 1. Zettacode application
17
+
18
+ `zettacode` is an application that helps us perform various tasks with files from the [rosettacode.org](https://rosettacode.org/wiki/Rosetta_Code) website.
19
+
20
+ Features:
21
+
22
+ * Free license
23
+ * Multiplatform
24
+ * Command Application
25
+
26
+ ## 1.1 Installation
27
+
28
+ * Install Ruby on your host.
29
+ * `ruby -v`, check current Ruby version.
30
+ * `gem install zettacode`, to install "zettacode" gem.
31
+ * `zettacode -v`, show current version.
32
+
33
+ ## 1.2 Usage
34
+
35
+ **Parse local XML file**
36
+ * Goto [RosettaCode](https://rosettacode.org/wiki/Special:Export) export page.
37
+ * Add 1 page manually and export.
38
+ * `zettacode --parse PATH/TO/XML/FILE`, execute Zettacode to parse XML file into code files.
39
+ * The files are created in the `zettacode.files` folder.
40
+
41
+ > **TODO**:
42
+ > Next version will include Scrap RosettaCode function
43
+
44
+
45
+ ## 1.3 Contributing
46
+
47
+ Bug reports and pull requests are welcome on GitHub at https://github.com/dvarrui/zettacode.
data/Rakefile ADDED
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rake/testtask"
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "test"
8
+ t.libs << "lib"
9
+ t.test_files = FileList["test/**/*_test.rb"]
10
+ end
11
+
12
+ require "standard/rake"
13
+
14
+ task default: %i[test standard]
15
+
16
+ require_relative "tasks/devel"
17
+
18
+ desc "Rake help"
19
+ task :help do
20
+ system("rake -T")
21
+ end
data/bin/zcode ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ system("zettacode #{ARGV}")
data/bin/zettacode ADDED
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env ruby
2
+ require "optparse"
3
+ require_relative "../lib/zettacode"
4
+
5
+ options = {}
6
+ OptionParser.new do |opts|
7
+ opts.banner = "Usage: zettacode [--parse FILENAME]"
8
+
9
+ opts.on("-p", "--parse", "Parse FILENAME") do |p|
10
+ options[:parse] = p
11
+ end
12
+ opts.on("-s", "--scrap", "Scrap RosettaCode URLs") do |s|
13
+ options[:scrap] = s
14
+ end
15
+ opts.on("-v", "--version", "Show version") do |v|
16
+ options[:version] = v
17
+ end
18
+ end.parse!
19
+
20
+ if options[:parse]
21
+ Zettacode::Parse.call(ARGV.first || "NODATA")
22
+ elsif options[:scrap]
23
+ scrap = Zettacode::Scrap.new("config/scrap.yaml")
24
+ scrap.load_settings
25
+ scrap.find_langs
26
+ elsif options[:version]
27
+ puts "zettacode #{Zettacode::VERSION}"
28
+ end
@@ -0,0 +1,11 @@
1
+ problems:
2
+ - name: Arithmetic/Integer
3
+ cache: "Arithmetic_Integer - Rosetta Code.html"
4
+ url: https://rosettacode.org/wiki/Arithmetic/Integer
5
+ targets:
6
+ - "sum a+b"
7
+ - "difference a-b"
8
+ - "product a*b"
9
+ - "integer quotient a/b"
10
+ - "remainder a%b"
11
+ - "exponentiation (if the operator exists)"
data/config/scrap.yaml ADDED
@@ -0,0 +1,2 @@
1
+ - :name: Arithmetic/Integer
2
+ :url: https://rosettacode.org/wiki/Arithmetic/Integer
data/docs/parse.md ADDED
@@ -0,0 +1,9 @@
1
+
2
+ # Parse
3
+
4
+ 1. Export XML from RosettaCode web
5
+ * Goto https://rosettacode.org/wiki/Special:Export
6
+ * Fill Category or Pages. Example: `Category = Basic_language_learning`, and click `Add`. Example: `Pages = Hello_world/Text or Arithmetic/Integer`
7
+ * Click export
8
+ 2. Move XML file into `data/input` folder.
9
+ 3. Execute `rosettacode --parse-xml`
data/docs/scrap.md ADDED
@@ -0,0 +1,15 @@
1
+
2
+ # Scrap
3
+
4
+ > Enlace de interés:
5
+ > * https://rosettacode.org/wiki/Rosetta_Code
6
+ > * https://rosettacode.org/wiki/Category:Basic_language_learning
7
+ > * https://rosettacode.org/wiki/Arithmetic/Integer
8
+
9
+
10
+ # Export
11
+
12
+ https://rosettacode.org/wiki/Special:Export
13
+
14
+ * Category: Basic_language_learning -> Add
15
+ * Pages: Hello_world/Text, Arithmetic/Integer
@@ -0,0 +1,113 @@
1
+ require "colorize"
2
+ require "fileutils"
3
+ require "debug"
4
+
5
+ module Zettacode
6
+ module Parse
7
+ def self.echo(title, text)
8
+ print title.rjust(12).colorize(:green)
9
+ puts " #{text}"
10
+ end
11
+
12
+ def self.call(filepath)
13
+ content, to_folder = read_content_from filepath
14
+ dirty_examples = scrap_examples_from content
15
+ clean_examples = clean dirty_examples
16
+ save_files clean_examples, to_folder
17
+ end
18
+
19
+ def self.read_content_from(filepath)
20
+ unless File.exist?(filepath)
21
+ echo "ERROR", "File not found! (#{filepath})"
22
+ exit 1
23
+ end
24
+
25
+ echo "Parsing", filepath
26
+ content = File.read(filepath)
27
+ title = /<title>([\w\d\s._-]+.[\w\d\s._-]+)<\/title>/
28
+ name = title.match(content).captures.first
29
+ name.tr!("/", ".")
30
+ name.tr!(" ", "_")
31
+ name.downcase!
32
+ folder = File.join("zettacode.files", name)
33
+ FileUtils.mkdir(folder) unless Dir.exist? folder
34
+ [content, folder]
35
+ end
36
+
37
+ def self.scrap_examples_from(content)
38
+ examples = []
39
+ example = nil
40
+ skip = true
41
+ content.split("\n").each do |line|
42
+ if line.start_with? "=={{header|"
43
+ skip = false
44
+ examples << example unless example.nil?
45
+ example = {lang: line, code: []}
46
+ elsif line.downcase.start_with? "{{out}}"
47
+ skip = true
48
+ next
49
+ elsif skip
50
+ next
51
+ else
52
+ example[:code] << line
53
+ end
54
+ end
55
+ examples << example
56
+ examples
57
+ end
58
+
59
+ def self.clean(dirty_examples)
60
+ examples = []
61
+ dirty_examples.each do |example|
62
+ # lang = /header\|([\w\d\s.\-_*\(\)]+)/.match(example[:lang])&.captures&.first
63
+ lang = example[:lang][11, example[:lang].size - 15]
64
+ filename = lang.tr(" ", "_").downcase
65
+ filename.tr!("/", "-")
66
+ syntax = nil
67
+ lines = example[:code]
68
+ raw = lines.join("\n")
69
+
70
+ # Clean syntaxhighlight tag
71
+ lines.each do |line|
72
+ # &lt;syntaxhighlight lang="LANG"&gt;
73
+ filter = /&lt;syntaxhighlight\s+lang="([\w\d]+)"&gt;/
74
+ value = filter.match(line)&.captures&.first
75
+ if value.nil?
76
+ line.tr!("</text>", "")
77
+ line.tr!("</revision>", "")
78
+ line.tr!("</page>", "")
79
+ line.tr!("</mediawiki>", "")
80
+ line = nil if line.strip.start_with? "<sha1>"
81
+ else
82
+ syntax = value
83
+ line.gsub!("&lt;syntaxhighlight lang=\"#{value}\"&gt;", "")
84
+ end
85
+ end
86
+
87
+ code = lines.join("\n")
88
+ code.tr!("&lt;/syntaxhighlight&gt;", "")
89
+ code.tr!("&lt;pre&gt;", "")
90
+ code.tr!("&lt;/pre&gt;", "")
91
+ code.tr!("&lt;", "<")
92
+ code.tr!("&gt;", ">")
93
+ examples << {
94
+ lang: lang,
95
+ filename: filename,
96
+ syntax: syntax,
97
+ code: code,
98
+ raw: raw
99
+ }
100
+ end
101
+ examples
102
+ end
103
+
104
+ def self.save_files(examples, folder)
105
+ examples.each do |example|
106
+ filepath = File.join(folder, "#{example[:filename]}.txt")
107
+ File.open(filepath, "w") { |file| file.write(example[:code]) }
108
+ end
109
+ echo "Folder", folder
110
+ echo "Saving", "#{examples.size} files"
111
+ end
112
+ end
113
+ end
@@ -0,0 +1,57 @@
1
+ require "yaml"
2
+ require "httparty"
3
+ require "nokogiri"
4
+ require "debug"
5
+
6
+ module Zettacode
7
+ class Scrap
8
+ attr_reader :settings
9
+
10
+ def initialize(filepath)
11
+ @configpath = filepath
12
+ end
13
+
14
+ def load_settings
15
+ puts "==> Loading settings (#{@configpath})"
16
+ @settings = YAML.load(File.read(@configpath))
17
+ # Show settings
18
+ @settings.each_with_index do |problem, index|
19
+ number = "%02d" % (index + 1)
20
+ puts " #{number} #{problem[:name]}: #{problem[:url]}"
21
+ end
22
+ end
23
+
24
+ def find_langs
25
+ # Scrap page
26
+ @settings.each do |problem|
27
+ # 1. Get page
28
+ response = HTTParty.get(problem[:url])
29
+ unless response.code == 200
30
+ puts "==> httparty: [Error] #{response.code}"
31
+ exit 1
32
+ end
33
+
34
+ # 2. Find every LANG (a href ="#LANG")
35
+ langs = []
36
+ document = Nokogiri::HTML(response.body)
37
+ document.css("h2 > span").each do |e|
38
+ id = e.attribute("id")
39
+ langs << id unless id.nil?
40
+ end
41
+ puts "==> Problem: #{problem[:name]} (langs=#{langs.size})"
42
+ puts langs.join("\n")
43
+
44
+ langs = []
45
+ elems = document.css("a")
46
+ elems.each do |e|
47
+ href = e.attribute("href")
48
+ filter = /\/wiki\/Category:([\w\d.-_]+)/
49
+ items = filter.match(href)&.captures
50
+ langs << items.first unless items.nil?
51
+ end
52
+ puts "==> Problem: #{problem[:name]} (langs=#{langs.size})"
53
+ puts langs.join("\n")
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Zettacode
4
+ VERSION = "0.1.0"
5
+ end
data/lib/zettacode.rb ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "zettacode/parse/parse"
4
+ require_relative "zettacode/scrap/scrap"
5
+ require_relative "zettacode/version"
6
+
7
+ module Zettacode
8
+ class Error < StandardError; end
9
+ # Your code goes here...
10
+ end
data/sig/zettacode.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module Zettacode
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
data/tasks/devel.rb ADDED
@@ -0,0 +1,8 @@
1
+ namespace :devel do
2
+ desc "Create launcher"
3
+ task :launcher do
4
+ puts "[INFO] Creating symbolic link into /usr/local/bin"
5
+ basedir = File.join(File.dirname(__FILE__), "..")
6
+ system("sudo ln -s #{basedir}/bin/zettacode /usr/local/bin/zettacode")
7
+ end
8
+ end
data/zcode-scrap ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require_relative "../lib/zettacode/scrap/scrap"
4
+
5
+ scrap = Zettacode::Scrap.new("config/scrap.yaml")
6
+ scrap.load_settings
7
+ scrap.find_langs
@@ -0,0 +1,14 @@
1
+
2
+ |~|~#::
3
+ :61::3:=:20:$==$~$=${~%:2c:~$:20:~$
4
+ :62::3:=:20:$==$~$=${~%::~$$
5
+ :61::2b:=:20:$==$~$=$:62::3:=:20:$==$~$=${{~~~+%::~$
6
+ :61::2:=:20:$==$~$=$:62::3:=:20:$==$~$=${{~~~-%::~$
7
+ :61::2:=:20:$==$~$=$:62::3:=:20:$==$~$=${{~~~*%::~$
8
+ :61::2f:=:20:$==$~$=$:62::3:=:20:$==$~$=${{~~~%::~$
9
+ :61::25:=:20:$==$~$=$:62::3:=:20:$==$~$=${{~~~=%::~$
10
+ {~{:1:-^:u:
11
+ :61::5:=:20:$==$~$$=$:62::3D:=:20:$==$~$=${{~%#::
12
+ }:u:={{=~*{:2:-#::
13
+ }::-{{=~*{:1:-#::^::
14
+ }:::61::5:=:20:$==$~$$=$:62::3D:=:20:$==$~$=${{~%
@@ -0,0 +1,9 @@
1
+ V = I(u())
2
+ V b = I(u())
3
+
4
+ (‘ + b = ’( + b))
5
+ (‘ - b = ’( - b))
6
+ (‘ * b = ’( * b))
7
+ (‘ b = ’( I b))
8
+ (‘ % b = ’( % b))
9
+ (‘ ^ b = ’( ^ b))
@@ -0,0 +1,55 @@
1
+ F c f : O 32 b .
2
+ N qu '-c f.
3
+ b'''Muc:'''b
4
+ T uc f u ( c ) uc
5
+ ( f ) c uc. B u
6
+ uc 32-b . T uc 64-b
7
+ ccu .
8
+ b'''D:'''b
9
+ T (f ) b (c )
10
+ c b qu . T 64-b
11
+ ccu f .
12
+ A 32-b 32-b qu c
13
+ -ub -ub , c.
14
+ T f qu b u f b.
15
+ T .
16
+ * AmcI 04092015
17
+ ARITHINT CSECT
18
+ USING ARITHINT,R12
19
+ LR R12,R15
20
+ ADD L R1,A
21
+ A R1,B 1=+b
22
+ XDECO R1,BUF
23
+ MVI BUF,C'+'
24
+ XPRNT BUF,12
25
+ SUB L R1,A
26
+ S R1,B 1=-b
27
+ XDECO R1,BUF
28
+ MVI BUF,C'-'
29
+ XPRNT BUF,12
30
+ MUL L R1,A
31
+ M R0,B 01=*b
32
+ XDECO R1,BUF 1
33
+ MVI BUF,C'*'
34
+ XPRNT BUF,12
35
+ DIV L R0,A
36
+ SRDA R0,32 f
37
+ D R0,B 1=b 0
38
+ XDECO R1,BUF 1 qu
39
+ MVI BUF,C''
40
+ XPRNT BUF,12
41
+ MOD L R0,A
42
+ SRDA R0,32 f
43
+ D R0,B 1=b 0
44
+ XDECO R0,BUF 0
45
+ MVI BUF,C'R'
46
+ XPRNT BUF,12
47
+ RETURN XR R15,R15
48
+ BR R14
49
+ CNOP 0,4
50
+ A DC F'53'
51
+ B DC F'11'
52
+ BUF DC CL12' '
53
+ YREGS
54
+ END ARITHINT
55
+ Iu c: =53, b=11
@@ -0,0 +1,50 @@
1
+ C c ubu (.. JSR Ac). Scfc OS u f u u f u.
2
+ Amc: PHA u ccumuo d X oo ck
3
+ TXA
4
+ PHA
5
+ JSR GUIu u
6
+ c A B
7
+
8
+ LDA A
9
+ CLC
10
+ ADC B
11
+ JSR DA u
12
+
13
+ ubc
14
+ LDA A
15
+ SEC
16
+ SBC B
17
+ JSR DSubc u
18
+
19
+ uc - f
20
+ LDA A
21
+ LDX B
22
+ Mu: CLC
23
+ ADC A
24
+ DEX
25
+ BNE Mu
26
+ JSR DMu u
27
+
28
+ - u u
29
+ LDA A
30
+ LDX #0
31
+ SEC
32
+ D: INX
33
+ SBC B
34
+ BCS D
35
+ TXA u ccuu
36
+ JSR DD u
37
+
38
+ uu
39
+ LDA A
40
+ SEC
41
+ Muu: SBC B
42
+ BCS Muu
43
+ ADC B
44
+ JSR DMuu u
45
+
46
+ PLA ccuu X f c
47
+ TAX
48
+ PLA
49
+ RTS u f ubu
50
+ T 6502 c f uc, , uu u f uc, , uu b c b z f c.
@@ -0,0 +1,24 @@
1
+ ADD.L D0,D1 dd wo umb
2
+
3
+ SUB.L D1,D0 ubc D1 f D0
4
+
5
+ MULU D0,D1 u u ub. U MULS f ub
6
+
7
+ DIVU D1,D0 D D0 b D1. U DIVS f ub. U b f D0 , qu.
8
+
9
+ MODULUS:
10
+ DIVU D1,D0
11
+ SWAP D0 f 16-b f D0.
12
+ RTS
13
+
14
+ E ' bu c b f uc 6502:
15
+
16
+ Eo:
17
+ D0 D1 . N f c.
18
+ MOVE.L D0,D2
19
+ SUBQ.L #1,D1
20
+ _:
21
+ MULU D0,D2
22
+ DBRA D1,_
23
+ uu D2
24
+ RTS
@@ -0,0 +1,137 @@
1
+ {{ ||Rb P 3B Bu 64 b}}
2
+ ="c64 b"
3
+ * ARM b AARCH64 Rb PI 3B *
4
+ * 64. *
5
+
6
+ *******************************************
7
+ * C f *
8
+ *******************************************
9
+ * f f cu f u AAc64 b*
10
+ .cu "..cuCARM64.c"
11
+
12
+ ***********************
13
+ * Iz *
14
+ ***********************
15
+ .
16
+ zME: .cz " T ub c ! \"
17
+ zRuL: .cz "\"
18
+ zMRu: .cz "u : @ \" u
19
+ MVu: .f 12, 1, ' '
20
+ .cz "\"
21
+ zMA: .cz "A "
22
+ zMSuc: .cz "uc :"
23
+ zMMuc: .cz "uc :"
24
+ zMD: .cz " :"
25
+ zMR: .cz " :"
26
+
27
+ ***********************
28
+ * N Iz *
29
+ ***********************
30
+ .b
31
+ qVu: . 8 8 b
32
+ ZC: . 30
33
+ .
34
+ .b
35
+ :
36
+ f, f - c
37
+ 0,[f] cu ub f c
38
+ c 0,3
39
+ b
40
+ 0,[f,16] f 1 ub
41
+ b cAD
42
+ 3,0
43
+ 0,[f,24] f 2 ub
44
+ b cAD
45
+ 4,0
46
+
47
+ 0,3,4
48
+ 1,qAZC u 0
49
+ b c10S c fuc 2 (0,1)
50
+ 0,qAzMA
51
+ b ffcM
52
+ 0,qAzMRu
53
+ 1,qAZC
54
+ b IACIc u @ cc
55
+ b ffcM
56
+ 0,qAZC
57
+ uc
58
+ ub 0,3,4
59
+ 1,qAZC u 0
60
+ b c10S c fuc 2 (0,1)
61
+ 0,qAzMSuc
62
+ b ffcM
63
+ 0,qAzMRu
64
+ 1,qAZC
65
+ b IACIc u @ cc
66
+ b ffcM
67
+ 0,qAZC
68
+ uc
69
+ u 0,3,4
70
+ 1,qAZC u 0
71
+ b c10S c fuc 2 (0,1)
72
+ 0,qAzMMuc
73
+ b ffcM
74
+ 0,qAzMRu
75
+ 1,qAZC
76
+ b IACIc u @ cc
77
+ b ffcM
78
+ 0,qAZC
79
+
80
+ 0,3
81
+ 1,4
82
+ u 0,3,4 qu
83
+ ub 3,0,4,3 3 = 3 - (0*4)
84
+ 1,qAZC u 0
85
+ b c10S c fuc 2 (0,1)
86
+ 0,qAzMD
87
+ b ffcM
88
+ 0,qAzMRu
89
+ 1,qAZC
90
+ b IACIc u @ cc
91
+ b ffcM
92
+ 0,qAZC
93
+
94
+ 0,3
95
+ 1,qAZC u 0
96
+ b c10S c fuc 2 (0,1)
97
+ 0,qAzMR
98
+ b ffcM
99
+ 0,qAzMRu
100
+ 1,qAZC
101
+ b IACIc u @ cc
102
+ b ffcM
103
+ 0,qAZC
104
+
105
+ 0,0 u c
106
+ b 100f
107
+ :
108
+ 0,qAzME
109
+ b ffcM c fuc 1 (0)
110
+ 0,1 u c
111
+ 100: f
112
+ 8,EXIT qu
113
+ c 0 f c
114
+ qAMVu: .qu MVu
115
+ qAzMRu: .qu zMRu
116
+ qAzME: .qu zME
117
+ qAzMA: .qu zMA
118
+ qAzMSuc: .qu zMSuc
119
+ qAzMMuc: .qu zMMuc
120
+ qAzMD: .qu zMD
121
+ qAzMR: .qu zMR
122
+ qAZC: .qu ZC
123
+ ********************************************************
124
+ * F Icu fc *
125
+ ********************************************************
126
+ * f f cu f u AAc64 b *
127
+ .cu "..cuARM64.c"
128
+
129
+ {{Ouu : }}
130
+ PRE
131
+ @b-bu-64:~643 $ 64 101 25
132
+ A u : +126
133
+ uc :u : +76
134
+ uc :u : +2525
135
+ :u : +4
136
+ :u : +1
137
+ PRE
@@ -0,0 +1,25 @@
1
+ o zz_mc o dd d.
2
+
3
+ " R ub f u.
4
+ c-c b f bc u.
5
+ : _f ,
6
+ _c .
7
+ c-c f bc u.
8
+
9
+ " S u u qu.
10
+ c-c uu.
11
+ %__f_%__%- = 'F Nub: '.
12
+ %__c_%__%- = 'Sc Nub: '.
13
+
14
+ -f-c.
15
+ : _u .
16
+ _u = _f + _c.
17
+ : 'A:', _u.
18
+ _u = _f - _c.
19
+ : 'Subc:', _u.
20
+ _u = _f * _c.
21
+ : 'Muc:', _u.
22
+ _u = _f _c.
23
+ : 'I qu:', _u. " Tuc z.
24
+ _u = _f _c.
25
+ : 'R:', _u.