zettacode 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/files.zettacode2/arithmetic.integer/0815}.txt +14 -0
- data/files.zettacode2/arithmetic.integer/11l}.txt +9 -0
- data/files.zettacode2/arithmetic.integer/360_assembly.txt +55 -0
- data/files.zettacode2/arithmetic.integer/6502_assembly}.txt +50 -0
- data/files.zettacode2/arithmetic.integer/68000_assembly.txt +24 -0
- data/files.zettacode2/arithmetic.integer/aarch64_assembly.txt +137 -0
- data/files.zettacode2/arithmetic.integer/abap.txt +25 -0
- data/files.zettacode2/arithmetic.integer/acl2.txt +21 -0
- data/files.zettacode2/arithmetic.integer/action!.txt +36 -0
- data/files.zettacode2/arithmetic.integer/ada.txt +20 -0
- data/files.zettacode2/arithmetic.integer/aikido.txt +10 -0
- data/files.zettacode2/arithmetic.integer/algol_68.txt +14 -0
- data/files.zettacode2/arithmetic.integer/algol_w.txt +16 -0
- data/files.zettacode2/arithmetic.integer/amigae.txt +14 -0
- data/files.zettacode2/arithmetic.integer/apl.txt +7 -0
- data/files.zettacode2/arithmetic.integer/applescript.txt +16 -0
- data/files.zettacode2/arithmetic.integer/arm_assembly.txt +293 -0
- data/files.zettacode2/arithmetic.integer/arturo.txt +10 -0
- data/files.zettacode2/arithmetic.integer/asymptote.txt +17 -0
- data/files.zettacode2/arithmetic.integer/autohotkey.txt +20 -0
- data/files.zettacode2/arithmetic.integer/avail.txt +13 -0
- data/files.zettacode2/arithmetic.integer/awk.txt +12 -0
- data/files.zettacode2/arithmetic.integer/basic.txt +56 -0
- data/files.zettacode2/arithmetic.integer/basic256.txt +11 -0
- data/files.zettacode2/arithmetic.integer/batch_file.txt +7 -0
- data/files.zettacode2/arithmetic.integer/bbc_basic.txt +9 -0
- data/files.zettacode2/arithmetic.integer/bc.txt +8 -0
- data/files.zettacode2/arithmetic.integer/befunge.txt +6 -0
- data/files.zettacode2/arithmetic.integer/bqn.txt +22 -0
- data/files.zettacode2/arithmetic.integer/bracmat.txt +19 -0
- data/files.zettacode2/arithmetic.integer/brat.txt +8 -0
- data/files.zettacode2/arithmetic.integer/c++.txt +12 -0
- data/files.zettacode2/arithmetic.integer/c.txt +17 -0
- data/files.zettacode2/arithmetic.integer/c_sharp|c#.txt +17 -0
- data/files.zettacode2/arithmetic.integer/chef.txt +37 -0
- data/files.zettacode2/arithmetic.integer/clipper.txt +11 -0
- data/files.zettacode2/arithmetic.integer/clojure.txt +18 -0
- data/files.zettacode2/arithmetic.integer/cobol.txt +44 -0
- data/files.zettacode2/arithmetic.integer/common_lisp.txt +29 -0
- data/files.zettacode2/arithmetic.integer/component_pascal.txt +32 -0
- data/files.zettacode2/arithmetic.integer/crystal.txt +11 -0
- data/files.zettacode2/arithmetic.integer/d.txt +17 -0
- data/files.zettacode2/arithmetic.integer/dc.txt +10 -0
- data/files.zettacode2/arithmetic.integer/dcl.txt +8 -0
- data/files.zettacode2/arithmetic.integer/delphi.txt +19 -0
- data/files.zettacode2/arithmetic.integer/dwscript.txt +9 -0
- data/files.zettacode2/arithmetic.integer/dyalect.txt +13 -0
- data/files.zettacode2/arithmetic.integer/e.txt +9 -0
- data/files.zettacode2/arithmetic.integer/easylang.txt +9 -0
- data/files.zettacode2/arithmetic.integer/ecl.txt +33 -0
- data/files.zettacode2/arithmetic.integer/efene.txt +16 -0
- data/files.zettacode2/arithmetic.integer/eiffel.txt +32 -0
- data/files.zettacode2/arithmetic.integer/elena.txt +16 -0
- data/files.zettacode2/arithmetic.integer/elixir.txt +26 -0
- data/files.zettacode2/arithmetic.integer/emojicode.txt +9 -0
- data/files.zettacode2/arithmetic.integer/erlang.txt +15 -0
- data/files.zettacode2/arithmetic.integer/erre.txt +20 -0
- data/files.zettacode2/arithmetic.integer/euphoria.txt +13 -0
- data/files.zettacode2/arithmetic.integer/excel.txt +32 -0
- data/files.zettacode2/arithmetic.integer/f_sharp|f#.txt +15 -0
- data/files.zettacode2/arithmetic.integer/factor.txt +17 -0
- data/files.zettacode2/arithmetic.integer/false.txt +8 -0
- data/files.zettacode2/arithmetic.integer/fermat.txt +10 -0
- data/files.zettacode2/arithmetic.integer/forth.txt +19 -0
- data/files.zettacode2/arithmetic.integer/fortran.txt +15 -0
- data/files.zettacode2/arithmetic.integer/freebasic.txt +18 -0
- data/files.zettacode2/arithmetic.integer/friendly_interactive_shell.txt +10 -0
- data/files.zettacode2/arithmetic.integer/frink.txt +10 -0
- data/files.zettacode2/arithmetic.integer/futurebasic.txt +158 -0
- data/files.zettacode2/arithmetic.integer/gambas.txt +30 -0
- data/files.zettacode2/arithmetic.integer/gap.txt +15 -0
- data/files.zettacode2/arithmetic.integer/genie.txt +23 -0
- data/files.zettacode2/arithmetic.integer/george.txt +7 -0
- data/files.zettacode2/arithmetic.integer/go.txt +66 -0
- data/files.zettacode2/arithmetic.integer/groovy.txt +18 -0
- data/files.zettacode2/arithmetic.integer/harbour.txt +11 -0
- data/files.zettacode2/arithmetic.integer/haskell.txt +16 -0
- data/files.zettacode2/arithmetic.integer/haxe.txt +13 -0
- data/files.zettacode2/arithmetic.integer/hicest.txt +26 -0
- data/files.zettacode2/arithmetic.integer/holyc.txt +14 -0
- data/files.zettacode2/arithmetic.integer/i.txt +11 -0
- data/files.zettacode2/arithmetic.integer/icon}}_and_{{header|unicon.txt +13 -0
- data/files.zettacode2/arithmetic.integer/inform_7.txt +27 -0
- data/files.zettacode2/arithmetic.integer/j.txt +18 -0
- data/files.zettacode2/arithmetic.integer/java.txt +22 -0
- data/files.zettacode2/arithmetic.integer/javascript.txt +30 -0
- data/files.zettacode2/arithmetic.integer/jq.txt +17 -0
- data/files.zettacode2/arithmetic.integer/jsish.txt +33 -0
- data/files.zettacode2/arithmetic.integer/julia.txt +5 -0
- data/files.zettacode2/arithmetic.integer/kotlin.txt +41 -0
- data/files.zettacode2/arithmetic.integer/labview.txt +2 -0
- data/files.zettacode2/arithmetic.integer/lambdatalk.txt +23 -0
- data/files.zettacode2/arithmetic.integer/lasso.txt +8 -0
- data/files.zettacode2/arithmetic.integer/lfe.txt +32 -0
- data/files.zettacode2/arithmetic.integer/liberty_basic.txt +12 -0
- data/files.zettacode2/arithmetic.integer/lil.txt +14 -0
- data/files.zettacode2/arithmetic.integer/lingo.txt +10 -0
- data/files.zettacode2/arithmetic.integer/little.txt +15 -0
- data/files.zettacode2/arithmetic.integer/livecode.txt +17 -0
- data/files.zettacode2/arithmetic.integer/logo.txt +11 -0
- data/files.zettacode2/arithmetic.integer/lse64.txt +10 -0
- data/files.zettacode2/arithmetic.integer/lua.txt +9 -0
- data/files.zettacode2/arithmetic.integer/m2000_interpreter.txt +54 -0
- data/files.zettacode2/arithmetic.integer/m4.txt +17 -0
- data/files.zettacode2/arithmetic.integer/maple.txt +25 -0
- data/files.zettacode2/arithmetic.integer/mathcad.txt +51 -0
- data/files.zettacode2/arithmetic.integer/mathematica}}-{{header|wolfram_language.txt +18 -0
- data/files.zettacode2/arithmetic.integer/matlab}}_-_{{header|octave.txt +8 -0
- data/files.zettacode2/arithmetic.integer/maxima.txt +10 -0
- data/files.zettacode2/arithmetic.integer/maxscript.txt +8 -0
- data/files.zettacode2/arithmetic.integer/mercury.txt +44 -0
- data/files.zettacode2/arithmetic.integer/metafont.txt +19 -0
- data/files.zettacode2/arithmetic.integer/min.txt +5 -0
- data/files.zettacode2/arithmetic.integer/ml-i.txt +18 -0
- data/files.zettacode2/arithmetic.integer/modula-2.txt +31 -0
- data/files.zettacode2/arithmetic.integer/modula-3.txt +15 -0
- data/files.zettacode2/arithmetic.integer/mumps.txt +52 -0
- data/files.zettacode2/arithmetic.integer/nanoquery.txt +13 -0
- data/files.zettacode2/arithmetic.integer/nemerle.txt +18 -0
- data/files.zettacode2/arithmetic.integer/netrexx.txt +14 -0
- data/files.zettacode2/arithmetic.integer/newlisp.txt +26 -0
- data/files.zettacode2/arithmetic.integer/nial.txt +23 -0
- data/files.zettacode2/arithmetic.integer/nim.txt +25 -0
- data/files.zettacode2/arithmetic.integer/nsis.txt +25 -0
- data/files.zettacode2/arithmetic.integer/oberon-2.txt +14 -0
- data/files.zettacode2/arithmetic.integer/objeck.txt +17 -0
- data/files.zettacode2/arithmetic.integer/ocaml.txt +9 -0
- data/files.zettacode2/arithmetic.integer/oforth.txt +9 -0
- data/files.zettacode2/arithmetic.integer/ol.txt +23 -0
- data/files.zettacode2/arithmetic.integer/onyx.txt +44 -0
- data/files.zettacode2/arithmetic.integer/openscad.txt +6 -0
- data/files.zettacode2/arithmetic.integer/oz.txt +19 -0
- data/files.zettacode2/arithmetic.integer/panda.txt +2 -0
- data/files.zettacode2/arithmetic.integer/pari-gp.txt +9 -0
- data/files.zettacode2/arithmetic.integer/pascal.txt +14 -0
- data/files.zettacode2/arithmetic.integer/perl.txt +12 -0
- data/files.zettacode2/arithmetic.integer/phix.txt +49 -0
- data/files.zettacode2/arithmetic.integer/phixmonti.txt +14 -0
- data/files.zettacode2/arithmetic.integer/phl.txt +20 -0
- data/files.zettacode2/arithmetic.integer/php.txt +13 -0
- data/files.zettacode2/arithmetic.integer/picat.txt +8 -0
- data/files.zettacode2/arithmetic.integer/picolisp.txt +8 -0
- data/files.zettacode2/arithmetic.integer/piet.txt +38 -0
- data/files.zettacode2/arithmetic.integer/pl-i.txt +8 -0
- data/files.zettacode2/arithmetic.integer/plain_english.txt +26 -0
- data/files.zettacode2/arithmetic.integer/pop11.txt +12 -0
- data/files.zettacode2/arithmetic.integer/postscript.txt +10 -0
- data/files.zettacode2/arithmetic.integer/powershell.txt +15 -0
- data/files.zettacode2/arithmetic.integer/processing.txt +7 -0
- data/files.zettacode2/arithmetic.integer/prodos.txt +35 -0
- data/files.zettacode2/arithmetic.integer/prolog.txt +33 -0
- data/files.zettacode2/arithmetic.integer/purebasic.txt +17 -0
- data/files.zettacode2/arithmetic.integer/python.txt +47 -0
- data/files.zettacode2/arithmetic.integer/qb64.txt +21 -0
- data/files.zettacode2/arithmetic.integer/quackery.txt +12 -0
- data/files.zettacode2/arithmetic.integer/r.txt +11 -0
- data/files.zettacode2/arithmetic.integer/racket.txt +8 -0
- data/files.zettacode2/arithmetic.integer/raku.txt +12 -0
- data/files.zettacode2/arithmetic.integer/raven.txt +9 -0
- data/files.zettacode2/arithmetic.integer/rebol.txt +51 -0
- data/files.zettacode2/arithmetic.integer/relation.txt +11 -0
- data/files.zettacode2/arithmetic.integer/rescript.txt +15 -0
- data/files.zettacode2/arithmetic.integer/retro.txt +10 -0
- data/files.zettacode2/arithmetic.integer/rexx.txt +47 -0
- data/files.zettacode2/arithmetic.integer/ring.txt +11 -0
- data/files.zettacode2/arithmetic.integer/robotic.txt +13 -0
- data/files.zettacode2/arithmetic.integer/ruby.txt +12 -0
- data/files.zettacode2/arithmetic.integer/run_basic.txt +9 -0
- data/files.zettacode2/arithmetic.integer/rust.txt +15 -0
- data/files.zettacode2/arithmetic.integer/sass-scss.txt +36 -0
- data/files.zettacode2/arithmetic.integer/scala.txt +9 -0
- data/files.zettacode2/arithmetic.integer/scheme.txt +27 -0
- data/files.zettacode2/arithmetic.integer/seed7.txt +20 -0
- data/files.zettacode2/arithmetic.integer/sensetalk.txt +12 -0
- data/files.zettacode2/arithmetic.integer/sidef.txt +6 -0
- data/files.zettacode2/arithmetic.integer/slate.txt +9 -0
- data/files.zettacode2/arithmetic.integer/smalltalk.txt +28 -0
- data/files.zettacode2/arithmetic.integer/smart_basic.txt +18 -0
- data/files.zettacode2/arithmetic.integer/snobol4.txt +12 -0
- data/files.zettacode2/arithmetic.integer/snusp.txt +61 -0
- data/files.zettacode2/arithmetic.integer/sql.txt +68 -0
- data/files.zettacode2/arithmetic.integer/ssem.txt +15 -0
- data/files.zettacode2/arithmetic.integer/standard_ml.txt +13 -0
- data/files.zettacode2/arithmetic.integer/swift.txt +11 -0
- data/files.zettacode2/arithmetic.integer/tcl.txt +19 -0
- data/files.zettacode2/arithmetic.integer/terraform.txt +33 -0
- data/files.zettacode2/arithmetic.integer/ti-83_basic.txt +14 -0
- data/files.zettacode2/arithmetic.integer/ti-89_basic.txt +8 -0
- data/files.zettacode2/arithmetic.integer/toka.txt +7 -0
- data/files.zettacode2/arithmetic.integer/tuscript.txt +9 -0
- data/files.zettacode2/arithmetic.integer/unix_shell.txt +29 -0
- data/files.zettacode2/arithmetic.integer/ursa.txt +27 -0
- data/files.zettacode2/arithmetic.integer/v_(vlang).txt +29 -0
- data/files.zettacode2/arithmetic.integer/vba.txt +19 -0
- data/files.zettacode2/arithmetic.integer/vbscript.txt +51 -0
- data/files.zettacode2/arithmetic.integer/vedit_macro_language.txt +8 -0
- data/files.zettacode2/arithmetic.integer/verilog.txt +26 -0
- data/files.zettacode2/arithmetic.integer/vim_script.txt +10 -0
- data/files.zettacode2/arithmetic.integer/visual_basic_.net.txt +14 -0
- data/files.zettacode2/arithmetic.integer/wart.txt +9 -0
- data/files.zettacode2/arithmetic.integer/wren.txt +16 -0
- data/files.zettacode2/arithmetic.integer/x86_assembly.txt +23 -0
- data/files.zettacode2/arithmetic.integer/xlisp.txt +17 -0
- data/files.zettacode2/arithmetic.integer/xpl0.txt +10 -0
- data/files.zettacode2/arithmetic.integer/xslt.txt +10 -0
- data/files.zettacode2/arithmetic.integer/yabasic.txt +11 -0
- data/files.zettacode2/arithmetic.integer/yorick.txt +8 -0
- data/files.zettacode2/arithmetic.integer/zkl.txt +7 -0
- data/files.zettacode2/arithmetic.integer/zonnon.txt +13 -0
- data/files.zettacode2/arithmetic.integer/zx_spectrum_basic.txt +11 -0
- data/files.zettacode2/arithmetic.integer//320/274/320/272-61-52.txt +7 -0
- data/files.zettacode2/hello_world.text/0815.txt +7 -0
- data/files.zettacode2/hello_world.text/11l.txt +1 -0
- data/files.zettacode2/hello_world.text/360_assembly.txt +17 -0
- data/files.zettacode2/hello_world.text/4dos_batch.txt +1 -0
- data/files.zettacode2/hello_world.text/6502_assembly.txt +22 -0
- data/files.zettacode2/hello_world.text/6800_assembly.txt +31 -0
- data/files.zettacode2/hello_world.text/8080_assembly.txt +12 -0
- data/files.zettacode2/hello_world.text/8086_assembly.txt +30 -0
- data/files.zettacode2/hello_world.text/8th.txt +1 -0
- data/files.zettacode2/hello_world.text/aarch64_assembly.txt +22 -0
- data/files.zettacode2/hello_world.text/abap.txt +2 -0
- data/files.zettacode2/hello_world.text/acl2.txt +2 -0
- data/files.zettacode2/hello_world.text/action!.txt +3 -0
- data/files.zettacode2/hello_world.text/actionscript.txt +1 -0
- data/files.zettacode2/hello_world.text/ada.txt +6 -0
- data/files.zettacode2/hello_world.text/agda.txt +14 -0
- data/files.zettacode2/hello_world.text/agena.txt +1 -0
- data/files.zettacode2/hello_world.text/aime.txt +11 -0
- data/files.zettacode2/hello_world.text/algae.txt +1 -0
- data/files.zettacode2/hello_world.text/algol-m.txt +3 -0
- data/files.zettacode2/hello_world.text/algol_60.txt +4 -0
- data/files.zettacode2/hello_world.text/algol_68.txt +3 -0
- data/files.zettacode2/hello_world.text/algol_w.txt +3 -0
- data/files.zettacode2/hello_world.text/alore.txt +1 -0
- data/files.zettacode2/hello_world.text/amazing_hopper.txt +21 -0
- data/files.zettacode2/hello_world.text/ambienttalk.txt +1 -0
- data/files.zettacode2/hello_world.text/amigae.txt +3 -0
- data/files.zettacode2/hello_world.text/angelscript.txt +1 -0
- data/files.zettacode2/hello_world.text/antlang.txt +3 -0
- data/files.zettacode2/hello_world.text/anyways.txt +4 -0
- data/files.zettacode2/hello_world.text/apl.txt +1 -0
- data/files.zettacode2/hello_world.text/applescript.txt +5 -0
- data/files.zettacode2/hello_world.text/applesoft_basic.txt +5 -0
- data/files.zettacode2/hello_world.text/apricot.txt +1 -0
- data/files.zettacode2/hello_world.text/arc.txt +1 -0
- data/files.zettacode2/hello_world.text/arendelle.txt +1 -0
- data/files.zettacode2/hello_world.text/argile.txt +3 -0
- data/files.zettacode2/hello_world.text/arm_assembly.txt +13 -0
- data/files.zettacode2/hello_world.text/arnoldc.txt +3 -0
- data/files.zettacode2/hello_world.text/arturo.txt +1 -0
- data/files.zettacode2/hello_world.text/asciidots.txt +4 -0
- data/files.zettacode2/hello_world.text/astro.txt +1 -0
- data/files.zettacode2/hello_world.text/asymptote.txt +2 -0
- data/files.zettacode2/hello_world.text/ats.txt +1 -0
- data/files.zettacode2/hello_world.text/autohotkey.txt +9 -0
- data/files.zettacode2/hello_world.text/autoit.txt +1 -0
- data/files.zettacode2/hello_world.text/autolisp.txt +1 -0
- data/files.zettacode2/hello_world.text/avail.txt +1 -0
- data/files.zettacode2/hello_world.text/awk.txt +30 -0
- data/files.zettacode2/hello_world.text/axe.txt +2 -0
- data/files.zettacode2/hello_world.text/b.txt +6 -0
- data/files.zettacode2/hello_world.text/b4x.txt +1 -0
- data/files.zettacode2/hello_world.text/babel.txt +2 -0
- data/files.zettacode2/hello_world.text/bash.txt +1 -0
- data/files.zettacode2/hello_world.text/basic.txt +14 -0
- data/files.zettacode2/hello_world.text/basic256.txt +1 -0
- data/files.zettacode2/hello_world.text/batch_file.txt +6 -0
- data/files.zettacode2/hello_world.text/battlestar.txt +4 -0
- data/files.zettacode2/hello_world.text/bbc_basic.txt +1 -0
- data/files.zettacode2/hello_world.text/bc.txt +2 -0
- data/files.zettacode2/hello_world.text/bcpl.txt +6 -0
- data/files.zettacode2/hello_world.text/beef.txt +11 -0
- data/files.zettacode2/hello_world.text/beeswax.txt +23 -0
- data/files.zettacode2/hello_world.text/befunge.txt +1 -0
- data/files.zettacode2/hello_world.text/binary_lambda_calculus.txt +2 -0
- data/files.zettacode2/hello_world.text/bird.txt +6 -0
- data/files.zettacode2/hello_world.text/blade.txt +6 -0
- data/files.zettacode2/hello_world.text/blast.txt +10 -0
- data/files.zettacode2/hello_world.text/blue.txt +18 -0
- data/files.zettacode2/hello_world.text/blz.txt +1 -0
- data/files.zettacode2/hello_world.text/bml.txt +1 -0
- data/files.zettacode2/hello_world.text/boo.txt +1 -0
- data/files.zettacode2/hello_world.text/bootbasic.txt +1 -0
- data/files.zettacode2/hello_world.text/bqn.txt +4 -0
- data/files.zettacode2/hello_world.text/brace.txt +4 -0
- data/files.zettacode2/hello_world.text/bracmat.txt +1 -0
- data/files.zettacode2/hello_world.text/brainf***.txt +83 -0
- data/files.zettacode2/hello_world.text/brat.txt +1 -0
- data/files.zettacode2/hello_world.text/brlcad.txt +6 -0
- data/files.zettacode2/hello_world.text/burlesque.txt +6 -0
- data/files.zettacode2/hello_world.text/c++-cli.txt +5 -0
- data/files.zettacode2/hello_world.text/c++.txt +5 -0
- data/files.zettacode2/hello_world.text/c.txt +37 -0
- data/files.zettacode2/hello_world.text/c1r.txt +1 -0
- data/files.zettacode2/hello_world.text/c2.txt +7 -0
- data/files.zettacode2/hello_world.text/c3.txt +7 -0
- data/files.zettacode2/hello_world.text/c_sharp|c#.txt +19 -0
- data/files.zettacode2/hello_world.text/casio_basic.txt +3 -0
- data/files.zettacode2/hello_world.text/cat.txt +1 -0
- data/files.zettacode2/hello_world.text/cduce.txt +1 -0
- data/files.zettacode2/hello_world.text/cfengine.txt +11 -0
- data/files.zettacode2/hello_world.text/chapel.txt +1 -0
- data/files.zettacode2/hello_world.text/chef.txt +36 -0
- data/files.zettacode2/hello_world.text/chuck.txt +1 -0
- data/files.zettacode2/hello_world.text/cind.txt +6 -0
- data/files.zettacode2/hello_world.text/clay.txt +3 -0
- data/files.zettacode2/hello_world.text/clean.txt +1 -0
- data/files.zettacode2/hello_world.text/clio.txt +1 -0
- data/files.zettacode2/hello_world.text/clipper.txt +1 -0
- data/files.zettacode2/hello_world.text/clips.txt +1 -0
- data/files.zettacode2/hello_world.text/clojure.txt +1 -0
- data/files.zettacode2/hello_world.text/clu.txt +4 -0
- data/files.zettacode2/hello_world.text/cmake.txt +5 -0
- data/files.zettacode2/hello_world.text/cobol.txt +22 -0
- data/files.zettacode2/hello_world.text/cobra.txt +3 -0
- data/files.zettacode2/hello_world.text/coffeescript.txt +4 -0
- data/files.zettacode2/hello_world.text/coldfusion.txt +1 -0
- data/files.zettacode2/hello_world.text/comal.txt +1 -0
- data/files.zettacode2/hello_world.text/comefrom0x10.txt +3 -0
- data/files.zettacode2/hello_world.text/commodore_basic.txt +5 -0
- data/files.zettacode2/hello_world.text/common_lisp.txt +18 -0
- data/files.zettacode2/hello_world.text/component_pascal.txt +10 -0
- data/files.zettacode2/hello_world.text/coq.txt +5 -0
- data/files.zettacode2/hello_world.text/corescript.txt +1 -0
- data/files.zettacode2/hello_world.text/cowgol.txt +4 -0
- data/files.zettacode2/hello_world.text/crack.txt +4 -0
- data/files.zettacode2/hello_world.text/creative_basic.txt +15 -0
- data/files.zettacode2/hello_world.text/crystal.txt +1 -0
- data/files.zettacode2/hello_world.text/d.txt +6 -0
- data/files.zettacode2/hello_world.text/dafny.txt +6 -0
- data/files.zettacode2/hello_world.text/dao.txt +1 -0
- data/files.zettacode2/hello_world.text/dart.txt +4 -0
- data/files.zettacode2/hello_world.text/dataweave.txt +1 -0
- data/files.zettacode2/hello_world.text/dbl.txt +15 -0
- data/files.zettacode2/hello_world.text/dc.txt +3 -0
- data/files.zettacode2/hello_world.text/dcl.txt +1 -0
- data/files.zettacode2/hello_world.text/ddnc.txt +40 -0
- data/files.zettacode2/hello_world.text/delphi.txt +7 -0
- data/files.zettacode2/hello_world.text/deviousyarn.txt +1 -0
- data/files.zettacode2/hello_world.text/dibol-11.txt +14 -0
- data/files.zettacode2/hello_world.text/diego.txt +12 -0
- data/files.zettacode2/hello_world.text/div_games_studio.txt +12 -0
- data/files.zettacode2/hello_world.text/dm.txt +5 -0
- data/files.zettacode2/hello_world.text/draco.txt +3 -0
- data/files.zettacode2/hello_world.text/dragon.txt +3 -0
- data/files.zettacode2/hello_world.text/dwscript.txt +3 -0
- data/files.zettacode2/hello_world.text/dyalect.txt +1 -0
- data/files.zettacode2/hello_world.text/dylan.net.txt +28 -0
- data/files.zettacode2/hello_world.text/dylan.txt +5 -0
- data/files.zettacode2/hello_world.text/d/303/251j/303/240_vu.txt +1 -0
- data/files.zettacode2/hello_world.text/e.txt +3 -0
- data/files.zettacode2/hello_world.text/easylang.txt +2 -0
- data/files.zettacode2/hello_world.text/ec.txt +7 -0
- data/files.zettacode2/hello_world.text/echolisp.txt +3 -0
- data/files.zettacode2/hello_world.text/ecl.txt +3 -0
- data/files.zettacode2/hello_world.text/ecstasy.txt +8 -0
- data/files.zettacode2/hello_world.text/edsac_order_code.txt +34 -0
- data/files.zettacode2/hello_world.text/efene.txt +10 -0
- data/files.zettacode2/hello_world.text/egel.txt +3 -0
- data/files.zettacode2/hello_world.text/egison.txt +6 -0
- data/files.zettacode2/hello_world.text/egl.txt +9 -0
- data/files.zettacode2/hello_world.text/eiffel.txt +11 -0
- data/files.zettacode2/hello_world.text/ela.txt +2 -0
- data/files.zettacode2/hello_world.text/elan.txt +1 -0
- data/files.zettacode2/hello_world.text/elastic.txt +20 -0
- data/files.zettacode2/hello_world.text/elena.txt +5 -0
- data/files.zettacode2/hello_world.text/elisa.txt +1 -0
- data/files.zettacode2/hello_world.text/elixir.txt +3 -0
- data/files.zettacode2/hello_world.text/elm.txt +1 -0
- data/files.zettacode2/hello_world.text/emacs_lisp.txt +6 -0
- data/files.zettacode2/hello_world.text/emojicode.txt +3 -0
- data/files.zettacode2/hello_world.text/erlang.txt +1 -0
- data/files.zettacode2/hello_world.text/erre.txt +7 -0
- data/files.zettacode2/hello_world.text/euler_math_toolbox.txt +4 -0
- data/files.zettacode2/hello_world.text/extended_brainf***.txt +2 -0
- data/files.zettacode2/hello_world.text/ezhil.txt +5 -0
- data/files.zettacode2/hello_world.text/f_sharp|f#.txt +3 -0
- data/files.zettacode2/hello_world.text/factor.txt +1 -0
- data/files.zettacode2/hello_world.text/falcon.txt +4 -0
- data/files.zettacode2/hello_world.text/false.txt +2 -0
- data/files.zettacode2/hello_world.text/fantom.txt +10 -0
- data/files.zettacode2/hello_world.text/fennel.txt +1 -0
- data/files.zettacode2/hello_world.text/ferite.txt +3 -0
- data/files.zettacode2/hello_world.text/fermat.txt +1 -0
- data/files.zettacode2/hello_world.text/fexl.txt +1 -0
- data/files.zettacode2/hello_world.text/fhidwfe.txt +1 -0
- data/files.zettacode2/hello_world.text/fish.txt +9 -0
- data/files.zettacode2/hello_world.text/focal.txt +1 -0
- data/files.zettacode2/hello_world.text/forth.txt +5 -0
- data/files.zettacode2/hello_world.text/fortran.txt +16 -0
- data/files.zettacode2/hello_world.text/fortress.txt +3 -0
- data/files.zettacode2/hello_world.text/free_pascal.txt +21 -0
- data/files.zettacode2/hello_world.text/freebasic.txt +3 -0
- data/files.zettacode2/hello_world.text/frege.txt +5 -0
- data/files.zettacode2/hello_world.text/friendly_interactive_shell.txt +2 -0
- data/files.zettacode2/hello_world.text/frink.txt +3 -0
- data/files.zettacode2/hello_world.text/funl.txt +2 -0
- data/files.zettacode2/hello_world.text/furor.txt +1 -0
- data/files.zettacode2/hello_world.text/futurebasic.txt +4 -0
- data/files.zettacode2/hello_world.text/fuze_basic.txt +1 -0
- data/files.zettacode2/hello_world.text/gambas.txt +6 -0
- data/files.zettacode2/hello_world.text/gap.txt +10 -0
- data/files.zettacode2/hello_world.text/gb_basic.txt +1 -0
- data/files.zettacode2/hello_world.text/gecho.txt +1 -0
- data/files.zettacode2/hello_world.text/gema.txt +5 -0
- data/files.zettacode2/hello_world.text/genie.txt +4 -0
- data/files.zettacode2/hello_world.text/gentee.txt +4 -0
- data/files.zettacode2/hello_world.text/gfa_basic.txt +1 -0
- data/files.zettacode2/hello_world.text/glbasic.txt +1 -0
- data/files.zettacode2/hello_world.text/glee.txt +13 -0
- data/files.zettacode2/hello_world.text/global_script.txt +3 -0
- data/files.zettacode2/hello_world.text/glovepie.txt +1 -0
- data/files.zettacode2/hello_world.text/gml.txt +2 -0
- data/files.zettacode2/hello_world.text/go.txt +6 -0
- data/files.zettacode2/hello_world.text/golfscript.txt +1 -0
- data/files.zettacode2/hello_world.text/gosu.txt +1 -0
- data/files.zettacode2/hello_world.text/grain.txt +1 -0
- data/files.zettacode2/hello_world.text/groovy.txt +1 -0
- data/files.zettacode2/hello_world.text/gw-basic.txt +1 -0
- data/files.zettacode2/hello_world.text/hack.txt +1 -0
- data/files.zettacode2/hello_world.text/halon.txt +3 -0
- data/files.zettacode2/hello_world.text/harbour.txt +1 -0
- data/files.zettacode2/hello_world.text/hare.txt +5 -0
- data/files.zettacode2/hello_world.text/haskell.txt +3 -0
- data/files.zettacode2/hello_world.text/haxe.txt +1 -0
- data/files.zettacode2/hello_world.text/hexiscript.txt +1 -0
- data/files.zettacode2/hello_world.text/hicest.txt +1 -0
- data/files.zettacode2/hello_world.text/hla.txt +7 -0
- data/files.zettacode2/hello_world.text/holyc.txt +1 -0
- data/files.zettacode2/hello_world.text/hoon.txt +1 -0
- data/files.zettacode2/hello_world.text/hpppl.txt +1 -0
- data/files.zettacode2/hello_world.text/hq9+.txt +7 -0
- data/files.zettacode2/hello_world.text/html5.txt +8 -0
- data/files.zettacode2/hello_world.text/huginn.txt +8 -0
- data/files.zettacode2/hello_world.text/hy.txt +1 -0
- data/files.zettacode2/hello_world.text/i.txt +3 -0
- data/files.zettacode2/hello_world.text/icon}}_and_{{header|unicon.txt +3 -0
- data/files.zettacode2/hello_world.text/idl.txt +1 -0
- data/files.zettacode2/hello_world.text/idris.txt +4 -0
- data/files.zettacode2/hello_world.text/inform_6.txt +3 -0
- data/files.zettacode2/hello_world.text/inko.txt +4 -0
- data/files.zettacode2/hello_world.text/integer_basic.txt +4 -0
- data/files.zettacode2/hello_world.text/intercal.txt +17 -0
- data/files.zettacode2/hello_world.text/io.txt +1 -0
- data/files.zettacode2/hello_world.text/ioke.txt +1 -0
- data/files.zettacode2/hello_world.text/is-basic.txt +1 -0
- data/files.zettacode2/hello_world.text/isabelle.txt +5 -0
- data/files.zettacode2/hello_world.text/iwbasic.txt +15 -0
- data/files.zettacode2/hello_world.text/j.txt +40 -0
- data/files.zettacode2/hello_world.text/jack.txt +7 -0
- data/files.zettacode2/hello_world.text/jacquard_loom.txt +88 -0
- data/files.zettacode2/hello_world.text/java.txt +7 -0
- data/files.zettacode2/hello_world.text/javascript.txt +12 -0
- data/files.zettacode2/hello_world.text/jcl.txt +1 -0
- data/files.zettacode2/hello_world.text/jinja.txt +9 -0
- data/files.zettacode2/hello_world.text/joy.txt +1 -0
- data/files.zettacode2/hello_world.text/jq.txt +1 -0
- data/files.zettacode2/hello_world.text/jse.txt +1 -0
- data/files.zettacode2/hello_world.text/jsish.txt +1 -0
- data/files.zettacode2/hello_world.text/julia.txt +1 -0
- data/files.zettacode2/hello_world.text/k.txt +14 -0
- data/files.zettacode2/hello_world.text/kabap.txt +1 -0
- data/files.zettacode2/hello_world.text/kaya.txt +6 -0
- data/files.zettacode2/hello_world.text/kdf9_usercode.txt +13 -0
- data/files.zettacode2/hello_world.text/keg.txt +1 -0
- data/files.zettacode2/hello_world.text/kite.txt +4 -0
- data/files.zettacode2/hello_world.text/kitten.txt +2 -0
- data/files.zettacode2/hello_world.text/koka.txt +3 -0
- data/files.zettacode2/hello_world.text/konsolscript.txt +4 -0
- data/files.zettacode2/hello_world.text/kotlin.txt +3 -0
- data/files.zettacode2/hello_world.text/kql.txt +2 -0
- data/files.zettacode2/hello_world.text/ksi.txt +5 -0
- data/files.zettacode2/hello_world.text/lambdatalk.txt +5 -0
- data/files.zettacode2/hello_world.text/lang5.txt +1 -0
- data/files.zettacode2/hello_world.text/langur.txt +1 -0
- data/files.zettacode2/hello_world.text/lasso.txt +2 -0
- data/files.zettacode2/hello_world.text/latex.txt +4 -0
- data/files.zettacode2/hello_world.text/latitude.txt +1 -0
- data/files.zettacode2/hello_world.text/lc3_assembly.txt +18 -0
- data/files.zettacode2/hello_world.text/ldpl.txt +4 -0
- data/files.zettacode2/hello_world.text/lean.txt +3 -0
- data/files.zettacode2/hello_world.text/lfe.txt +3 -0
- data/files.zettacode2/hello_world.text/liberty_basic.txt +1 -0
- data/files.zettacode2/hello_world.text/lil.txt +5 -0
- data/files.zettacode2/hello_world.text/lily.txt +7 -0
- data/files.zettacode2/hello_world.text/lilypond.txt +11 -0
- data/files.zettacode2/hello_world.text/limbo.txt +14 -0
- data/files.zettacode2/hello_world.text/lingo.txt +5 -0
- data/files.zettacode2/hello_world.text/lisaac.txt +16 -0
- data/files.zettacode2/hello_world.text/little.txt +9 -0
- data/files.zettacode2/hello_world.text/livecode.txt +15 -0
- data/files.zettacode2/hello_world.text/llvm.txt +13 -0
- data/files.zettacode2/hello_world.text/lobster.txt +1 -0
- data/files.zettacode2/hello_world.text/logo.txt +4 -0
- data/files.zettacode2/hello_world.text/logtalk.txt +7 -0
- data/files.zettacode2/hello_world.text/lolcode.txt +6 -0
- data/files.zettacode2/hello_world.text/lotusscript.txt +5 -0
- data/files.zettacode2/hello_world.text/lse.txt +1 -0
- data/files.zettacode2/hello_world.text/lse64.txt +1 -0
- data/files.zettacode2/hello_world.text/lua.txt +12 -0
- data/files.zettacode2/hello_world.text/luna.txt +3 -0
- data/files.zettacode2/hello_world.text/m2000_interpreter.txt +5 -0
- data/files.zettacode2/hello_world.text/m4.txt +2 -0
- data/files.zettacode2/hello_world.text/maclisp.txt +3 -0
- data/files.zettacode2/hello_world.text/macro-10.txt +24 -0
- data/files.zettacode2/hello_world.text/macro-11.txt +28 -0
- data/files.zettacode2/hello_world.text/mad.txt +4 -0
- data/files.zettacode2/hello_world.text/make.txt +9 -0
- data/files.zettacode2/hello_world.text/malbolge.txt +7 -0
- data/files.zettacode2/hello_world.text/manool.txt +10 -0
- data/files.zettacode2/hello_world.text/maple.txt +4 -0
- data/files.zettacode2/hello_world.text/mathcad.txt +3 -0
- data/files.zettacode2/hello_world.text/mathematica}}_-_{{header|wolfram_language.txt +1 -0
- data/files.zettacode2/hello_world.text/matlab.txt +2 -0
- data/files.zettacode2/hello_world.text/maude.txt +13 -0
- data/files.zettacode2/hello_world.text/maxima.txt +1 -0
- data/files.zettacode2/hello_world.text/maxscript.txt +3 -0
- data/files.zettacode2/hello_world.text/mdl.txt +2 -0
- data/files.zettacode2/hello_world.text/mel.txt +3 -0
- data/files.zettacode2/hello_world.text/melonbasic.txt +3 -0
- data/files.zettacode2/hello_world.text/mercury.txt +8 -0
- data/files.zettacode2/hello_world.text/metafont.txt +1 -0
- data/files.zettacode2/hello_world.text/min.txt +1 -0
- data/files.zettacode2/hello_world.text/miniscript.txt +1 -0
- data/files.zettacode2/hello_world.text/minizinc.txt +2 -0
- data/files.zettacode2/hello_world.text/mips_assembly.txt +12 -0
- data/files.zettacode2/hello_world.text/mirc_scripting_language.txt +1 -0
- data/files.zettacode2/hello_world.text/ml-i.txt +1 -0
- data/files.zettacode2/hello_world.text/modula-2.txt +24 -0
- data/files.zettacode2/hello_world.text/modula-3.txt +7 -0
- data/files.zettacode2/hello_world.text/montilang.txt +1 -0
- data/files.zettacode2/hello_world.text/morfa.txt +7 -0
- data/files.zettacode2/hello_world.text/mosaic.txt +3 -0
- data/files.zettacode2/hello_world.text/muf.txt +4 -0
- data/files.zettacode2/hello_world.text/mumps.txt +1 -0
- data/files.zettacode2/hello_world.text/mydef.txt +27 -0
- data/files.zettacode2/hello_world.text/myrtlescript.txt +6 -0
- data/files.zettacode2/hello_world.text/mysql.txt +2 -0
- data/files.zettacode2/hello_world.text/mythryl.txt +2 -0
- data/files.zettacode2/hello_world.text/n-t-roff.txt +6 -0
- data/files.zettacode2/hello_world.text/nanoquery.txt +1 -0
- data/files.zettacode2/hello_world.text/neat.txt +2 -0
- data/files.zettacode2/hello_world.text/neko.txt +1 -0
- data/files.zettacode2/hello_world.text/nemerle.txt +13 -0
- data/files.zettacode2/hello_world.text/netrexx.txt +1 -0
- data/files.zettacode2/hello_world.text/never.txt +4 -0
- data/files.zettacode2/hello_world.text/newlisp.txt +2 -0
- data/files.zettacode2/hello_world.text/nickle.txt +1 -0
- data/files.zettacode2/hello_world.text/nim.txt +3 -0
- data/files.zettacode2/hello_world.text/nit.txt +1 -0
- data/files.zettacode2/hello_world.text/nix.txt +1 -0
- data/files.zettacode2/hello_world.text/nlp++.txt +5 -0
- data/files.zettacode2/hello_world.text/ns-hubasic.txt +6 -0
- data/files.zettacode2/hello_world.text/nyquist.txt +15 -0
- data/files.zettacode2/hello_world.text/oberon-2.txt +11 -0
- data/files.zettacode2/hello_world.text/objeck.txt +6 -0
- data/files.zettacode2/hello_world.text/objective-c.txt +42 -0
- data/files.zettacode2/hello_world.text/ocaml.txt +1 -0
- data/files.zettacode2/hello_world.text/occam.txt +5 -0
- data/files.zettacode2/hello_world.text/octave.txt +5 -0
- data/files.zettacode2/hello_world.text/odin.txt +6 -0
- data/files.zettacode2/hello_world.text/oforth.txt +1 -0
- data/files.zettacode2/hello_world.text/ol.txt +1 -0
- data/files.zettacode2/hello_world.text/onyx.txt +1 -0
- data/files.zettacode2/hello_world.text/ooc.txt +8 -0
- data/files.zettacode2/hello_world.text/oorexx.txt +4 -0
- data/files.zettacode2/hello_world.text/openlisp.txt +10 -0
- data/files.zettacode2/hello_world.text/openscad.txt +5 -0
- data/files.zettacode2/hello_world.text/oxygene.txt +25 -0
- data/files.zettacode2/hello_world.text/oz.txt +1 -0
- data/files.zettacode2/hello_world.text/pari-gp.txt +2 -0
- data/files.zettacode2/hello_world.text/pascal.txt +5 -0
- data/files.zettacode2/hello_world.text/pasm.txt +2 -0
- data/files.zettacode2/hello_world.text/pdp-11_assembly.txt +15 -0
- data/files.zettacode2/hello_world.text/pdp-1_assembly.txt +22 -0
- data/files.zettacode2/hello_world.text/pepsiscript.txt +16 -0
- data/files.zettacode2/hello_world.text/perl.txt +11 -0
- data/files.zettacode2/hello_world.text/peylang.txt +1 -0
- data/files.zettacode2/hello_world.text/pharo.txt +4 -0
- data/files.zettacode2/hello_world.text/phix.txt +4 -0
- data/files.zettacode2/hello_world.text/phl.txt +7 -0
- data/files.zettacode2/hello_world.text/php.txt +5 -0
- data/files.zettacode2/hello_world.text/picat.txt +1 -0
- data/files.zettacode2/hello_world.text/picolisp.txt +1 -0
- data/files.zettacode2/hello_world.text/pict.txt +6 -0
- data/files.zettacode2/hello_world.text/pikachu.txt +23 -0
- data/files.zettacode2/hello_world.text/pike.txt +3 -0
- data/files.zettacode2/hello_world.text/pilot.txt +1 -0
- data/files.zettacode2/hello_world.text/pir.txt +3 -0
- data/files.zettacode2/hello_world.text/pixilang.txt +1 -0
- data/files.zettacode2/hello_world.text/pl-i.txt +3 -0
- data/files.zettacode2/hello_world.text/pl-m.txt +13 -0
- data/files.zettacode2/hello_world.text/pl-sql.txt +21 -0
- data/files.zettacode2/hello_world.text/plain_english.txt +7 -0
- data/files.zettacode2/hello_world.text/plan.txt +14 -0
- data/files.zettacode2/hello_world.text/pony.txt +3 -0
- data/files.zettacode2/hello_world.text/pop11.txt +1 -0
- data/files.zettacode2/hello_world.text/portugol.txt +11 -0
- data/files.zettacode2/hello_world.text/postscript.txt +31 -0
- data/files.zettacode2/hello_world.text/potion.txt +1 -0
- data/files.zettacode2/hello_world.text/powerbasic.txt +7 -0
- data/files.zettacode2/hello_world.text/powershell.txt +4 -0
- data/files.zettacode2/hello_world.text/processing.txt +1 -0
- data/files.zettacode2/hello_world.text/prodos.txt +1 -0
- data/files.zettacode2/hello_world.text/programming_language.txt +5 -0
- data/files.zettacode2/hello_world.text/prolog.txt +1 -0
- data/files.zettacode2/hello_world.text/promal.txt +7 -0
- data/files.zettacode2/hello_world.text/psql.txt +7 -0
- data/files.zettacode2/hello_world.text/pure.txt +5 -0
- data/files.zettacode2/hello_world.text/purebasic.txt +5 -0
- data/files.zettacode2/hello_world.text/python.txt +19 -0
- data/files.zettacode2/hello_world.text/qb64.txt +1 -0
- data/files.zettacode2/hello_world.text/quackery.txt +1 -0
- data/files.zettacode2/hello_world.text/quill.txt +1 -0
- data/files.zettacode2/hello_world.text/quite_basic.txt +1 -0
- data/files.zettacode2/hello_world.text/r.txt +5 -0
- data/files.zettacode2/hello_world.text/ra.txt +8 -0
- data/files.zettacode2/hello_world.text/racket.txt +3 -0
- data/files.zettacode2/hello_world.text/raku.txt +4 -0
- data/files.zettacode2/hello_world.text/rasel.txt +1 -0
- data/files.zettacode2/hello_world.text/ratfor.txt +11 -0
- data/files.zettacode2/hello_world.text/raven.txt +1 -0
- data/files.zettacode2/hello_world.text/realbasic.txt +7 -0
- data/files.zettacode2/hello_world.text/rebol.txt +1 -0
- data/files.zettacode2/hello_world.text/red.txt +1 -0
- data/files.zettacode2/hello_world.text/relation.txt +4 -0
- data/files.zettacode2/hello_world.text/rescript.txt +2 -0
- data/files.zettacode2/hello_world.text/retro.txt +4 -0
- data/files.zettacode2/hello_world.text/rexx.txt +13 -0
- data/files.zettacode2/hello_world.text/ring.txt +1 -0
- data/files.zettacode2/hello_world.text/risc-v.txt +11 -0
- data/files.zettacode2/hello_world.text/rockstar.txt +1 -0
- data/files.zettacode2/hello_world.text/rtl-2.txt +12 -0
- data/files.zettacode2/hello_world.text/ruby.txt +11 -0
- data/files.zettacode2/hello_world.text/run_basic.txt +1 -0
- data/files.zettacode2/hello_world.text/rust.txt +13 -0
- data/files.zettacode2/hello_world.text/salmon.txt +9 -0
- data/files.zettacode2/hello_world.text/sas.txt +4 -0
- data/files.zettacode2/hello_world.text/sasl.txt +4 -0
- data/files.zettacode2/hello_world.text/sather.txt +5 -0
- data/files.zettacode2/hello_world.text/scala.txt +19 -0
- data/files.zettacode2/hello_world.text/scheme.txt +21 -0
- data/files.zettacode2/hello_world.text/scilab.txt +1 -0
- data/files.zettacode2/hello_world.text/scratchscript.txt +4 -0
- data/files.zettacode2/hello_world.text/sed.txt +3 -0
- data/files.zettacode2/hello_world.text/seed7.txt +6 -0
- data/files.zettacode2/hello_world.text/self.txt +1 -0
- data/files.zettacode2/hello_world.text/sensetalk.txt +1 -0
- data/files.zettacode2/hello_world.text/set_lang.txt +12 -0
- data/files.zettacode2/hello_world.text/setl.txt +1 -0
- data/files.zettacode2/hello_world.text/setl4.txt +1 -0
- data/files.zettacode2/hello_world.text/shen.txt +1 -0
- data/files.zettacode2/hello_world.text/shiny.txt +1 -0
- data/files.zettacode2/hello_world.text/sidef.txt +1 -0
- data/files.zettacode2/hello_world.text/simplecode.txt +3 -0
- data/files.zettacode2/hello_world.text/simpol.txt +2 -0
- data/files.zettacode2/hello_world.text/simula.txt +5 -0
- data/files.zettacode2/hello_world.text/sing.txt +7 -0
- data/files.zettacode2/hello_world.text/sisal.txt +10 -0
- data/files.zettacode2/hello_world.text/skookumscript.txt +3 -0
- data/files.zettacode2/hello_world.text/slate.txt +1 -0
- data/files.zettacode2/hello_world.text/slope.txt +1 -0
- data/files.zettacode2/hello_world.text/smalltalk.txt +4 -0
- data/files.zettacode2/hello_world.text/smart_basic.txt +1 -0
- data/files.zettacode2/hello_world.text/smilebasic.txt +1 -0
- data/files.zettacode2/hello_world.text/snobol4.txt +3 -0
- data/files.zettacode2/hello_world.text/snusp.txt +11 -0
- data/files.zettacode2/hello_world.text/soneking_assembly.txt +10 -0
- data/files.zettacode2/hello_world.text/sparc_assembly.txt +18 -0
- data/files.zettacode2/hello_world.text/sparkling.txt +1 -0
- data/files.zettacode2/hello_world.text/spl.txt +1 -0
- data/files.zettacode2/hello_world.text/sql.txt +12 -0
- data/files.zettacode2/hello_world.text/sql_pl.txt +35 -0
- data/files.zettacode2/hello_world.text/standard_ml.txt +1 -0
- data/files.zettacode2/hello_world.text/stata.txt +1 -0
- data/files.zettacode2/hello_world.text/suneido.txt +1 -0
- data/files.zettacode2/hello_world.text/swahili.txt +1 -0
- data/files.zettacode2/hello_world.text/swift.txt +4 -0
- data/files.zettacode2/hello_world.text/symsyn.txt +3 -0
- data/files.zettacode2/hello_world.text/tailspin.txt +1 -0
- data/files.zettacode2/hello_world.text/tcl.txt +5 -0
- data/files.zettacode2/hello_world.text/teco.txt +2 -0
- data/files.zettacode2/hello_world.text/tern.txt +1 -0
- data/files.zettacode2/hello_world.text/terra.txt +6 -0
- data/files.zettacode2/hello_world.text/terraform.txt +3 -0
- data/files.zettacode2/hello_world.text/testml.txt +2 -0
- data/files.zettacode2/hello_world.text/ti-83_basic.txt +2 -0
- data/files.zettacode2/hello_world.text/ti-89_basic.txt +1 -0
- data/files.zettacode2/hello_world.text/tiny_basic.txt +5 -0
- data/files.zettacode2/hello_world.text/tmg.txt +2 -0
- data/files.zettacode2/hello_world.text/torquescript.txt +1 -0
- data/files.zettacode2/hello_world.text/tpp.txt +1 -0
- data/files.zettacode2/hello_world.text/transact-sql.txt +2 -0
- data/files.zettacode2/hello_world.text/transd.txt +2 -0
- data/files.zettacode2/hello_world.text/transforth.txt +1 -0
- data/files.zettacode2/hello_world.text/trith.txt +1 -0
- data/files.zettacode2/hello_world.text/true_basic.txt +5 -0
- data/files.zettacode2/hello_world.text/tuscript.txt +8 -0
- data/files.zettacode2/hello_world.text/ubasic-4th.txt +1 -0
- data/files.zettacode2/hello_world.text/uniface.txt +3 -0
- data/files.zettacode2/hello_world.text/unison.txt +3 -0
- data/files.zettacode2/hello_world.text/unix_shell.txt +9 -0
- data/files.zettacode2/hello_world.text/unlambda.txt +1 -0
- data/files.zettacode2/hello_world.text/ursa.txt +1 -0
- data/files.zettacode2/hello_world.text/ursala.txt +10 -0
- data/files.zettacode2/hello_world.text/v.txt +1 -0
- data/files.zettacode2/hello_world.text/v_(vlang).txt +3 -0
- data/files.zettacode2/hello_world.text/vala.txt +3 -0
- data/files.zettacode2/hello_world.text/vax_assembly.txt +10 -0
- data/files.zettacode2/hello_world.text/vba.txt +6 -0
- data/files.zettacode2/hello_world.text/vbscript.txt +2 -0
- data/files.zettacode2/hello_world.text/vedit_macro_language.txt +1 -0
- data/files.zettacode2/hello_world.text/verbexx.txt +2 -0
- data/files.zettacode2/hello_world.text/verilog.txt +8 -0
- data/files.zettacode2/hello_world.text/vhdl.txt +16 -0
- data/files.zettacode2/hello_world.text/vim_script.txt +1 -0
- data/files.zettacode2/hello_world.text/visual_basic.txt +22 -0
- data/files.zettacode2/hello_world.text/visual_basic_.net.txt +7 -0
- data/files.zettacode2/hello_world.text/viua_vm_assembly.txt +6 -0
- data/files.zettacode2/hello_world.text/vtl-2.txt +1 -0
- data/files.zettacode2/hello_world.text/wart.txt +2 -0
- data/files.zettacode2/hello_world.text/wdte.txt +1 -0
- data/files.zettacode2/hello_world.text/webassembly.txt +38 -0
- data/files.zettacode2/hello_world.text/wee_basic.txt +2 -0
- data/files.zettacode2/hello_world.text/whenever.txt +2 -0
- data/files.zettacode2/hello_world.text/whiley.txt +5 -0
- data/files.zettacode2/hello_world.text/whitespace.txt +1 -0
- data/files.zettacode2/hello_world.text/wisp.txt +8 -0
- data/files.zettacode2/hello_world.text/wolfram_language.txt +1 -0
- data/files.zettacode2/hello_world.text/wren.txt +1 -0
- data/files.zettacode2/hello_world.text/x10.txt +8 -0
- data/files.zettacode2/hello_world.text/x86-64_assembly.txt +44 -0
- data/files.zettacode2/hello_world.text/x86_assembly.txt +37 -0
- data/files.zettacode2/hello_world.text/xbasic.txt +12 -0
- data/files.zettacode2/hello_world.text/xeec.txt +4 -0
- data/files.zettacode2/hello_world.text/xl.txt +2 -0
- data/files.zettacode2/hello_world.text/xlisp.txt +2 -0
- data/files.zettacode2/hello_world.text/xpath.txt +1 -0
- data/files.zettacode2/hello_world.text/xpl0.txt +3 -0
- data/files.zettacode2/hello_world.text/xslt.txt +5 -0
- data/files.zettacode2/hello_world.text/yabasic.txt +3 -0
- data/files.zettacode2/hello_world.text/yorick.txt +1 -0
- data/files.zettacode2/hello_world.text/z80_assembly.txt +21 -0
- data/files.zettacode2/hello_world.text/zig.txt +4 -0
- data/files.zettacode2/hello_world.text/zkl.txt +2 -0
- data/files.zettacode2/hello_world.text/zoea.txt +2 -0
- data/files.zettacode2/hello_world.text/zoea_visual.txt +1 -0
- data/files.zettacode2/hello_world.text/zoomscript.txt +5 -0
- data/files.zettacode2/hello_world.text/zx_spectrum_basic.txt +4 -0
- data/files.zettacode2/hello_world.text//340/256/211/340/256/257/340/256/277/340/256/260/340/257/215-uyir.txt +5 -0
- data/install/docker/.gitignore +2 -0
- data/install/docker/run +7 -0
- data/{vagrant → install/vagrant/debian}/.gitignore +0 -0
- data/{vagrant → install/vagrant/debian}/.ruby-version +0 -0
- data/{vagrant → install/vagrant/debian}/Vagrantfile +1 -1
- data/{vagrant → install/vagrant/debian}/install.sh +0 -0
- data/install/vagrant/opensuse/.gitignore +2 -0
- data/install/vagrant/opensuse/.ruby-version +1 -0
- data/install/vagrant/opensuse/Vagrantfile +29 -0
- data/lib/zettacode/parse/parse.rb +1 -1
- data/lib/zettacode/version.rb +1 -1
- metadata +761 -5
@@ -0,0 +1,293 @@
|
|
1
|
+
{{works with|as|Raspberry Pi}}
|
2
|
+
<syntaxhighlight lang="arm assembly">
|
3
|
+
|
4
|
+
/* ARM assembly Raspberry PI */
|
5
|
+
/* program arith.s */
|
6
|
+
/* Constantes */
|
7
|
+
.equ STDOUT, 1
|
8
|
+
.equ WRITE, 4
|
9
|
+
.equ EXIT, 1
|
10
|
+
|
11
|
+
/***********************/
|
12
|
+
/* Initialized data */
|
13
|
+
/***********************/
|
14
|
+
.data
|
15
|
+
szMessError: .asciz " Two numbers in command line please ! \n" @ message
|
16
|
+
szRetourLigne: .asciz "\n"
|
17
|
+
szMessResult: .asciz "Resultat " @ message result
|
18
|
+
sMessValeur: .fill 12, 1, ' '
|
19
|
+
.asciz "\n"
|
20
|
+
szMessAddition: .asciz "addition :"
|
21
|
+
szMessSoustraction: .asciz "soustraction :"
|
22
|
+
szMessMultiplication: .asciz "multiplication :"
|
23
|
+
szMessDivision: .asciz "division :"
|
24
|
+
szMessReste: .asciz "reste :"
|
25
|
+
|
26
|
+
/***********************/
|
27
|
+
/* No Initialized data */
|
28
|
+
/***********************/
|
29
|
+
.bss
|
30
|
+
iValeur: .skip 4 @ reserve 4 bytes in memory
|
31
|
+
|
32
|
+
.text
|
33
|
+
.global main
|
34
|
+
main:
|
35
|
+
push {fp,lr} @ save des 2 registres
|
36
|
+
add fp,sp,#8 @ fp <- adresse début
|
37
|
+
ldr r0,[fp] @ recup number of parameter in command line
|
38
|
+
cmp r0,#3
|
39
|
+
blt error
|
40
|
+
ldr r0,[fp,#8] @ adresse of 1er number
|
41
|
+
bl conversionAtoD
|
42
|
+
mov r3,r0
|
43
|
+
ldr r0,[fp,#12] @ adresse of 2eme number
|
44
|
+
bl conversionAtoD
|
45
|
+
mov r4,r0
|
46
|
+
@ addition
|
47
|
+
add r0,r3,r4
|
48
|
+
ldr r1,iAdrsMessValeur @ result in r0
|
49
|
+
bl conversion10S @ call function with 2 parameter (r0,r1)
|
50
|
+
ldr r0,iAdrszMessResult
|
51
|
+
bl affichageMess @ display message
|
52
|
+
ldr r0,iAdrszMessAddition
|
53
|
+
bl affichageMess @ display message
|
54
|
+
ldr r0,iAdrsMessValeur
|
55
|
+
bl affichageMess @ display message
|
56
|
+
@ soustraction
|
57
|
+
sub r0,r3,r4
|
58
|
+
ldr r1,=sMessValeur
|
59
|
+
bl conversion10S @ call function with 2 parameter (r0,r1)
|
60
|
+
ldr r0,iAdrszMessResult
|
61
|
+
bl affichageMess @ display message
|
62
|
+
ldr r0,iAdrszMessSoustraction
|
63
|
+
bl affichageMess @ display message
|
64
|
+
ldr r0,iAdrsMessValeur
|
65
|
+
bl affichageMess @ display message
|
66
|
+
|
67
|
+
@ multiplication
|
68
|
+
mul r0,r3,r4
|
69
|
+
ldr r1,=sMessValeur
|
70
|
+
bl conversion10S @ call function with 2 parameter (r0,r1)
|
71
|
+
ldr r0,iAdrszMessResult
|
72
|
+
bl affichageMess @ display message
|
73
|
+
ldr r0,iAdrszMessMultiplication
|
74
|
+
bl affichageMess @ display message
|
75
|
+
ldr r0,iAdrsMessValeur
|
76
|
+
bl affichageMess @ display message
|
77
|
+
|
78
|
+
@ division
|
79
|
+
mov r0,r3
|
80
|
+
mov r1,r4
|
81
|
+
bl division
|
82
|
+
mov r0,r2 @ quotient
|
83
|
+
ldr r1,=sMessValeur
|
84
|
+
bl conversion10S @ call function with 2 parameter (r0,r1)
|
85
|
+
ldr r0,iAdrszMessResult
|
86
|
+
bl affichageMess @ display message
|
87
|
+
ldr r0,iAdrszMessDivision
|
88
|
+
bl affichageMess @ display message
|
89
|
+
ldr r0,iAdrsMessValeur
|
90
|
+
bl affichageMess @ display message
|
91
|
+
|
92
|
+
mov r0,r3 @ remainder
|
93
|
+
ldr r1,=sMessValeur
|
94
|
+
bl conversion10S @ call function with 2 parameter (r0,r1)
|
95
|
+
ldr r0,iAdrszMessResult
|
96
|
+
bl affichageMess @ display message
|
97
|
+
ldr r0,iAdrszMessReste
|
98
|
+
bl affichageMess @ display message
|
99
|
+
ldr r0,iAdrsMessValeur
|
100
|
+
bl affichageMess @ display message
|
101
|
+
|
102
|
+
mov r0, #0 @ return code
|
103
|
+
b 100f
|
104
|
+
error:
|
105
|
+
ldr r0,iAdrszMessError
|
106
|
+
bl affichageMess @ call function with 1 parameter (r0)
|
107
|
+
mov r0, #1 @ return code
|
108
|
+
100: /* end of program */
|
109
|
+
mov r7, #EXIT @ request to exit program
|
110
|
+
swi 0 @ perform the system call
|
111
|
+
iAdrsMessValeur: .int sMessValeur
|
112
|
+
iAdrszMessResult: .int szMessResult
|
113
|
+
iAdrszMessError: .int szMessError
|
114
|
+
iAdrszMessAddition: .int szMessAddition
|
115
|
+
iAdrszMessSoustraction: .int szMessSoustraction
|
116
|
+
iAdrszMessMultiplication: .int szMessMultiplication
|
117
|
+
iAdrszMessDivision: .int szMessDivision
|
118
|
+
iAdrszMessReste: .int szMessReste
|
119
|
+
/******************************************************************/
|
120
|
+
/* affichage des messages avec calcul longueur */
|
121
|
+
/******************************************************************/
|
122
|
+
/* r0 contient l adresse du message */
|
123
|
+
affichageMess:
|
124
|
+
push {fp,lr} /* save des 2 registres */
|
125
|
+
push {r0,r1,r2,r7} /* save des autres registres */
|
126
|
+
mov r2,#0 /* compteur longueur */
|
127
|
+
1: /*calcul de la longueur */
|
128
|
+
ldrb r1,[r0,r2] /* recup octet position debut + indice */
|
129
|
+
cmp r1,#0 /* si 0 c est fini */
|
130
|
+
beq 1f
|
131
|
+
add r2,r2,#1 /* sinon on ajoute 1 */
|
132
|
+
b 1b
|
133
|
+
1: /* donc ici r2 contient la longueur du message */
|
134
|
+
mov r1,r0 /* adresse du message en r1 */
|
135
|
+
mov r0,#STDOUT /* code pour écrire sur la sortie standard Linux */
|
136
|
+
mov r7, #WRITE /* code de l appel systeme 'write' */
|
137
|
+
swi #0 /* appel systeme */
|
138
|
+
pop {r0,r1,r2,r7} /* restaur des autres registres */
|
139
|
+
pop {fp,lr} /* restaur des 2 registres */
|
140
|
+
bx lr /* retour procedure */
|
141
|
+
/***************************************************/
|
142
|
+
/* conversion registre en décimal signé */
|
143
|
+
/***************************************************/
|
144
|
+
/* r0 contient le registre */
|
145
|
+
/* r1 contient l adresse de la zone de conversion */
|
146
|
+
conversion10S:
|
147
|
+
push {fp,lr} /* save des 2 registres frame et retour */
|
148
|
+
push {r0-r5} /* save autres registres */
|
149
|
+
mov r2,r1 /* debut zone stockage */
|
150
|
+
mov r5,#'+' /* par defaut le signe est + */
|
151
|
+
cmp r0,#0 /* nombre négatif ? */
|
152
|
+
movlt r5,#'-' /* oui le signe est - */
|
153
|
+
mvnlt r0,r0 /* et inversion en valeur positive */
|
154
|
+
addlt r0,#1
|
155
|
+
mov r4,#10 /* longueur de la zone */
|
156
|
+
1: /* debut de boucle de conversion */
|
157
|
+
bl divisionpar10 /* division */
|
158
|
+
add r1,#48 /* ajout de 48 au reste pour conversion ascii */
|
159
|
+
strb r1,[r2,r4] /* stockage du byte en début de zone r5 + la position r4 */
|
160
|
+
sub r4,r4,#1 /* position précedente */
|
161
|
+
cmp r0,#0
|
162
|
+
bne 1b /* boucle si quotient different de zéro */
|
163
|
+
strb r5,[r2,r4] /* stockage du signe à la position courante */
|
164
|
+
subs r4,r4,#1 /* position précedente */
|
165
|
+
blt 100f /* si r4 < 0 fin */
|
166
|
+
/* sinon il faut completer le debut de la zone avec des blancs */
|
167
|
+
mov r3,#' ' /* caractere espace */
|
168
|
+
2:
|
169
|
+
strb r3,[r2,r4] /* stockage du byte */
|
170
|
+
subs r4,r4,#1 /* position précedente */
|
171
|
+
bge 2b /* boucle si r4 plus grand ou egal a zero */
|
172
|
+
100: /* fin standard de la fonction */
|
173
|
+
pop {r0-r5} /*restaur des autres registres */
|
174
|
+
pop {fp,lr} /* restaur des 2 registres frame et retour */
|
175
|
+
bx lr
|
176
|
+
|
177
|
+
/***************************************************/
|
178
|
+
/* division par 10 signé */
|
179
|
+
/* Thanks to http://thinkingeek.com/arm-assembler-raspberry-pi/*
|
180
|
+
/* and http://www.hackersdelight.org/ */
|
181
|
+
/***************************************************/
|
182
|
+
/* r0 contient le dividende */
|
183
|
+
/* r0 retourne le quotient */
|
184
|
+
/* r1 retourne le reste */
|
185
|
+
divisionpar10:
|
186
|
+
/* r0 contains the argument to be divided by 10 */
|
187
|
+
push {r2-r4} /* save autres registres */
|
188
|
+
mov r4,r0
|
189
|
+
ldr r3, .Ls_magic_number_10 /* r1 <- magic_number */
|
190
|
+
smull r1, r2, r3, r0 /* r1 <- Lower32Bits(r1*r0). r2 <- Upper32Bits(r1*r0) */
|
191
|
+
mov r2, r2, ASR #2 /* r2 <- r2 >> 2 */
|
192
|
+
mov r1, r0, LSR #31 /* r1 <- r0 >> 31 */
|
193
|
+
add r0, r2, r1 /* r0 <- r2 + r1 */
|
194
|
+
add r2,r0,r0, lsl #2 /* r2 <- r0 * 5 */
|
195
|
+
sub r1,r4,r2, lsl #1 /* r1 <- r4 - (r2 * 2) = r4 - (r0 * 10) */
|
196
|
+
pop {r2-r4}
|
197
|
+
bx lr /* leave function */
|
198
|
+
.align 4
|
199
|
+
.Ls_magic_number_10: .word 0x66666667
|
200
|
+
/******************************************************************/
|
201
|
+
/* Conversion d une chaine en nombre stocké dans un registre */
|
202
|
+
/******************************************************************/
|
203
|
+
/* r0 contient l adresse de la zone terminée par 0 ou 0A */
|
204
|
+
conversionAtoD:
|
205
|
+
push {fp,lr} /* save des 2 registres */
|
206
|
+
push {r1-r7} /* save des autres registres */
|
207
|
+
mov r1,#0
|
208
|
+
mov r2,#10 /* facteur */
|
209
|
+
mov r3,#0 /* compteur */
|
210
|
+
mov r4,r0 /* save de l adresse dans r4 */
|
211
|
+
mov r6,#0 /* signe positif par defaut */
|
212
|
+
mov r0,#0 /* initialisation à 0 */
|
213
|
+
1: /* boucle d élimination des blancs du debut */
|
214
|
+
ldrb r5,[r4,r3] /* chargement dans r5 de l octet situé au debut + la position */
|
215
|
+
cmp r5,#0 /* fin de chaine -> fin routine */
|
216
|
+
beq 100f
|
217
|
+
cmp r5,#0x0A /* fin de chaine -> fin routine */
|
218
|
+
beq 100f
|
219
|
+
cmp r5,#' ' /* blanc au début */
|
220
|
+
bne 1f /* non on continue */
|
221
|
+
add r3,r3,#1 /* oui on boucle en avançant d un octet */
|
222
|
+
b 1b
|
223
|
+
1:
|
224
|
+
cmp r5,#'-' /* premier caracteres est - */
|
225
|
+
moveq r6,#1 /* maj du registre r6 avec 1 */
|
226
|
+
beq 3f /* puis on avance à la position suivante */
|
227
|
+
2: /* debut de boucle de traitement des chiffres */
|
228
|
+
cmp r5,#'0' /* caractere n est pas un chiffre */
|
229
|
+
blt 3f
|
230
|
+
cmp r5,#'9' /* caractere n est pas un chiffre */
|
231
|
+
bgt 3f
|
232
|
+
/* caractère est un chiffre */
|
233
|
+
sub r5,#48
|
234
|
+
ldr r1,iMaxi /*verifier le dépassement du registre */
|
235
|
+
cmp r0,r1
|
236
|
+
bgt 99f
|
237
|
+
mul r0,r2,r0 /* multiplier par facteur */
|
238
|
+
add r0,r5 /* ajout à r0 */
|
239
|
+
3:
|
240
|
+
add r3,r3,#1 /* avance à la position suivante */
|
241
|
+
ldrb r5,[r4,r3] /* chargement de l octet */
|
242
|
+
cmp r5,#0 /* fin de chaine -> fin routine */
|
243
|
+
beq 4f
|
244
|
+
cmp r5,#10 /* fin de chaine -> fin routine */
|
245
|
+
beq 4f
|
246
|
+
b 2b /* boucler */
|
247
|
+
4:
|
248
|
+
cmp r6,#1 /* test du registre r6 pour le signe */
|
249
|
+
bne 100f
|
250
|
+
mov r1,#-1
|
251
|
+
mul r0,r1,r0 /* si negatif, on multiplie par -1 */
|
252
|
+
b 100f
|
253
|
+
99: /* erreur de dépassement */
|
254
|
+
ldr r1,=szMessErrDep
|
255
|
+
bl afficheerreur
|
256
|
+
mov r0,#0 /* en cas d erreur on retourne toujours zero */
|
257
|
+
100:
|
258
|
+
pop {r1-r7} /* restaur des autres registres */
|
259
|
+
pop {fp,lr} /* restaur des 2 registres */
|
260
|
+
bx lr /* retour procedure */
|
261
|
+
/* constante programme */
|
262
|
+
iMaxi: .int 1073741824
|
263
|
+
szMessErrDep: .asciz "Nombre trop grand : dépassement de capacite de 32 bits. :\n"
|
264
|
+
.align 4
|
265
|
+
/*=============================================*/
|
266
|
+
/* division entiere non signée */
|
267
|
+
/*============================================*/
|
268
|
+
division:
|
269
|
+
/* r0 contains N */
|
270
|
+
/* r1 contains D */
|
271
|
+
/* r2 contains Q */
|
272
|
+
/* r3 contains R */
|
273
|
+
push {r4, lr}
|
274
|
+
mov r2, #0 /* r2 ? 0 */
|
275
|
+
mov r3, #0 /* r3 ? 0 */
|
276
|
+
mov r4, #32 /* r4 ? 32 */
|
277
|
+
b 2f
|
278
|
+
1:
|
279
|
+
movs r0, r0, LSL #1 /* r0 ? r0 << 1 updating cpsr (sets C if 31st bit of r0 was 1) */
|
280
|
+
adc r3, r3, r3 /* r3 ? r3 + r3 + C. This is equivalent to r3 ? (r3 << 1) + C */
|
281
|
+
|
282
|
+
cmp r3, r1 /* compute r3 - r1 and update cpsr */
|
283
|
+
subhs r3, r3, r1 /* if r3 >= r1 (C=1) then r3 ? r3 - r1 */
|
284
|
+
adc r2, r2, r2 /* r2 ? r2 + r2 + C. This is equivalent to r2 ? (r2 << 1) + C */
|
285
|
+
2:
|
286
|
+
subs r4, r4, #1 /* r4 ? r4 - 1 */
|
287
|
+
bpl 1b /* if r4 >= 0 (N=0) then branch to .Lloop1 */
|
288
|
+
|
289
|
+
pop {r4, lr}
|
290
|
+
bx lr
|
291
|
+
|
292
|
+
|
293
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
|
2
|
+
a: to :integer input "give me the first number : "
|
3
|
+
b: to :integer input "give me the second number : "
|
4
|
+
|
5
|
+
print [a "+" b "=" a+b]
|
6
|
+
print [a "-" b "=" a-b]
|
7
|
+
print [a "*" b "=" a*b]
|
8
|
+
print [a "/" b "=" a/b]
|
9
|
+
print [a "%" b "=" a%b]
|
10
|
+
print [a "^" b "=" a^b]
|
@@ -0,0 +1,17 @@
|
|
1
|
+
int a = -12;
|
2
|
+
int b = 7;
|
3
|
+
|
4
|
+
int suma = a + b;
|
5
|
+
int resta = a - b;
|
6
|
+
int producto = a * b;
|
7
|
+
real division = a / b;
|
8
|
+
int resto = a % b;
|
9
|
+
int expo = a ** b;
|
10
|
+
|
11
|
+
write("Siendo dos enteros a = -12 y b = 7");
|
12
|
+
write(" suma de a + b = ", suma);
|
13
|
+
write(" resta de a - b = ", resta);
|
14
|
+
write(" producto de a * b = ", producto);
|
15
|
+
write(" división de a / b = ", division);
|
16
|
+
write(" resto de a mod b = ", resto);
|
17
|
+
write("exponenciación a ^ b = ", expo);
|
@@ -0,0 +1,20 @@
|
|
1
|
+
The quotient rounds towards 0 if both inputs are integers or towards negative infinity if either input is floating point. The sign of the remainder is always the same as the sign of the first parameter (dividend).
|
2
|
+
Gui, Add, Edit, va, 5
|
3
|
+
Gui, Add, Edit, vb, -3
|
4
|
+
Gui, Add, Button, Default, Compute
|
5
|
+
Gui, Show
|
6
|
+
Return
|
7
|
+
|
8
|
+
ButtonCompute:
|
9
|
+
Gui, Submit
|
10
|
+
MsgBox,%
|
11
|
+
(Join`s"`n"
|
12
|
+
a "+" b " = " a+b
|
13
|
+
a "-" b " = " a-b
|
14
|
+
a "*" b " = " a*b
|
15
|
+
a "//" b " = " a//b " remainder " Mod(a,b)
|
16
|
+
a "**" b " = " a**b
|
17
|
+
)
|
18
|
+
; fallthrough
|
19
|
+
GuiClose:
|
20
|
+
ExitApp
|
@@ -0,0 +1,13 @@
|
|
1
|
+
Method "arithmetic demo_,_" is
|
2
|
+
[
|
3
|
+
a : integer,
|
4
|
+
b : integer
|
5
|
+
|
|
6
|
+
Print: “a + b”;
|
7
|
+
Print: “a - b”;
|
8
|
+
Print: “a × b”; // or a * b
|
9
|
+
Print: “a ÷ b”; // or a / b, rounds toward negative infinity
|
10
|
+
Print: “a mod b”; // sign matches second argument
|
11
|
+
Print: “a ^ b”;
|
12
|
+
];
|
13
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/^[ \t]*-?[0-9]+[ \t]+-?[0-9]+[ \t]*$/ {
|
2
|
+
print "add:", $1 + $2
|
3
|
+
print "sub:", $1 - $2
|
4
|
+
print "mul:", $1 * $2
|
5
|
+
print "div:", int($1 / $2) # truncates toward zero
|
6
|
+
print "mod:", $1 % $2 # same sign as first operand
|
7
|
+
print "exp:", $1 ^ $2
|
8
|
+
exit }
|
9
|
+
|
10
|
+
For division and modulus, Awk should act like C.
|
11
|
+
|
12
|
+
'''Exponentiation's note:''' With [[nawk]] or [[gawk]], <code>$1 ** $2</code> acts like <code>$1 ^ $2</code>. With [[mawk]], <code>$1 ** $2</code> is a syntax error. Nawk allows <code>**</code>, but its manual page only has <code>^</code>. Gawk's manual warns, ''"The POSIX standard only specifies the use of `^' for exponentiation. For maximum portability, do not use the `**' operator."''
|
@@ -0,0 +1,56 @@
|
|
1
|
+
==={{header|Applesoft BASIC}}===
|
2
|
+
Same code as [[#Commodore_BASIC|Commodore BASIC]]
|
3
|
+
==={{header|BaCon}}===
|
4
|
+
' Arthimetic/Integer
|
5
|
+
DECLARE a%, b%
|
6
|
+
INPUT "Enter integer A: ", a%
|
7
|
+
INPUT "Enter integer B: ", b%
|
8
|
+
PRINT
|
9
|
+
|
10
|
+
PRINT a%, " + ", b%, " is ", a% + b%
|
11
|
+
PRINT a%, " - ", b%, " is ", a% - b%
|
12
|
+
PRINT a%, " * ", b%, " is ", a% * b%
|
13
|
+
PRINT a%, " / ", b%, " is ", a% / b%, ", trucation toward zero"
|
14
|
+
PRINT "MOD(", a%, ", ", b%, ") is ", MOD(a%, b%), ", same sign as first operand"
|
15
|
+
PRINT "POW(", a%, ", ", b%, ") is ", INT(POW(a%, b%))
|
16
|
+
|
17
|
+
==={{header|Commodore BASIC}}===
|
18
|
+
10 INPUT "ENTER A NUMBER"; A%
|
19
|
+
20 INPUT "ENTER ANOTHER NUMBER"; B%
|
20
|
+
30 PRINT "ADDITION:";A%;"+";B%;"=";A%+B%
|
21
|
+
40 PRINT "SUBTRACTION:";A%;"-";B%;"=";A%-B%
|
22
|
+
50 PRINT "MULTIPLICATION:";A%;"*";B%;"=";A%*B%
|
23
|
+
60 PRINT "INTEGER DIVISION:";A%;"/";B%;"=";INT(A%/B%)
|
24
|
+
70 PRINT "REMAINDER OR MODULO:";A%;"%";B%;"=";A%-INT(A%/B%)*B%
|
25
|
+
80 PRINT "POWER:";A%;"^";B%;"=";A%^B%
|
26
|
+
|
27
|
+
==={{header|True BASIC}}===
|
28
|
+
|
29
|
+
! RosettaCode: Integer Arithmetic
|
30
|
+
! True BASIC v6.007
|
31
|
+
! Translated from BaCon example.
|
32
|
+
PROGRAM Integer_Arithmetic
|
33
|
+
INPUT PROMPT "Enter integer A: ": a
|
34
|
+
INPUT PROMPT "Enter integer B: ": b
|
35
|
+
PRINT
|
36
|
+
PRINT a;" + ";b;" is ";a+b
|
37
|
+
PRINT a;" - ";b;" is ";a-b
|
38
|
+
PRINT a;" * ";b;" is ";a*b
|
39
|
+
PRINT a;" / ";b;" is ";INT(a/b);
|
40
|
+
PRINT "MOD(";a;", ";b;") is "; MOD(a,b)
|
41
|
+
PRINT "POW(";a;", ";b;") is ";INT(a^b)
|
42
|
+
GET KEY done
|
43
|
+
END
|
44
|
+
|
45
|
+
==={{header|QBasic}}===
|
46
|
+
{{works with|QuickBasic|4.5}}
|
47
|
+
function math(a!, b!)
|
48
|
+
print a + b
|
49
|
+
print a - b
|
50
|
+
print a * b
|
51
|
+
print a / b
|
52
|
+
print a mod b
|
53
|
+
end function
|
54
|
+
Truncate towards: 0
|
55
|
+
|
56
|
+
Remainder sign matches: first operand
|
@@ -0,0 +1,11 @@
|
|
1
|
+
|
2
|
+
input "enter a number ?", a
|
3
|
+
input "enter another number ?", b
|
4
|
+
|
5
|
+
print "addition " + a + " + " + b + " = " + (a + b)
|
6
|
+
print "subtraction " + a + " - " + b + " = " + (a - b)
|
7
|
+
print "multiplication " + a + " * " + b + " = " + (a * b)
|
8
|
+
print "integer division " + a + " \ " + b + " = " + (a \ b)
|
9
|
+
print "remainder or modulo " + a + " % " + b + " = " + (a % b)
|
10
|
+
print "power " + a + " ^ " + b + " = " + (a ^ b)
|
11
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
INPUT "Enter the first integer: " first%
|
2
|
+
INPUT "Enter the second integer: " second%
|
3
|
+
|
4
|
+
PRINT "The sum is " ; first% + second%
|
5
|
+
PRINT "The difference is " ; first% - second%
|
6
|
+
PRINT "The product is " ; first% * second%
|
7
|
+
PRINT "The integer quotient is " ; first% DIV second% " (rounds towards 0)"
|
8
|
+
PRINT "The remainder is " ; first% MOD second% " (sign matches first operand)"
|
9
|
+
PRINT "The first raised to the power of the second is " ; first% ^ second%
|
@@ -0,0 +1,22 @@
|
|
1
|
+
•Out "Enter number 1: "
|
2
|
+
a ← •BQN •GetLine @
|
3
|
+
•Out "Enter number 2: "
|
4
|
+
b ← •BQN •GetLine @
|
5
|
+
|
6
|
+
•Show a + b
|
7
|
+
•Show a - b
|
8
|
+
•Show a × b
|
9
|
+
•Show a ÷ b
|
10
|
+
•Show b | a
|
11
|
+
•Show a ⋆ b
|
12
|
+
Enter number 1:
|
13
|
+
12
|
14
|
+
Enter number 2:
|
15
|
+
2
|
16
|
+
14
|
17
|
+
10
|
18
|
+
24
|
19
|
+
6
|
20
|
+
0
|
21
|
+
144
|
22
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
The remainder returned by mod is non-negative. Furthermore, <code>div$(!a.!d)*!d+mod$(!a.!d):!a</code> for all integer <code>!a</code> and <code>!d</code>, <code>!d:~0</code>.
|
2
|
+
( enter
|
3
|
+
= put$"Enter two integer numbers, separated by space:"
|
4
|
+
& get':(~/#?k_~/#?m|quit:?k)
|
5
|
+
| out
|
6
|
+
$ "You must enter two integer numbers! Enter \"quit\" if you don't know how to do that."
|
7
|
+
& !enter
|
8
|
+
)
|
9
|
+
& !enter
|
10
|
+
& !k:~quit
|
11
|
+
& out$("You entered" !k and !m ". Now look:")
|
12
|
+
& out$("Sum:" !k+!m)
|
13
|
+
& out$("Difference:" !k+-1*!m)
|
14
|
+
& out$("Product:" !k*!m)
|
15
|
+
& out$("Integer division:" div$(!k.!m))
|
16
|
+
& out$("Remainder:" mod$(!k.!m))
|
17
|
+
& out$("Exponentiation:" !k^!m)
|
18
|
+
& done;
|
19
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
#include <iostream>
|
2
|
+
|
3
|
+
int main()
|
4
|
+
{
|
5
|
+
int a, b;
|
6
|
+
std::cin >> a >> b;
|
7
|
+
std::cout << "a+b = " << a+b << "\n";
|
8
|
+
std::cout << "a-b = " << a-b << "\n";
|
9
|
+
std::cout << "a*b = " << a*b << "\n";
|
10
|
+
std::cout << "a/b = " << a/b << ", remainder " << a%b << "\n";
|
11
|
+
return 0;
|
12
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
#include <stdio.h>
|
2
|
+
#include <stdlib.h>
|
3
|
+
|
4
|
+
int main(int argc, char *argv[])
|
5
|
+
{
|
6
|
+
int a, b;
|
7
|
+
if (argc < 3) exit(1);
|
8
|
+
b = atoi(argv[--argc]);
|
9
|
+
if (b == 0) exit(2);
|
10
|
+
a = atoi(argv[--argc]);
|
11
|
+
printf("a+b = %d\n", a+b);
|
12
|
+
printf("a-b = %d\n", a-b);
|
13
|
+
printf("a*b = %d\n", a*b);
|
14
|
+
printf("a/b = %d\n", a/b); /* truncates towards 0 (in C99) */
|
15
|
+
printf("a%%b = %d\n", a%b); /* same sign as first operand (in C99) */
|
16
|
+
return 0;
|
17
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
using System;
|
2
|
+
|
3
|
+
class Program
|
4
|
+
{
|
5
|
+
static void Main(string[] args)
|
6
|
+
{
|
7
|
+
int a = Convert.ToInt32(args[0]);
|
8
|
+
int b = Convert.ToInt32(args[1]);
|
9
|
+
|
10
|
+
Console.WriteLine("{0} + {1} = {2}", a, b, a + b);
|
11
|
+
Console.WriteLine("{0} - {1} = {2}", a, b, a - b);
|
12
|
+
Console.WriteLine("{0} * {1} = {2}", a, b, a * b);
|
13
|
+
Console.WriteLine("{0} / {1} = {2}", a, b, a / b); // truncates towards 0
|
14
|
+
Console.WriteLine("{0} % {1} = {2}", a, b, a % b); // matches sign of first operand
|
15
|
+
Console.WriteLine("{0} to the power of {1} = {2}", a, b, Math.Pow(a, b));
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
|
2
|
+
Number Soup.
|
3
|
+
|
4
|
+
Only reads single values.
|
5
|
+
|
6
|
+
Ingredients.
|
7
|
+
1 g Numbers
|
8
|
+
3 g Water
|
9
|
+
5 g Soup
|
10
|
+
|
11
|
+
Method.
|
12
|
+
Take Numbers from refrigerator.
|
13
|
+
Take Soup from refrigerator.
|
14
|
+
Put Numbers into 1st mixing bowl.
|
15
|
+
Add Soup into the 1st mixing bowl.
|
16
|
+
Pour contents of the 1st mixing bowl into 1st baking dish.
|
17
|
+
Clean 1st mixing bowl.
|
18
|
+
Put Numbers into 1st mixing bowl.
|
19
|
+
Remove Soup from 1st mixing bowl.
|
20
|
+
Pour contents of the 1st mixing bowl into 2nd baking dish.
|
21
|
+
Clean 1st mixing bowl.
|
22
|
+
Put Numbers into 1st mixing bowl.
|
23
|
+
Combine Soup into 1st mixing bowl.
|
24
|
+
Pour contents of the 1st mixing bowl into 3rd baking dish.
|
25
|
+
Clean 1st mixing bowl.
|
26
|
+
Put Numbers into 1st mixing bowl.
|
27
|
+
Divide Soup into 1st mixing bowl.
|
28
|
+
Pour contents of the 1st mixing bowl into 4th baking dish.
|
29
|
+
Clean 1st mixing bowl.
|
30
|
+
Put Water into 1st mixing bowl.
|
31
|
+
Verb the Soup.
|
32
|
+
Combine Numbers into 1st mixing bowl.
|
33
|
+
Verb the Soup until verbed.
|
34
|
+
Pour contents of the 1st mixing bowl into 5th baking dish.
|
35
|
+
Clean 1st mixing bowl.
|
36
|
+
|
37
|
+
Serves 5.
|
@@ -0,0 +1,11 @@
|
|
1
|
+
procedure Test( a, b )
|
2
|
+
? "a+b", a + b
|
3
|
+
? "a-b", a - b
|
4
|
+
? "a*b", a * b
|
5
|
+
// The quotient isn't integer, so we use the Int() function, which truncates it downward.
|
6
|
+
? "a/b", Int( a / b )
|
7
|
+
// Remainder:
|
8
|
+
? "a%b", a % b
|
9
|
+
// Exponentiation is also a base arithmetic operation
|
10
|
+
? "a**b", a ** b
|
11
|
+
return
|
@@ -0,0 +1,18 @@
|
|
1
|
+
(defn myfunc []
|
2
|
+
(println "Enter x and y")
|
3
|
+
(let [x (read), y (read)]
|
4
|
+
(doseq [op '(+ - * / Math/pow rem)]
|
5
|
+
(let [exp (list op x y)]
|
6
|
+
(printf "%s=%s\n" exp (eval exp))))))
|
7
|
+
|
8
|
+
user=> (myfunc)
|
9
|
+
Enter x and y
|
10
|
+
3
|
11
|
+
6
|
12
|
+
(+ 3 6)=9
|
13
|
+
(- 3 6)=-3
|
14
|
+
(* 3 6)=18
|
15
|
+
(/ 3 6)=1/2
|
16
|
+
(Math/pow 3 6)=729.0
|
17
|
+
(rem 3 6)=3
|
18
|
+
nil
|