language_templates 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (518) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.travis.yml +5 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +53 -0
  7. data/Rakefile +6 -0
  8. data/bin/console +14 -0
  9. data/bin/languages/#/0815.0815 +4 -0
  10. data/bin/languages/#/1c-enterprise +2 -0
  11. data/bin/languages/#/2B.2b +1 -0
  12. data/bin/languages/#/4gl.4gl +3 -0
  13. data/bin/languages/#/4test +2 -0
  14. data/bin/languages/#/4thdimension.4dd +4 -0
  15. data/bin/languages/#/~English.ext +2 -0
  16. data/bin/languages/a/ACIDIC.acidic +2 -0
  17. data/bin/languages/a/ACRONYM.acronym +8 -0
  18. data/bin/languages/a/ALAGUF.alaguf +1 -0
  19. data/bin/languages/a/ALGOL-W.algol +3 -0
  20. data/bin/languages/a/Aeolbonn.aeo +2 -0
  21. data/bin/languages/a/Amiga-E.amiga-e +1 -0
  22. data/bin/languages/a/AntLang.ant +1 -0
  23. data/bin/languages/a/abap.abap +6 -0
  24. data/bin/languages/a/abc.abc +1 -0
  25. data/bin/languages/a/acpi +6 -0
  26. data/bin/languages/a/acs.acs +6 -0
  27. data/bin/languages/a/actionscript.as +15 -0
  28. data/bin/languages/a/actionscript2.as +1 -0
  29. data/bin/languages/a/actionscript3.as +32 -0
  30. data/bin/languages/a/actionscript_flashmx.as +12 -0
  31. data/bin/languages/a/ada.ada +5 -0
  32. data/bin/languages/a/advpl +5 -0
  33. data/bin/languages/a/aeolbonn.aeolbonn +2 -0
  34. data/bin/languages/a/agda.agda +4 -0
  35. data/bin/languages/a/aheui.aheui +8 -0
  36. data/bin/languages/a/aime.aime +7 -0
  37. data/bin/languages/a/aiml.aiml +6 -0
  38. data/bin/languages/a/alda.alda +1 -0
  39. data/bin/languages/a/algae.algae +1 -0
  40. data/bin/languages/a/algol60.algol60 +6 -0
  41. data/bin/languages/a/algol68.algol68 +3 -0
  42. data/bin/languages/a/alore.alore +1 -0
  43. data/bin/languages/a/amos +1 -0
  44. data/bin/languages/a/android.java +16 -0
  45. data/bin/languages/a/angelscript +1 -0
  46. data/bin/languages/a/angular.js +2 -0
  47. data/bin/languages/a/ante.ante +1 -0
  48. data/bin/languages/a/apc.apc +4 -0
  49. data/bin/languages/a/apl.apl +2 -0
  50. data/bin/languages/a/applescript.scpt +1 -0
  51. data/bin/languages/a/arduino.ino +4 -0
  52. data/bin/languages/a/arena.are +1 -0
  53. data/bin/languages/a/argh.agh +3 -0
  54. data/bin/languages/a/arnoldc.arnoldc +3 -0
  55. data/bin/languages/a/ash.ash +5 -0
  56. data/bin/languages/a/asp.asp +4 -0
  57. data/bin/languages/a/assembler_6502.asm +22 -0
  58. data/bin/languages/a/assembler_6502appleII.asm +6 -0
  59. data/bin/languages/a/assembler_6502c64.asm +11 -0
  60. data/bin/languages/a/assembler_6809vectrex.asm +33 -0
  61. data/bin/languages/a/assembler_8048_videopac.asm +50 -0
  62. data/bin/languages/a/assembler_DCPU16.asm +45 -0
  63. data/bin/languages/a/assembler_arm.s +14 -0
  64. data/bin/languages/a/assembler_atari2600.asm +194 -0
  65. data/bin/languages/a/assembler_fasm_dos.asm +16 -0
  66. data/bin/languages/a/assembler_ibm360.asm +8 -0
  67. data/bin/languages/a/assembler_intel.asm +24 -0
  68. data/bin/languages/a/assembler_lc-3.asm +6 -0
  69. data/bin/languages/a/assembler_m68000_amigaos.asm +33 -0
  70. data/bin/languages/a/assembler_masm_dos.asm +17 -0
  71. data/bin/languages/a/assembler_masm_win32.asm +35 -0
  72. data/bin/languages/a/assembler_masm_win64.asm +33 -0
  73. data/bin/languages/a/assembler_mips.asm +9 -0
  74. data/bin/languages/a/assembler_mmix.asm +9 -0
  75. data/bin/languages/a/assembler_nasm_freebsd.asm +31 -0
  76. data/bin/languages/a/assembler_nasm_linux.asm +20 -0
  77. data/bin/languages/a/assembler_nasm_linux64.asm +20 -0
  78. data/bin/languages/a/assembler_tasm_dos.asm +20 -0
  79. data/bin/languages/a/assembler_tms9900_ti99_4a.asm +44 -0
  80. data/bin/languages/a/assembler_vax_ultrix.asm +13 -0
  81. data/bin/languages/a/assembler_z80_knightos.asm +18 -0
  82. data/bin/languages/a/assembler_z80_ti83calculator.asm +20 -0
  83. data/bin/languages/a/assembler_z80_zxspectrum.asm +21 -0
  84. data/bin/languages/a/autohotkey.ahk +1 -0
  85. data/bin/languages/a/autoit.au3 +1 -0
  86. data/bin/languages/a/awk.awk +2 -0
  87. data/bin/languages/b/B.b +10 -0
  88. data/bin/languages/b/BCPL.bcl +6 -0
  89. data/bin/languages/b/BIT.bit +81 -0
  90. data/bin/languages/b/BLC.Blc +1 -0
  91. data/bin/languages/b/BRZRK.brzrk +1 -0
  92. data/bin/languages/b/BennuGD +6 -0
  93. data/bin/languages/b/BitBitJump.bbj +13 -0
  94. data/bin/languages/b/BlackRum.br +1 -0
  95. data/bin/languages/b/Brainloller.png +0 -0
  96. data/bin/languages/b/bash.bash +3 -0
  97. data/bin/languages/b/basic.bas +2 -0
  98. data/bin/languages/b/batch.bat +3 -0
  99. data/bin/languages/b/batsh.batsh +1 -0
  100. data/bin/languages/b/battlestar.bts +3 -0
  101. data/bin/languages/b/beatnik.beatnik +89 -0
  102. data/bin/languages/b/befunge.be +1 -0
  103. data/bin/languages/b/beta.bet +4 -0
  104. data/bin/languages/b/blitz3d.bb +4 -0
  105. data/bin/languages/b/blub.blub +13 -0
  106. data/bin/languages/b/boo.boo +1 -0
  107. data/bin/languages/b/brainf-ck-2d.bf2d +94 -0
  108. data/bin/languages/b/brainf-ck.bf +1 -0
  109. data/bin/languages/b/broccoli.brocc +1 -0
  110. data/bin/languages/b/burlesque.burlesque +1 -0
  111. data/bin/languages/b/byter.byter +16 -0
  112. data/bin/languages/c/Casio BASIC +1 -0
  113. data/bin/languages/c/ContinuesEquation.ce +1 -0
  114. data/bin/languages/c/c++.cpp +9 -0
  115. data/bin/languages/c/c.c +6 -0
  116. data/bin/languages/c/caml.ml +1 -0
  117. data/bin/languages/c/cardinal.cardinal +1 -0
  118. data/bin/languages/c/cat.cat +1 -0
  119. data/bin/languages/c/centura.centura +10 -0
  120. data/bin/languages/c/ceylon.ceylon +3 -0
  121. data/bin/languages/c/cgi.c +16 -0
  122. data/bin/languages/c/chapel.chpl +1 -0
  123. data/bin/languages/c/cheddar.cheddar +1 -0
  124. data/bin/languages/c/chef.ch +65 -0
  125. data/bin/languages/c/chicken.chicken +59 -0
  126. data/bin/languages/c/cil.il +10 -0
  127. data/bin/languages/c/clean.icl +3 -0
  128. data/bin/languages/c/clipper.clipper +1 -0
  129. data/bin/languages/c/clipper.prg +1 -0
  130. data/bin/languages/c/clips.clips +8 -0
  131. data/bin/languages/c/clisp.lisp +1 -0
  132. data/bin/languages/c/clojure.clj +1 -0
  133. data/bin/languages/c/cobol.cbl +6 -0
  134. data/bin/languages/c/coconut.coc +1 -0
  135. data/bin/languages/c/coffeescript.coffee +1 -0
  136. data/bin/languages/c/coldfusion.cfm +2 -0
  137. data/bin/languages/c/common-lisp.lisp +4 -0
  138. data/bin/languages/c/cool.cl +5 -0
  139. data/bin/languages/c/cor.cor +1 -0
  140. data/bin/languages/c/crystal.cr +1 -0
  141. data/bin/languages/c/csh.csh +2 -0
  142. data/bin/languages/c/csharp.cs +5 -0
  143. data/bin/languages/c/css.css +3 -0
  144. data/bin/languages/c/cypherNeo4j.cypher +3 -0
  145. data/bin/languages/c/hello-world.curry +7 -0
  146. data/bin/languages/d/DCL +1 -0
  147. data/bin/languages/d/DNA#.dna +124 -0
  148. data/bin/languages/d/DNA-Sharp.dna +125 -0
  149. data/bin/languages/d/DOGO.dogo +32 -0
  150. data/bin/languages/d/DUP.dup +2 -0
  151. data/bin/languages/d/Dart.dart +3 -0
  152. data/bin/languages/d/Decimal.dec +18 -0
  153. data/bin/languages/d/Drive-In Window.diw +41 -0
  154. data/bin/languages/d/Dyvil.dyv +4 -0
  155. data/bin/languages/d/d.d +7 -0
  156. data/bin/languages/d/dark.txt +12 -0
  157. data/bin/languages/d/db2.sql +1 -0
  158. data/bin/languages/d/dc.dc +2 -0
  159. data/bin/languages/d/dd_dd.dd +1 -0
  160. data/bin/languages/d/delphi.delphi +8 -0
  161. data/bin/languages/d/delphi.pas +6 -0
  162. data/bin/languages/d/dis.dis +11 -0
  163. data/bin/languages/d/divzeros.dz +1 -0
  164. data/bin/languages/d/dogescript.djs +3 -0
  165. data/bin/languages/d/dos.bat +1 -0
  166. data/bin/languages/d/dtrace.d +5 -0
  167. data/bin/languages/d/dylan.dl +5 -0
  168. data/bin/languages/e/EOOOL.eoool +1 -0
  169. data/bin/languages/e/Eiffel.eiff +18 -0
  170. data/bin/languages/e/EmacsLisp.el +3 -0
  171. data/bin/languages/e/ebuild.ebuild +19 -0
  172. data/bin/languages/e/elixir.ex +1 -0
  173. data/bin/languages/e/elixir.exs +2 -0
  174. data/bin/languages/e/emmental.emmental +1 -0
  175. data/bin/languages/e/emojicode.emojic +6 -0
  176. data/bin/languages/e/emoticon.emoticon +1 -0
  177. data/bin/languages/e/erlang_hw.erl +5 -0
  178. data/bin/languages/e/hello-html.elm +4 -0
  179. data/bin/languages/f/factor.factor +3 -0
  180. data/bin/languages/f/falcon.fal +3 -0
  181. data/bin/languages/f/false.f +2 -0
  182. data/bin/languages/f/fancy.fy +1 -0
  183. data/bin/languages/f/fantom.fan +6 -0
  184. data/bin/languages/f/ferite.fe +2 -0
  185. data/bin/languages/f/fish.fish +2 -0
  186. data/bin/languages/f/fjoelnir.fjo +11 -0
  187. data/bin/languages/f/fob.fob +1 -0
  188. data/bin/languages/f/focal.fc +1 -0
  189. data/bin/languages/f/fog.fog.md +1 -0
  190. data/bin/languages/f/foo.foo +1 -0
  191. data/bin/languages/f/forobj.forobj +1 -0
  192. data/bin/languages/f/forth.fth +1 -0
  193. data/bin/languages/f/fortob.fortob +2 -0
  194. data/bin/languages/f/fortran.f90 +3 -0
  195. data/bin/languages/f/fortran77.f77 +3 -0
  196. data/bin/languages/f/fourier.fourier +1 -0
  197. data/bin/languages/f/fsharp.fs +1 -0
  198. data/bin/languages/g/GASOIL.gasoil +2 -0
  199. data/bin/languages/g/Green-Marl.gm +3 -0
  200. data/bin/languages/g/GridScript.gridscript +7 -0
  201. data/bin/languages/g/gammaplex.gammaplex +1 -0
  202. data/bin/languages/g/gecho.gecho +1 -0
  203. data/bin/languages/g/gentzen.gentzen +5 -0
  204. data/bin/languages/g/geojson.geojson +1 -0
  205. data/bin/languages/g/gibberish.gibberish +2 -0
  206. data/bin/languages/g/glass.glass +1 -0
  207. data/bin/languages/g/go.go +7 -0
  208. data/bin/languages/g/golfscript.golfscript +1 -0
  209. data/bin/languages/g/golo.golo +5 -0
  210. data/bin/languages/g/googleappscript.gs +3 -0
  211. data/bin/languages/g/gosu.gosu +1 -0
  212. data/bin/languages/g/gosu.gs +1 -0
  213. data/bin/languages/g/gri.gri +1 -0
  214. data/bin/languages/g/grin.grin +1 -0
  215. data/bin/languages/g/groovy.groovy +1 -0
  216. data/bin/languages/h/HEX.hex +4 -0
  217. data/bin/languages/h/HOP +6 -0
  218. data/bin/languages/h/Higher Subleq.higher_subleq +5 -0
  219. data/bin/languages/h/hack.hh +2 -0
  220. data/bin/languages/h/haskell.hs +3 -0
  221. data/bin/languages/h/haxe.hx +5 -0
  222. data/bin/languages/h/hexish.hexish +1 -0
  223. data/bin/languages/h/hodor.hd +1 -0
  224. data/bin/languages/h/hollow.hollow +1 -0
  225. data/bin/languages/h/homespring.homespring +3 -0
  226. data/bin/languages/h/hq9+.h +1 -0
  227. data/bin/languages/h/html.html +9 -0
  228. data/bin/languages/h/hy.hy +1 -0
  229. data/bin/languages/h/hypertalk.ht +1 -0
  230. data/bin/languages/i/IDL +2 -0
  231. data/bin/languages/i/INCAL.incal +2 -0
  232. data/bin/languages/i/ISLISP.lisp +1 -0
  233. data/bin/languages/i/IcedCoffeeScript.ics +1 -0
  234. data/bin/languages/i/InDec.indec +17 -0
  235. data/bin/languages/i/Io.Io +1 -0
  236. data/bin/languages/i/ibm1401 +2 -0
  237. data/bin/languages/i/ici.ici +1 -0
  238. data/bin/languages/i/icon.icn +3 -0
  239. data/bin/languages/i/idris.idr +4 -0
  240. data/bin/languages/i/il.il +52 -0
  241. data/bin/languages/i/inform.inform +5 -0
  242. data/bin/languages/i/ink.ink +1 -0
  243. data/bin/languages/i/intercal.i +16 -0
  244. data/bin/languages/i/ioke.ik +1 -0
  245. data/bin/languages/i/irc +1 -0
  246. data/bin/languages/i/iscom.iscom +1 -0
  247. data/bin/languages/j/JSF*ck.js +1 -0
  248. data/bin/languages/j/JSONiq +1 -0
  249. data/bin/languages/j/Jasmin.j +10 -0
  250. data/bin/languages/j/Java.java +5 -0
  251. data/bin/languages/j/j.ijs +3 -0
  252. data/bin/languages/j/jade.jade +5 -0
  253. data/bin/languages/j/jai.jai +7 -0
  254. data/bin/languages/j/jason.mas2j +2 -0
  255. data/bin/languages/j/javascript.js +1 -0
  256. data/bin/languages/j/jess.cpl +1 -0
  257. data/bin/languages/j/json.json +1 -0
  258. data/bin/languages/j/jsx.js +8 -0
  259. data/bin/languages/j/julia.jl +1 -0
  260. data/bin/languages/k/KimL.kiml +1 -0
  261. data/bin/languages/k/k.k +1 -0
  262. data/bin/languages/k/karel.kl +4 -0
  263. data/bin/languages/k/kipple.kipple +1 -0
  264. data/bin/languages/k/kitten.ktn +1 -0
  265. data/bin/languages/k/kotlin.kt +5 -0
  266. data/bin/languages/k/ksh.ksh +2 -0
  267. data/bin/languages/l/LNUSP.lnusp +51 -0
  268. data/bin/languages/l/LOLA.lola +23 -0
  269. data/bin/languages/l/LaTeX.tex +4 -0
  270. data/bin/languages/l/LazyK.lazy +10 -0
  271. data/bin/languages/l/labyrinth.labyrinth +2 -0
  272. data/bin/languages/l/leszek.leszek +1 -0
  273. data/bin/languages/l/limbo.b +16 -0
  274. data/bin/languages/l/lisaac.li +15 -0
  275. data/bin/languages/l/lisp.lsp +6 -0
  276. data/bin/languages/l/livescript.ls +1 -0
  277. data/bin/languages/l/llvm.ll +14 -0
  278. data/bin/languages/l/logical.logical +1 -0
  279. data/bin/languages/l/logo.lg +1 -0
  280. data/bin/languages/l/lolcode.lol +4 -0
  281. data/bin/languages/l/lolpython.lol +1 -0
  282. data/bin/languages/l/lsl.lsl +7 -0
  283. data/bin/languages/l/lua.lua +1 -0
  284. data/bin/languages/m/Mmmm().mmmm +60 -0
  285. data/bin/languages/m/m4.m4 +1 -0
  286. data/bin/languages/m/macsyma.mac +2 -0
  287. data/bin/languages/m/magic +3 -0
  288. data/bin/languages/m/malbolge.mbg +2 -0
  289. data/bin/languages/m/markdown.md +1 -0
  290. data/bin/languages/m/mathematica-online.nb +3 -0
  291. data/bin/languages/m/matlab.m +1 -0
  292. data/bin/languages/m/maxscript.ms +7 -0
  293. data/bin/languages/m/mel.mel +4 -0
  294. data/bin/languages/m/meq.meq +1 -0
  295. data/bin/languages/m/mercury.m +8 -0
  296. data/bin/languages/m/mirc.mrc +1 -0
  297. data/bin/languages/m/modula-2.mod +10 -0
  298. data/bin/languages/m/modula-3.m3 +5 -0
  299. data/bin/languages/m/mongo.shell +1 -0
  300. data/bin/languages/m/moonscript.moon +1 -0
  301. data/bin/languages/m/morsecode +1 -0
  302. data/bin/languages/m/mouse.mse +3 -0
  303. data/bin/languages/m/move.mv +1 -0
  304. data/bin/languages/m/mozart.oz +8 -0
  305. data/bin/languages/m/muf.muf +3 -0
  306. data/bin/languages/m/mumps.m +1 -0
  307. data/bin/languages/m/mushcode.mush +1 -0
  308. data/bin/languages/m/myrddin.myr +6 -0
  309. data/bin/languages/m/mysql.sql +1 -0
  310. data/bin/languages/n/neko.neko +1 -0
  311. data/bin/languages/n/nemerle.n +7 -0
  312. data/bin/languages/n/newtonscript.nwt +15 -0
  313. data/bin/languages/n/nice.nice +3 -0
  314. data/bin/languages/n/nim.nim +1 -0
  315. data/bin/languages/n/nit.nit +2 -0
  316. data/bin/languages/n/node.js +1 -0
  317. data/bin/languages/n/nodejs.js +3 -0
  318. data/bin/languages/n/novice.novice +3 -0
  319. data/bin/languages/n/nu.nu +1 -0
  320. data/bin/languages/n/nxc.nxc +4 -0
  321. data/bin/languages/o/ObjectStar +1 -0
  322. data/bin/languages/o/OpenLaszlo.lzx +3 -0
  323. data/bin/languages/o/Orc.orc +10 -0
  324. data/bin/languages/o/oberon-2.obn +6 -0
  325. data/bin/languages/o/oberon.o +8 -0
  326. data/bin/languages/o/obix.osc +1 -0
  327. data/bin/languages/o/obj.st +1 -0
  328. data/bin/languages/o/objc.m +14 -0
  329. data/bin/languages/o/objective-j.j +1 -0
  330. data/bin/languages/o/ocaml.ml +1 -0
  331. data/bin/languages/o/octave.octave +2 -0
  332. data/bin/languages/o/omgrofl.omgrofl +23 -0
  333. data/bin/languages/o/ooc.ooc +4 -0
  334. data/bin/languages/o/ook.ok +19 -0
  335. data/bin/languages/o/opa.opa +1 -0
  336. data/bin/languages/o/oraclesql.sql +1 -0
  337. data/bin/languages/o/oz.oz +1 -0
  338. data/bin/languages/p/hello_world.pl1 +4 -0
  339. data/bin/languages/p/parenthetic.p +13 -0
  340. data/bin/languages/p/pascal.p +5 -0
  341. data/bin/languages/p/pawn.p +5 -0
  342. data/bin/languages/p/pb.pwr +5 -0
  343. data/bin/languages/p/pbwin.bas +8 -0
  344. data/bin/languages/p/pebble.c +51 -0
  345. data/bin/languages/p/perl.cgi +9 -0
  346. data/bin/languages/p/perl.pl +2 -0
  347. data/bin/languages/p/perl6.p6 +6 -0
  348. data/bin/languages/p/perseus.p++ +10 -0
  349. data/bin/languages/p/pharo.st +1 -0
  350. data/bin/languages/p/php.php +3 -0
  351. data/bin/languages/p/picat.pi +2 -0
  352. data/bin/languages/p/piet.png +0 -0
  353. data/bin/languages/p/pig.pig +1 -0
  354. data/bin/languages/p/pike.pike +4 -0
  355. data/bin/languages/p/pit.pit +326 -0
  356. data/bin/languages/p/pizza.pizza +5 -0
  357. data/bin/languages/p/please_porige_hot.pph +1 -0
  358. data/bin/languages/p/plsql.sql +4 -0
  359. data/bin/languages/p/pluvo.pvo +1 -0
  360. data/bin/languages/p/polynomial.pol +1 -0
  361. data/bin/languages/p/pony.pony +3 -0
  362. data/bin/languages/p/postgresql.sql +1 -0
  363. data/bin/languages/p/postscript.ps +2 -0
  364. data/bin/languages/p/postscript_page.ps +11 -0
  365. data/bin/languages/p/posxml.posxml +1 -0
  366. data/bin/languages/p/potigol.poti +1 -0
  367. data/bin/languages/p/powershell.ps1 +1 -0
  368. data/bin/languages/p/processing.pde +5 -0
  369. data/bin/languages/p/prolog.pro +4 -0
  370. data/bin/languages/p/purebasic.pb +3 -0
  371. data/bin/languages/p/purescript.purs +5 -0
  372. data/bin/languages/p/pyret.arr +1 -0
  373. data/bin/languages/p/python.py +2 -0
  374. data/bin/languages/p/python3.py +2 -0
  375. data/bin/languages/q/Qbasic.bas +2 -0
  376. data/bin/languages/q/QuakeC.qc +1 -0
  377. data/bin/languages/q/QuartzComposer.qtz +233 -0
  378. data/bin/languages/q/q.q +1 -0
  379. data/bin/languages/q/qore.q +13 -0
  380. data/bin/languages/q/qu.qu +2 -0
  381. data/bin/languages/q/qugord.qugord +2 -0
  382. data/bin/languages/q/qwerty.qwerty +6 -0
  383. data/bin/languages/r/R.R +1 -0
  384. data/bin/languages/r/racket.rkt +2 -0
  385. data/bin/languages/r/radixal.radixal +2 -0
  386. data/bin/languages/r/ratfor.ratfor +2 -0
  387. data/bin/languages/r/reStructuredText.rst +4 -0
  388. data/bin/languages/r/react.js +3 -0
  389. data/bin/languages/r/reason.re +1 -0
  390. data/bin/languages/r/rebol.r +1 -0
  391. data/bin/languages/r/recurse.recurse +30 -0
  392. data/bin/languages/r/rexx.rexx +2 -0
  393. data/bin/languages/r/richtea.tea +1 -0
  394. data/bin/languages/r/roco.roco +14 -0
  395. data/bin/languages/r/roy.roy +1 -0
  396. data/bin/languages/r/ruby.rb +2 -0
  397. data/bin/languages/r/rust.rs +3 -0
  398. data/bin/languages/s/S-algol +2 -0
  399. data/bin/languages/s/SIL.SIL +1 -0
  400. data/bin/languages/s/SendStuff.ss +13 -0
  401. data/bin/languages/s/hello.st +1 -0
  402. data/bin/languages/s/sacred.sacred +1 -0
  403. data/bin/languages/s/sal.s +5 -0
  404. data/bin/languages/s/sas.sas +5 -0
  405. data/bin/languages/s/sather.sa +7 -0
  406. data/bin/languages/s/scala.scala +3 -0
  407. data/bin/languages/s/scheme.scm +1 -0
  408. data/bin/languages/s/schwift.y +1 -0
  409. data/bin/languages/s/scilab.scilab +3 -0
  410. data/bin/languages/s/scratch.sb +0 -0
  411. data/bin/languages/s/sed.sed +4 -0
  412. data/bin/languages/s/self.self +1 -0
  413. data/bin/languages/s/semicolon +13 -0
  414. data/bin/languages/s/shakespeare.spl +89 -0
  415. data/bin/languages/s/shell.sh +2 -0
  416. data/bin/languages/s/shen.shen +1 -0
  417. data/bin/languages/s/simpl+.usp +5 -0
  418. data/bin/languages/s/simula.sim +4 -0
  419. data/bin/languages/s/slashes.slashes +1 -0
  420. data/bin/languages/s/smali.smali +15 -0
  421. data/bin/languages/s/smalltalk.sm +1 -0
  422. data/bin/languages/s/smil.smil +13 -0
  423. data/bin/languages/s/sml.sml +1 -0
  424. data/bin/languages/s/snowman.sm +1 -0
  425. data/bin/languages/s/soupscript.script +3 -0
  426. data/bin/languages/s/sparql.sparql +3 -0
  427. data/bin/languages/s/spoon.spoon +1 -0
  428. data/bin/languages/s/spss.spss +3 -0
  429. data/bin/languages/s/sql.sql +4 -0
  430. data/bin/languages/s/squirrel.nut +1 -0
  431. data/bin/languages/s/standard-ml.sml +3 -0
  432. data/bin/languages/s/stanza.stanza +2 -0
  433. data/bin/languages/s/streem.strm +1 -0
  434. data/bin/languages/s/stuck.stuck +1 -0
  435. data/bin/languages/s/stuck_0byte.stuck +1 -0
  436. data/bin/languages/s/subleq.sq +8 -0
  437. data/bin/languages/s/supercollider.sc +1 -0
  438. data/bin/languages/s/svg.svg +9 -0
  439. data/bin/languages/s/swift.swift +1 -0
  440. data/bin/languages/s/systemtap.stp +1 -0
  441. data/bin/languages/t/TTCN3.ttcn +7 -0
  442. data/bin/languages/t/Tao-Presentations.ddd +68 -0
  443. data/bin/languages/t/TapeBagel.tb +8 -0
  444. data/bin/languages/t/TeX.tex +2 -0
  445. data/bin/languages/t/TrumpScript.py +2 -0
  446. data/bin/languages/t/Turing.t +1 -0
  447. data/bin/languages/t/images/earth.bmp +0 -0
  448. data/bin/languages/t/images/milkyway.jpg +0 -0
  449. data/bin/languages/t/plain-text.txt +1 -0
  450. data/bin/languages/t/tcl.tcl +1 -0
  451. data/bin/languages/t/tcsh.tcsh +2 -0
  452. data/bin/languages/t/telephone +2 -0
  453. data/bin/languages/t/thp.hrp +6 -0
  454. data/bin/languages/t/thue.th +4 -0
  455. data/bin/languages/t/tibasic.ti +3 -0
  456. data/bin/languages/t/tk.tk +2 -0
  457. data/bin/languages/t/tri.tri +10 -0
  458. data/bin/languages/t/trollscript.troll +2 -0
  459. data/bin/languages/t/tsql.sql +3 -0
  460. data/bin/languages/t/turing.oot +1 -0
  461. data/bin/languages/t/typescript.ts +1 -0
  462. data/bin/languages/u/Ubercode.cls +8 -0
  463. data/bin/languages/u/ubiquity.ubiquity +3 -0
  464. data/bin/languages/u/umajin.u +2 -0
  465. data/bin/languages/u/unicomal.lst +1 -0
  466. data/bin/languages/u/unlambda.unl +1 -0
  467. data/bin/languages/v/V +1 -0
  468. data/bin/languages/v/Vowels.vw +17 -0
  469. data/bin/languages/v/vala.vala +5 -0
  470. data/bin/languages/v/vbnet.vb +5 -0
  471. data/bin/languages/v/verbose.verbose +25 -0
  472. data/bin/languages/v/verbosefuck.vbfk +160 -0
  473. data/bin/languages/v/verilog.v +7 -0
  474. data/bin/languages/v/verve.vrv +1 -0
  475. data/bin/languages/v/vhdl.vhdl +13 -0
  476. data/bin/languages/v/vi +15 -0
  477. data/bin/languages/v/vimscript.vim +1 -0
  478. data/bin/languages/v/virgil.v3 +3 -0
  479. data/bin/languages/v/visualbasic.vb +5 -0
  480. data/bin/languages/v/visualbasicscript.vbs +1 -0
  481. data/bin/languages/v/visualfoxpro.prg +17 -0
  482. data/bin/languages/v/vms.vms +4 -0
  483. data/bin/languages/v/vrml.wrl +6 -0
  484. data/bin/languages/w/wheat.wheat +6 -0
  485. data/bin/languages/w/whenever.whenever +1 -0
  486. data/bin/languages/w/whirl.wr +12 -0
  487. data/bin/languages/w/whitespace.ws +26 -0
  488. data/bin/languages/w/wml.wml +6 -0
  489. data/bin/languages/w/wolframlanguage.wl +1 -0
  490. data/bin/languages/w/wren.wren +1 -0
  491. data/bin/languages/w/wsh.vbs +2 -0
  492. data/bin/languages/x/XRF.xrf +12 -0
  493. data/bin/languages/x/x-D.xd +2 -0
  494. data/bin/languages/x/xbase++.prg +3 -0
  495. data/bin/languages/x/xbase.dbf +3 -0
  496. data/bin/languages/x/xl.xl +2 -0
  497. data/bin/languages/x/xlogo.lgo +53 -0
  498. data/bin/languages/x/xml.xml +2 -0
  499. data/bin/languages/x/xpl0.xpl +2 -0
  500. data/bin/languages/x/xquery.xq +2 -0
  501. data/bin/languages/x/xslt.xslt +6 -0
  502. data/bin/languages/x/xul.xul +4 -0
  503. data/bin/languages/y/Y.y +10 -0
  504. data/bin/languages/y/yaml.yaml +1 -0
  505. data/bin/languages/y/yolang.yo +1 -0
  506. data/bin/languages/z/zbd +1 -0
  507. data/bin/languages/z/zepto.zp +1 -0
  508. data/bin/languages/z/zetaplex.zeta +9 -0
  509. data/bin/languages/z/zim.zim +1 -0
  510. data/bin/languages/z/zimbu.zu +4 -0
  511. data/bin/languages/z/zombie.zombie +6 -0
  512. data/bin/languages/z/zonnon.znn +4 -0
  513. data/bin/languages/z/zsh.zsh +2 -0
  514. data/bin/setup +8 -0
  515. data/language_templates.gemspec +36 -0
  516. data/lib/language_templates/version.rb +3 -0
  517. data/lib/language_templates.rb +529 -0
  518. metadata +604 -0
@@ -0,0 +1,194 @@
1
+ ;
2
+ ; hello.asm
3
+ ;
4
+ ; A "Hello, World!" which illustrates an Atari 2600 programming
5
+ ; introduction talk (slides at http://slideshare.net/chesterbr).
6
+ ;
7
+ ; This is free software (see license below). Build it with DASM
8
+ ; (http://dasm-dillon.sourceforge.net/), by running:
9
+ ;
10
+ ; dasm hello.asm -ohello.bin -f3
11
+ ;
12
+
13
+ PROCESSOR 6502
14
+ INCLUDE "vcs.h"
15
+
16
+ ORG $F000 ; Start of "cart area" (see Atari memory map)
17
+
18
+ StartFrame:
19
+ lda #%00000010 ; Vertical sync is signaled by VSYNC's bit 1...
20
+ sta VSYNC
21
+ REPEAT 3 ; ...and lasts 3 scanlines
22
+ sta WSYNC ; (WSYNC write => wait for end of scanline)
23
+ REPEND
24
+ lda #0
25
+ sta VSYNC ; Signal vertical sync by clearing the bit
26
+
27
+ PreparePlayfield: ; We'll use the first VBLANK scanline for setup
28
+ lda #$00 ; (could have done it before, just once)
29
+ sta ENABL ; Turn off ball, missiles and players
30
+ sta ENAM0
31
+ sta ENAM1
32
+ sta GRP0
33
+ sta GRP1
34
+ sta COLUBK ; Background color (black)
35
+ sta PF0 ; PF0 and PF2 will be "off" (we'll focus on PF1)...
36
+ sta PF2
37
+ lda #$FF ; Playfield collor (yellow-ish)
38
+ sta COLUPF
39
+ lda #$00 ; Ensure we will duplicate (and not reflect) PF
40
+ sta CTRLPF
41
+ ldx #0 ; X will count visible scanlines, let's reset it
42
+ REPEAT 37 ; Wait until this (and the other 36) vertical blank
43
+ sta WSYNC ; scanlines are finished
44
+ REPEND
45
+ lda #0 ; Vertical blank is done, we can "turn on" the beam
46
+ sta VBLANK
47
+
48
+ Scanline:
49
+ cpx #174 ; "HELLO WORLD" = (11 chars x 8 lines - 1) x 2 scanlines =
50
+ bcs ScanlineEnd ; 174 (0 to 173). After that, skip drawing code
51
+ txa ; We want each byte of the hello world phrase on 2 scanlines,
52
+ lsr ; which means Y (bitmap counter) = X (scanline counter) / 2.
53
+ tay ; For division by two we use (A-only) right-shift
54
+ lda Phrase,y ; "Phrase,Y" = mem(Phrase+Y) (Y-th address after Phrase)
55
+ sta PF1 ; Put the value on PF bits 4-11 (0-3 is PF0, 12-15 is PF2)
56
+ ScanlineEnd:
57
+ sta WSYNC ; Wait for scanline end
58
+ inx ; Increase counter; repeat untill we got all kernel scanlines
59
+ cpx #191
60
+ bne Scanline
61
+
62
+ Overscan:
63
+ lda #%01000010 ; "turn off" the beam again...
64
+ sta VBLANK ;
65
+ REPEAT 30 ; ...for 30 overscan scanlines...
66
+ sta WSYNC
67
+ REPEND
68
+ jmp StartFrame ; ...and start it over!
69
+
70
+ Phrase:
71
+ .BYTE %00000000 ; H
72
+ .BYTE %01000010
73
+ .BYTE %01111110
74
+ .BYTE %01000010
75
+ .BYTE %01000010
76
+ .BYTE %01000010
77
+ .BYTE %00000000
78
+ .BYTE %00000000 ; E
79
+ .BYTE %01111110
80
+ .BYTE %01000000
81
+ .BYTE %01111100
82
+ .BYTE %01000000
83
+ .BYTE %01000000
84
+ .BYTE %01111110
85
+ .BYTE %00000000
86
+ .BYTE %00000000 ; L
87
+ .BYTE %01000000
88
+ .BYTE %01000000
89
+ .BYTE %01000000
90
+ .BYTE %01000000
91
+ .BYTE %01000000
92
+ .BYTE %01111110
93
+ .BYTE %00000000
94
+ .BYTE %00000000 ; L
95
+ .BYTE %01000000
96
+ .BYTE %01000000
97
+ .BYTE %01000000
98
+ .BYTE %01000000
99
+ .BYTE %01000000
100
+ .BYTE %01111110
101
+ .BYTE %00000000 ; O
102
+ .BYTE %00000000
103
+ .BYTE %00111100
104
+ .BYTE %01000010
105
+ .BYTE %01000010
106
+ .BYTE %01000010
107
+ .BYTE %01000010
108
+ .BYTE %00111100
109
+ .BYTE %00000000
110
+ .BYTE %00000000 ; white space
111
+ .BYTE %00000000
112
+ .BYTE %00000000
113
+ .BYTE %00000000
114
+ .BYTE %00000000
115
+ .BYTE %00000000
116
+ .BYTE %00000000
117
+ .BYTE %00000000
118
+ .BYTE %00000000 ; W
119
+ .BYTE %01000010
120
+ .BYTE %01000010
121
+ .BYTE %01000010
122
+ .BYTE %01000010
123
+ .BYTE %01011010
124
+ .BYTE %00100100
125
+ .BYTE %00000000
126
+ .BYTE %00000000 ; O
127
+ .BYTE %00111100
128
+ .BYTE %01000010
129
+ .BYTE %01000010
130
+ .BYTE %01000010
131
+ .BYTE %01000010
132
+ .BYTE %00111100
133
+ .BYTE %00000000
134
+ .BYTE %00000000 ; R
135
+ .BYTE %01111100
136
+ .BYTE %01000010
137
+ .BYTE %01000010
138
+ .BYTE %01111100
139
+ .BYTE %01000100
140
+ .BYTE %01000010
141
+ .BYTE %00000000
142
+ .BYTE %00000000 ; L
143
+ .BYTE %01000000
144
+ .BYTE %01000000
145
+ .BYTE %01000000
146
+ .BYTE %01000000
147
+ .BYTE %01000000
148
+ .BYTE %01111110
149
+ .BYTE %00000000
150
+ .BYTE %00000000 ; D
151
+ .BYTE %01111000
152
+ .BYTE %01000100
153
+ .BYTE %01000010
154
+ .BYTE %01000010
155
+ .BYTE %01000100
156
+ .BYTE %01111000
157
+ .BYTE %00000000 ; Last byte written to PF1 (important, ensures lower tip
158
+ ; of letter "D" won't "bleeed")
159
+
160
+ ORG $FFFA ; Cart config (so 6502 can start it up)
161
+
162
+ .WORD StartFrame ; NMI
163
+ .WORD StartFrame ; RESET
164
+ .WORD StartFrame ; IRQ
165
+
166
+ END
167
+
168
+ ;
169
+ ; Copyright 2011-2013 Carlos Duarte do Nascimento (Chester). All rights reserved.
170
+ ;
171
+ ; Redistribution and use in source and binary forms, with or without modification, are
172
+ ; permitted provided that the following conditions are met:
173
+ ;
174
+ ; 1. Redistributions of source code must retain the above copyright notice, this list of
175
+ ; conditions and the following disclaimer.
176
+ ;
177
+ ; 2. Redistributions in binary form must reproduce the above copyright notice, this list
178
+ ; of conditions and the following disclaimer in the documentation and/or other materials
179
+ ; provided with the distribution.
180
+ ;
181
+ ; THIS SOFTWARE IS PROVIDED BY CHESTER ''AS IS'' AND ANY EXPRESS OR IMPLIED
182
+ ; WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
183
+ ; FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR
184
+ ; CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
185
+ ; CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
186
+ ; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
187
+ ; ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
188
+ ; NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
189
+ ; ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
190
+ ;
191
+ ; The views and conclusions contained in the software and documentation are those of the
192
+ ; authors and should not be interpreted as representing official policies, either expressed
193
+ ; or implied, of Chester.
194
+ ;
@@ -0,0 +1,16 @@
1
+ format MZ
2
+
3
+ entry .code: start
4
+
5
+ segment .code
6
+ start:
7
+ mov ax, .data ; put data segment into ax
8
+ mov ds, ax ; there, I setup the DS for you
9
+ mov dx, msg ; now I give you the offset in DX. DS:DX now completed.
10
+ mov ah, 9h
11
+ int 21h
12
+ mov ah, 4ch
13
+ int 21h
14
+
15
+ segment .data
16
+ msg db 'Hello World', '$'
@@ -0,0 +1,8 @@
1
+ LA 1,MSGAREA Point Register 1 to message area
2
+ SVC 35 Invoke SVC 35 (Write to Operator)
3
+ BR 14 Return
4
+ MSGAREA EQU * Message Area
5
+ DC AL2(19) Total area length = 19 (Prefix length:4 + Data Length:15)
6
+ DC XL2'00' 2 bytes binary of zeros
7
+ DC C'Hello world!' Text to be written to system console
8
+ END
@@ -0,0 +1,24 @@
1
+ ; hello_world.asm intel
2
+
3
+ .model small
4
+
5
+ .stack 100h
6
+
7
+ .data
8
+ msg db "Hello World!",'$'
9
+
10
+ .code
11
+ main proc
12
+ mov ax,@data
13
+ mov ds, ax
14
+
15
+ ; hello-world is there
16
+ mov dx,offset msg
17
+ mov ah,09
18
+ int 21h
19
+
20
+ mov ax,4c00h
21
+ int 21h
22
+
23
+ main endp
24
+ end main
@@ -0,0 +1,6 @@
1
+ .ORIG x3000
2
+
3
+ LEA R0, HELLOWORLD
4
+ PUTS
5
+
6
+ HELLOWORLD .STRINGZ "Hello world!\n"
@@ -0,0 +1,33 @@
1
+ ; "Hello World" in Motorola 68000 machine language, for AmigaOS
2
+
3
+ ExecBase = 4
4
+ OpenLibrary = -552
5
+ CloseLibrary = -414
6
+ PutStr = -948
7
+
8
+ section "main", code
9
+
10
+ ; open "dos.library"
11
+
12
+ move.l ExecBase, a6
13
+ lea lib, a1
14
+ moveq #0, d0
15
+ jsr (OpenLibrary, a6)
16
+ move.l d0, a6
17
+
18
+ ; print the message
19
+
20
+ move.l #msg, d1
21
+ jsr (PutStr, a6)
22
+
23
+ ; close the library, and exit with code 0
24
+
25
+ move.l a6, a1
26
+ move.l ExecBase, a6
27
+ jsr (CloseLibrary, a6)
28
+
29
+ moveq #0, d0
30
+ rts
31
+
32
+ lib dc.b "dos.library", 0
33
+ msg dc.b "Hello World!\n", 0
@@ -0,0 +1,17 @@
1
+ ; 16 bit dos assembly
2
+ .model small
3
+ .stack
4
+ .data
5
+ message db "Hello world!", "$"
6
+ .code
7
+ main proc
8
+ mov ax,seg message
9
+ mov ds,ax
10
+ mov ah,09
11
+ lea dx,message
12
+ int 21h
13
+
14
+ mov ax,4c00h
15
+ int 21h
16
+ main endp
17
+ end main
@@ -0,0 +1,35 @@
1
+ ; ---------------------------------------------
2
+ ; Hello World for Win32 Intel x86 Assembly
3
+ ;
4
+ ; by fruel (https://github.com/fruel)
5
+ ; 13 June 2016
6
+ ; ---------------------------------------------
7
+
8
+ .386
9
+ .model flat,stdcall
10
+ .stack 4096
11
+
12
+ EXTRN ExitProcess@4 : PROC
13
+ EXTRN GetStdHandle@4 : PROC
14
+ EXTRN WriteConsoleA@20 : PROC
15
+
16
+ .data
17
+ msg BYTE "Hello World!",0
18
+ bytesWritten DWORD ?
19
+
20
+ .code
21
+ main PROC
22
+ push -11 ; nStdHandle (STD_OUTPUT_HANDLE)
23
+ call GetStdHandle@4
24
+
25
+ push 0 ; lpReserved
26
+ push OFFSET bytesWritten ; lpNumberOfCharsWritten
27
+ push LENGTHOF msg - 1 ; nNumberOfCharsToWrite
28
+ push OFFSET msg ; *lpBuffer
29
+ push eax ; hConsoleOutput
30
+ call WriteConsoleA@20
31
+
32
+ push 0 ; uExitCode
33
+ call ExitProcess@4
34
+ main ENDP
35
+ END main
@@ -0,0 +1,33 @@
1
+ ; ---------------------------------------------
2
+ ; Hello World for Win64 Intel x64 Assembly
3
+ ;
4
+ ; by fruel (https://github.com/fruel)
5
+ ; 13 June 2016
6
+ ; ---------------------------------------------
7
+
8
+ GetStdHandle PROTO
9
+ ExitProcess PROTO
10
+ WriteConsoleA PROTO
11
+
12
+ .data
13
+ msg BYTE "Hello World!",0
14
+ bytesWritten DWORD ?
15
+
16
+ .code
17
+ main PROC
18
+ sub rsp, 5 * 8 ; reserve shadow space
19
+
20
+ mov rcx, -11 ; nStdHandle (STD_OUTPUT_HANDLE)
21
+ call GetStdHandle
22
+
23
+ mov rcx, rax ; hConsoleOutput
24
+ lea rdx, msg ; *lpBuffer
25
+ mov r8, LENGTHOF msg - 1 ; nNumberOfCharsToWrite
26
+ lea r9, bytesWritten ; lpNumberOfCharsWritten
27
+ mov QWORD PTR [rsp + 4 * SIZEOF QWORD], 0 ; lpReserved
28
+ call WriteConsoleA
29
+
30
+ mov rcx, 0 ; uExitCode
31
+ call ExitProcess
32
+ main ENDP
33
+ END
@@ -0,0 +1,9 @@
1
+ .data
2
+ hw: .asciiz "Hello, World!"
3
+ .text
4
+ main:
5
+ la $a0, hw #load the address of hw into $a0
6
+ li $v0, 4 #load 4 into $v0
7
+ syscall #perform the print_string syscall
8
+ li $v0, 10 #load 10 into $v0
9
+ syscall #perform the exit syscall
@@ -0,0 +1,9 @@
1
+ t IS $255
2
+ LOC Data_Segment
3
+ GREG @
4
+ String BYTE "Hello World",#a,0
5
+
6
+ LOC #100
7
+ Main LDA t,String
8
+ TRAP 0,Fputs,StdOut
9
+ TRAP 0,Halt,0
@@ -0,0 +1,31 @@
1
+ section .text
2
+ global _start ;must be declared for linker (ld)
3
+
4
+ _syscall:
5
+ int 0x80 ;system call
6
+ ret
7
+
8
+ _start: ;tell linker entry point
9
+
10
+ push dword len ;message length
11
+ push dword msg ;message to write
12
+ push dword 1 ;file descriptor (stdout)
13
+ mov eax,0x4 ;system call number (sys_write)
14
+ call _syscall ;call kernel
15
+
16
+ ;the alternate way to call kernel:
17
+ ;push eax
18
+ ;call 7:0
19
+
20
+ add esp,12 ;clean stack (3 arguments * 4)
21
+
22
+ push dword 0 ;exit code
23
+ mov eax,0x1 ;system call number (sys_exit)
24
+ call _syscall ;call kernel
25
+
26
+ ;we do not return from sys_exit,
27
+ ;there's no need to clean stack
28
+ section .data
29
+
30
+ msg db "Hello, world!",0xa ;our string
31
+ len equ $ - msg ;length of our string
@@ -0,0 +1,20 @@
1
+ section .text
2
+ global _start ;must be declared for linker (ld)
3
+
4
+ _start: ;tell linker entry point
5
+
6
+ xor ebx,ebx ;ebx=0
7
+ mov ecx,msg ;address of message to write
8
+ lea edx,[ebx+len] ;message length
9
+ lea eax,[ebx+4] ;system call number (sys_write)
10
+ inc ebx ;file descriptor (stdout)
11
+ int 0x80 ;call kernel
12
+
13
+ xor eax, eax ;set eax=0
14
+ inc eax ;system call number (sys_exit)
15
+ int 0x80 ;call kernel
16
+
17
+ section .rodata
18
+
19
+ msg db 'Hello, world!',0xa ;our string
20
+ len equ $ - msg ;length of our string
@@ -0,0 +1,20 @@
1
+ section .text
2
+ global _start ;must be declared for linker (ld)
3
+
4
+ _start: ;tell linker entry point
5
+
6
+ xor eax,eax ;eax:=0
7
+ lea edx,[rax+len] ;message length
8
+ mov al,1 ;system call number (sys_write)
9
+ mov esi,msg ;message to write
10
+ mov edi,eax ;file descriptor (stdout)
11
+ syscall ;call kernel
12
+
13
+ xor edi, edi ;return 0 (EXIT_SUCCESS)
14
+ lea eax,[rdi+60] ;system call number (sys_exit)
15
+ syscall ;call kernel
16
+
17
+ section .rodata
18
+
19
+ msg db 'Hello, world!',0xa ;our string
20
+ len equ $ - msg ;length of our string
@@ -0,0 +1,20 @@
1
+ IDEAL
2
+ MODEL SMALL
3
+ STACK 100h
4
+
5
+ DATASEG
6
+ msg db "Hello World!", 0dh, 0ah, "$"
7
+
8
+ CODESEG
9
+ start:
10
+ mov ax, @data
11
+ mov ds, ax
12
+
13
+ mov dx, offset msg
14
+ mov ah, 9
15
+ int 21h
16
+
17
+ mov ah, 4ch
18
+ int 21h
19
+
20
+ end start
@@ -0,0 +1,44 @@
1
+
2
+ * Hello World for TI-99/4a computer with TMS9900 CPU
3
+ * by Frog ( http://frog.enlight.ru )
4
+ * 15 April 2016
5
+ *
6
+ ****************************************************************************
7
+
8
+ DEF START
9
+
10
+ WRKSP EQU >8300
11
+
12
+ VDPWD EQU >8C00 * VDP RAM write data
13
+ VDPWA EQU >8C02 * VDP RAM read/write address
14
+
15
+
16
+ START LIMI 0 * disable interrupts
17
+ LWPI WRKSP * set default workspace
18
+
19
+ * set VDP RAM start address (low and high byte)
20
+
21
+ LI R0,>0000
22
+ ORI R0,>4000
23
+ SWPB R0
24
+ MOVB R0,@VDPWA
25
+ SWPB R0
26
+ MOVB R0,@VDPWA
27
+
28
+ LI R1,HELLOWORLD * ascii string address
29
+ LI R2,12 * total chars
30
+
31
+ NEXTCHAR
32
+ MOVB *R1+,@VDPWD * put next char on screen
33
+ DEC R2
34
+ JNE NEXTCHAR
35
+
36
+ LOOPBACK
37
+ JMP LOOPBACK * stop and do nothing
38
+
39
+
40
+ HELLOWORLD
41
+ TEXT 'HELLO WORLD!' * string data
42
+ BYTE 0
43
+
44
+ END
@@ -0,0 +1,13 @@
1
+ .data
2
+ hw:
3
+ .ascii "Hello World!\12"
4
+ .text
5
+ .align 1
6
+ .globl _main
7
+ _main:
8
+ .word 0
9
+ pushl $13
10
+ pushab hw
11
+ pushl $1
12
+ calls $3,_write
13
+ ret
@@ -0,0 +1,18 @@
1
+ #include "kernel.inc"
2
+ .db "KEXC"
3
+ .db KEXC_ENTRY_POINT
4
+ .dw start
5
+ start:
6
+ pcall(getLcdLock)
7
+
8
+ pcall(allocScreenBuffer)
9
+ pcall(clearScreen)
10
+
11
+ kld(hl, message)
12
+ ld de, 0
13
+ pcall(drawStr)
14
+
15
+ jr $ ; Loop forever
16
+
17
+ message:
18
+ .db "Hello world!", 0
@@ -0,0 +1,20 @@
1
+ .NOLIST
2
+ #define EQU .equ
3
+ #define equ .equ
4
+ #define END .end
5
+ #define end .end
6
+ #include "ti83plus.inc"
7
+ .LIST
8
+ .org 9D93h
9
+ .db $BB,$6D
10
+ ld a,0
11
+ ld (CURCOL),a
12
+ ld (CURROW),a
13
+ ld hl,text
14
+ B_CALL(_PutS)
15
+ B_CALL(_NewLine)
16
+ ret
17
+ text:
18
+ .db "Hello, World",0
19
+ .end
20
+ end
@@ -0,0 +1,21 @@
1
+ org $6000
2
+ ld bc, STRING
3
+ ld de, SCR
4
+
5
+ LOOP
6
+ ld a, (bc)
7
+ cp 0
8
+ jr z, EXIT
9
+ rst $10
10
+ inc bc
11
+ inc de
12
+ jr LOOP
13
+
14
+ EXIT
15
+ ret
16
+
17
+ SCR equ 16384
18
+
19
+ STRING
20
+ defb "Hello World!"
21
+ defb 13, 0
@@ -0,0 +1 @@
1
+ MsgBox, Hello World!
@@ -0,0 +1 @@
1
+ MsgBox(0, "Message Box", "Hello World!")
@@ -0,0 +1,2 @@
1
+ # awk -f awk.awk
2
+ BEGIN { print "Hello World" }
@@ -0,0 +1,10 @@
1
+ /* Hello World in B */
2
+
3
+ main() {
4
+ extern a, b, c;
5
+ putchar (a); putchar (b); putchar (c); putchar ('!*n');
6
+ }
7
+
8
+ a 'hell' ;
9
+ b 'o, w' ;
10
+ c 'orld' ;
@@ -0,0 +1,6 @@
1
+ GET "LIBHDR"
2
+
3
+ LET START() BE
4
+ $(
5
+ WRITES("Hello, world!*N")
6
+ $)