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,32 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
(defmodule arith
|
4
|
+
(export all))
|
5
|
+
|
6
|
+
(defun demo-arith ()
|
7
|
+
(case (: io fread '"Please enter two integers: " '"~d~d")
|
8
|
+
((tuple 'ok (a b))
|
9
|
+
(: io format '"~p + ~p = ~p~n" (list a b (+ a b)))
|
10
|
+
(: io format '"~p - ~p = ~p~n" (list a b (- a b)))
|
11
|
+
(: io format '"~p * ~p = ~p~n" (list a b (* a b)))
|
12
|
+
(: io format '"~p^~p = ~p~n" (list a b (: math pow a b)))
|
13
|
+
; div truncates towards zero
|
14
|
+
(: io format '"~p div ~p = ~p~n" (list a b (div a b)))
|
15
|
+
; rem's result takes the same sign as the first operand
|
16
|
+
(: io format '"~p rem ~p = ~p~n" (list a b (rem a b))))))
|
17
|
+
|
18
|
+
|
19
|
+
Usage from the LFE REPL:
|
20
|
+
|
21
|
+
> (slurp '"arith.lfe")
|
22
|
+
#(ok arith)
|
23
|
+
> (demo-arith)
|
24
|
+
Please enter two integers: 2 8
|
25
|
+
2 + 8 = 10
|
26
|
+
2 - 8 = -6
|
27
|
+
2 * 8 = 16
|
28
|
+
2^8 = 256.0
|
29
|
+
2 div 8 = 0
|
30
|
+
2 rem 8 = 2
|
31
|
+
ok
|
32
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
Note that raising to a power can display very large integers without going to approximate power-of-ten notation.
|
2
|
+
|
3
|
+
input "Enter the first integer: "; first
|
4
|
+
input "Enter the second integer: "; second
|
5
|
+
|
6
|
+
print "The sum is " ; first + second
|
7
|
+
print "The difference is " ; first -second
|
8
|
+
print "The product is " ; first *second
|
9
|
+
if second <>0 then print "The integer quotient is " ; int( first /second); " (rounds towards 0)" else print "Division by zero not allowed."
|
10
|
+
print "The remainder is " ; first MOD second; " (sign matches first operand)"
|
11
|
+
print "The first raised to the power of the second is " ; first ^second
|
12
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Arithmetic/Integer, in LIL
|
2
|
+
write "Enter two numbers separated by space: "
|
3
|
+
if {[canread]} {set line [readline]}
|
4
|
+
print
|
5
|
+
|
6
|
+
set a [index $line 0]
|
7
|
+
set b [index $line 1]
|
8
|
+
print "A is $a"", B is $b"
|
9
|
+
print "Sum A + B is [expr $a + $b]"
|
10
|
+
print "Difference A - B is [expr $a - $b]"
|
11
|
+
print "Product A * B is [expr $a * $b]"
|
12
|
+
print "Integer Quotient A \\ B is [expr $a \ $b], truncates toward zero"
|
13
|
+
print "Remainder A % B is [expr $a % $b], sign follows first operand"
|
14
|
+
print "LIL has no exponentiation expression operator"
|
@@ -0,0 +1,10 @@
|
|
1
|
+
-- X, Y: 2 editable field members, shown as sprites in the current GUI
|
2
|
+
x = integer(member("X").text)
|
3
|
+
y = integer(member("Y").text)
|
4
|
+
|
5
|
+
put "Sum: " , x + y
|
6
|
+
put "Difference: ", x - y
|
7
|
+
put "Product: " , x * y
|
8
|
+
put "Quotient: " , x / y -- Truncated towards zero
|
9
|
+
put "Remainder: " , x mod y -- Result has sign of left operand
|
10
|
+
put "Exponent: " , power(x, y)
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Maybe you need to import the mathematical funcions
|
2
|
+
# from Tcl with:
|
3
|
+
# eval("namespace path ::tcl::mathfunc");
|
4
|
+
|
5
|
+
void main() {
|
6
|
+
int a, b;
|
7
|
+
puts("Enter two integers:");
|
8
|
+
a = (int)(gets(stdin));
|
9
|
+
b = (int)(gets(stdin));
|
10
|
+
puts("${a} + ${b} = ${a+b}");
|
11
|
+
puts("${a} - ${b} = ${a-b}");
|
12
|
+
puts("${a} * ${b} = ${a*b}");
|
13
|
+
puts("${a} / ${b} = ${a/b}, remainder ${a%b}");
|
14
|
+
puts("${a} to the power of ${b} = ${(int)pow(a,b)}");
|
15
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
ask "enter 2 numbers (comma separated)"
|
2
|
+
if it is not empty then
|
3
|
+
put item 1 of it into n1
|
4
|
+
put item 2 of it into n2
|
5
|
+
put sum(n1,n2) into ai["sum"]
|
6
|
+
put n1 * n2 into ai["product"]
|
7
|
+
put n1 div n2 into ai["quotient"] -- truncates
|
8
|
+
put n1 mod n2 into ai["remainder"]
|
9
|
+
put n1^n2 into ai["power"]
|
10
|
+
combine ai using comma and colon
|
11
|
+
put ai
|
12
|
+
end if
|
13
|
+
Examples-2,4 - power:16,product:-8,quotient:0,remainder:-2,sum:2
|
14
|
+
2,-4 - power:0.0625,product:-8,quotient:0,remainder:2,sum:-2
|
15
|
+
-2,-4 - power:0.0625,product:8,quotient:0,remainder:-2,sum:-6
|
16
|
+
2,4 - power:16,product:8,quotient:0,remainder:2,sum:6
|
17
|
+
11,4 - power:14641,product:44,quotient:2,remainder:3,sum:15
|
@@ -0,0 +1,11 @@
|
|
1
|
+
to operate :a :b
|
2
|
+
(print [a =] :a)
|
3
|
+
(print [b =] :b)
|
4
|
+
(print [a + b =] :a + :b)
|
5
|
+
(print [a - b =] :a - :b)
|
6
|
+
(print [a * b =] :a * :b)
|
7
|
+
(print [a / b =] int :a / :b)
|
8
|
+
(print [a mod b =] modulo :a :b)
|
9
|
+
end
|
10
|
+
|
11
|
+
Each infix operator also has a prefix synonym (sum, difference, product, quotient). Sum and product can also have arity greater than two when used in parentheses (sum 1 2 3). Infix operators in general have high precedence; you may need to enclose their arguments in parentheses to obtain the correct expression.
|
@@ -0,0 +1,9 @@
|
|
1
|
+
local x = io.read()
|
2
|
+
local y = io.read()
|
3
|
+
|
4
|
+
print ("Sum: " , (x + y))
|
5
|
+
print ("Difference: ", (x - y))
|
6
|
+
print ("Product: " , (x * y))
|
7
|
+
print ("Quotient: " , (x / y)) -- Does not truncate
|
8
|
+
print ("Remainder: " , (x % y)) -- Result has sign of right operand
|
9
|
+
print ("Exponent: " , (x ^ y))
|
@@ -0,0 +1,54 @@
|
|
1
|
+
We can use variables with %, which are double inside with no decimal part. These can have 17 digits. Also A%=1.5 make it 2, not 1. This has a tricky situation: A%=1/2 give 1 to A%. We can use FLOOR() or INT() is the same, or CEIL(), and there is a BANK() which is a Banker Round: BANK(2.5)=2 and BANK(3.5)=4.
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
<syntaxhighlight lang="m2000 interpreter">
|
7
|
+
MODULE LikeCommodoreBasic {
|
8
|
+
\\ ADDITION: EUCLIDEAN DIV# & MOD# AND ** FOR POWER INCLUDING ^
|
9
|
+
10 INPUT "ENTER A NUMBER:"; A%
|
10
|
+
20 INPUT "ENTER ANOTHER NUMBER:"; B%
|
11
|
+
30 PRINT "ADDITION:";A%;"+";B%;"=";A%+B%
|
12
|
+
40 PRINT "SUBTRACTION:";A%;"-";B%;"=";A%-B%
|
13
|
+
50 PRINT "MULTIPLICATION:";A%;"*";B%;"=";A%*B%
|
14
|
+
60 PRINT "INTEGER DIVISION:";A%;"DIV";B%;"=";A% DIV B%
|
15
|
+
65 PRINT "INTEGER EUCLIDEAN DIVISION:";A%;"DIV";B%;"=";A% DIV# B%
|
16
|
+
70 PRINT "REMAINDER OR MODULO:";A%;"MOD";B%;"=";A% MOD B%
|
17
|
+
75 PRINT "EUCLIDEAN REMAINDER OR MODULO:";A%;"MOD#";B%;"=";A% MOD# B%
|
18
|
+
80 PRINT "POWER:";A%;"^";B%;"=";A%^B%
|
19
|
+
90 PRINT "POWER:";A%;"**";B%;"=";A%**B%
|
20
|
+
}
|
21
|
+
LikeCommodoreBasic
|
22
|
+
|
23
|
+
|
24
|
+
Module IntegerTypes {
|
25
|
+
a=12% ' Integer 16 bit
|
26
|
+
b=12& ' Long 32 bit
|
27
|
+
c=12@' Decimal (29 digits)
|
28
|
+
Def ExpType$(x)=Type$(x)
|
29
|
+
Print ExpType$(a+1)="Double"
|
30
|
+
Print ExpType$(a+1%)="Integer"
|
31
|
+
Print ExpType$(a div 5)="Double"
|
32
|
+
Print ExpType$(a div 5%)="Double"
|
33
|
+
Print ExpType$(a mod 5)="Double"
|
34
|
+
Print ExpType$(a mod 5%)="Double"
|
35
|
+
Print ExpType$(a**2)="Double"
|
36
|
+
|
37
|
+
Print ExpType$(b+1)="Double"
|
38
|
+
Print ExpType$(b+1&)="Long"
|
39
|
+
Print ExpType$(b div 5)="Double"
|
40
|
+
Print ExpType$(b div 5&)="Double"
|
41
|
+
Print ExpType$(b mod 5)="Double"
|
42
|
+
Print ExpType$(b mod 5&)="Double"
|
43
|
+
Print ExpType$(b**2)="Double"
|
44
|
+
|
45
|
+
Print ExpType$(c+1)="Decimal"
|
46
|
+
Print ExpType$(c+1@)="Decimal"
|
47
|
+
Print ExpType$(c div 5)="Decimal"
|
48
|
+
Print ExpType$(c div 5@)="Decimal"
|
49
|
+
Print ExpType$(c mod 5)="Decimal"
|
50
|
+
Print ExpType$(c mod 5@)="Decimal"
|
51
|
+
Print ExpType$(c**2)="Double"
|
52
|
+
}
|
53
|
+
IntegerTypes
|
54
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
|
2
|
+
Because of the particular nature of M4, the only user-input is the code itself. Anyway the following code can be used:
|
3
|
+
eval(A+B)
|
4
|
+
eval(A-B)
|
5
|
+
eval(A*B)
|
6
|
+
eval(A/B)
|
7
|
+
eval(A%B)
|
8
|
+
|
9
|
+
once saved in a file, e.g. <tt>operations.m4</tt>:
|
10
|
+
|
11
|
+
m4 -DA=4 -DB=6 operations.m4
|
12
|
+
|
13
|
+
or using a sort of ''driver'':
|
14
|
+
|
15
|
+
define(`A', 4)dnl
|
16
|
+
define(`B', 6)dnl
|
17
|
+
include(`operations.m4')
|
@@ -0,0 +1,25 @@
|
|
1
|
+
These operations are all built-in. As all operations are exact, there are no rounding issues involved.
|
2
|
+
|
3
|
+
DoIt := proc()
|
4
|
+
local a := readstat( "Input an integer: " ):
|
5
|
+
local b := readstat( "Input another integer: " ):
|
6
|
+
printf( "Sum = %d\n", a + b ):
|
7
|
+
printf( "Difference = %d\n", a - b ):
|
8
|
+
printf( "Product = %d\n", a * b ):
|
9
|
+
printf( "Quotient = %d\n", iquo( a, b, 'c' ) ):
|
10
|
+
printf( "Remainder = %d\n", c ); # or irem( a, b )
|
11
|
+
NULL # quiet return
|
12
|
+
end proc:
|
13
|
+
|
14
|
+
Here is an example of calling DoIt.
|
15
|
+
|
16
|
+
> DoIt();
|
17
|
+
Input an integer: 15;
|
18
|
+
Input another integer: 12;
|
19
|
+
Sum = 27
|
20
|
+
Difference = 3
|
21
|
+
Product = 180
|
22
|
+
Quotient = 1
|
23
|
+
Remainder = 3
|
24
|
+
>
|
25
|
+
|
@@ -0,0 +1,51 @@
|
|
1
|
+
The text below (from "Task Notes" onwards) is pretty well what you will see on a Mathcad worksheet across most versions (eg, Mathcad 15, Mathcad Prime 6.0, and Mathcad Prime 6.0 Express). Mathcad's "whiteboard" interface allows the user to mix formatted text regions with formatted math regions. Text region formatting is fairly arbitrary, individual characters can have their font, font size and bold/italic/underline settings set or changed at will. Math regions use amendable styles to identify variables, functions (normally built-in functions), keywords, system words and units (Mathcad has a units-aware, SI-based quantity system). It really is a simple as 'writing' on the whiteboard.
|
2
|
+
|
3
|
+
----
|
4
|
+
|
5
|
+
'''Task Notes'''
|
6
|
+
|
7
|
+
''For quotient, indicate how it rounds (e.g. towards zero, towards negative infinity, etc.).''
|
8
|
+
|
9
|
+
There is no quotient function in Mathcad, only complex division. We emulate quotient by standard division followed by rounding using both floor, which rounds towards negative infinity, and trunc, which rounds towards zero.
|
10
|
+
|
11
|
+
''For remainder, indicate whether its sign matches the sign of the first operand or of the second operand, if they are different.
|
12
|
+
''
|
13
|
+
We use the Mathcad function mod(x,y), which returns x modulo y, and has the same sign as x.
|
14
|
+
|
15
|
+
'''Instructions'''
|
16
|
+
|
17
|
+
Enter two integers of your choice for Int1 and Int2.
|
18
|
+
|
19
|
+
(type into the right hand side of the 'Int1:= ' and 'Int2:=' statements, overwriting or modifying any numbers already there)
|
20
|
+
|
21
|
+
'''Implementation'''
|
22
|
+
|
23
|
+
'''Mathcad Input and Output'''
|
24
|
+
|
25
|
+
Mathcad "standard" input and output takes place directly on a worksheet ("program source code").
|
26
|
+
|
27
|
+
'''Inputs''':
|
28
|
+
|
29
|
+
== ''the user types in values after := (definition) operator''
|
30
|
+
|
31
|
+
Integer One: ''Int1'':='''-8'''
|
32
|
+
|
33
|
+
Integer Two: ''Int2'':='''3'''
|
34
|
+
|
35
|
+
'''Results''':
|
36
|
+
|
37
|
+
== ''Mathcad automatically calculates and displays results after = (evaluation) operator.''
|
38
|
+
|
39
|
+
sum : ''Int1'' + ''Int2'' = -5
|
40
|
+
|
41
|
+
difference : ''Int1'' - ''Int2'' = -11
|
42
|
+
|
43
|
+
product : ''Int1'' · ''Int2'' = -24
|
44
|
+
|
45
|
+
integer quotient : floor(''Int1''÷''Int2'')=-3 trunc(Int1÷Int2)=-2
|
46
|
+
|
47
|
+
remainder : mod(''Int1'',''Int2'')=-2
|
48
|
+
|
49
|
+
exponentiation : ''Int1''<sup>''Int2''</sup>=-512
|
50
|
+
|
51
|
+
----
|
@@ -0,0 +1,18 @@
|
|
1
|
+
Mathematica has all the function built-in to handle this task. Example:
|
2
|
+
a = Input["Give me an integer please!"];
|
3
|
+
b = Input["Give me another integer please!"];
|
4
|
+
Print["You gave me ", a, " and ", b];
|
5
|
+
Print["sum: ", a + b];
|
6
|
+
Print["difference: ", a - b];
|
7
|
+
Print["product: ", a b];
|
8
|
+
Print["integer quotient: ", Quotient[a, b]];
|
9
|
+
Print["remainder: ", Mod[a, b]];
|
10
|
+
Print["exponentiation: ", a^b];
|
11
|
+
gives back for input 17 and 3:
|
12
|
+
You gave me 17 and 3
|
13
|
+
sum: 20
|
14
|
+
difference: 14
|
15
|
+
product: 51
|
16
|
+
integer quotient: 5
|
17
|
+
remainder: 2
|
18
|
+
exponentiation: 4913
|
@@ -0,0 +1,44 @@
|
|
1
|
+
|
2
|
+
:- module arith_int.
|
3
|
+
:- interface.
|
4
|
+
|
5
|
+
:- import_module io.
|
6
|
+
:- pred main(io::di, io::uo) is det.
|
7
|
+
|
8
|
+
:- implementation.
|
9
|
+
:- import_module int, list, string.
|
10
|
+
|
11
|
+
main(!IO) :-
|
12
|
+
io.command_line_arguments(Args, !IO),
|
13
|
+
( if
|
14
|
+
Args = [AStr, BStr],
|
15
|
+
string.to_int(AStr, A),
|
16
|
+
string.to_int(BStr, B)
|
17
|
+
then
|
18
|
+
io.format("A + B = %d\n", [i(A + B)], !IO),
|
19
|
+
io.format("A - B = %d\n", [i(A - B)], !IO),
|
20
|
+
io.format("A * B = %d\n", [i(A * B)], !IO),
|
21
|
+
|
22
|
+
% Division: round towards zero.
|
23
|
+
%
|
24
|
+
io.format("A / B = %d\n", [i(A / B)], !IO),
|
25
|
+
|
26
|
+
% Division: round towards minus infinity.
|
27
|
+
%
|
28
|
+
io.format("A div B = %d\n", [i(A div B)], !IO),
|
29
|
+
|
30
|
+
% Modulus: X mod Y = X - (X div Y) * Y.
|
31
|
+
%
|
32
|
+
io.format("A mod B = %d\n", [i(A mod B)], !IO),
|
33
|
+
|
34
|
+
% Remainder: X rem Y = X - (X / Y) * Y.
|
35
|
+
%
|
36
|
+
io.format("A rem B = %d\n", [i(A rem B)], !IO),
|
37
|
+
|
38
|
+
% Exponentiation is done using the function int.pow/2.
|
39
|
+
%
|
40
|
+
io.format("A `pow` B = %d\n", [i(A `pow` B)], !IO)
|
41
|
+
else
|
42
|
+
io.set_exit_status(1, !IO)
|
43
|
+
).
|
44
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
|
2
|
+
string s[];
|
3
|
+
message "input number a: ";
|
4
|
+
s1 := readstring;
|
5
|
+
message "input number b: ";
|
6
|
+
s2 := readstring;
|
7
|
+
a := scantokens s1;
|
8
|
+
b := scantokens s2;
|
9
|
+
|
10
|
+
def outp(expr op) =
|
11
|
+
message "a " & op & " b = " & decimal(a scantokens(op) b) enddef;
|
12
|
+
|
13
|
+
outp("+");
|
14
|
+
outp("-");
|
15
|
+
outp("*");
|
16
|
+
outp("div");
|
17
|
+
outp("mod");
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
ML/I will read two integers from 'standard input' or similar,
|
2
|
+
and then output the results to 'standard output' or similar.
|
3
|
+
|
4
|
+
<syntaxhighlight lang="ml/i">MCSKIP "WITH" NL
|
5
|
+
"" Arithmetic/Integer
|
6
|
+
"" assumes macros on input stream 1, terminal on stream 2
|
7
|
+
MCSKIP MT,<>
|
8
|
+
MCINS %.
|
9
|
+
MCDEF SL SPACES NL AS <MCSET T1=%A1.
|
10
|
+
MCSET T2=%A2.
|
11
|
+
a + b = %%T1.+%T2..
|
12
|
+
a - b = %%T1.-%T2..
|
13
|
+
a * b = %%T1.*%T2..
|
14
|
+
a / b = %%T1./%T2..
|
15
|
+
a rem b = %%T1.-%%%T1./%T2..*%T2...
|
16
|
+
Division is truncated to the greatest integer
|
17
|
+
that does not exceed the exact result. Remainder matches
|
18
|
+
the sign of the second operand, if the signs differ.
|
@@ -0,0 +1,31 @@
|
|
1
|
+
MODULE ints;
|
2
|
+
|
3
|
+
IMPORT InOut;
|
4
|
+
|
5
|
+
VAR a, b : INTEGER;
|
6
|
+
|
7
|
+
BEGIN
|
8
|
+
InOut.WriteString ("Enter two integer numbers : "); InOut.WriteBf;
|
9
|
+
InOut.ReadInt (a);
|
10
|
+
InOut.ReadInt (b);
|
11
|
+
InOut.WriteString ("a + b = "); InOut.WriteInt (a + b, 9); InOut.WriteLn;
|
12
|
+
InOut.WriteString ("a - b = "); InOut.WriteInt (a - b, 9); InOut.WriteLn;
|
13
|
+
InOut.WriteString ("a * b = "); InOut.WriteInt (a * b, 9); InOut.WriteLn;
|
14
|
+
InOut.WriteString ("a / b = "); InOut.WriteInt (a DIV b, 9); InOut.WriteLn;
|
15
|
+
InOut.WriteString ("a MOD b = "); InOut.WriteInt (a MOD b, 9); InOut.WriteLn;
|
16
|
+
InOut.WriteLn;
|
17
|
+
END ints.Producing:$$ ints
|
18
|
+
Enter two integer numbers : 12 7
|
19
|
+
a + b = 19
|
20
|
+
a - b = 5
|
21
|
+
a * b = 84
|
22
|
+
a / b = 1
|
23
|
+
a MOD b = 5
|
24
|
+
|
25
|
+
$$ ints
|
26
|
+
Enter two integer numbers : 123 -111
|
27
|
+
a + b = 12
|
28
|
+
a - b = 234
|
29
|
+
a * b = -13653
|
30
|
+
a / b = -1
|
31
|
+
a MOD b = 12
|
@@ -0,0 +1,15 @@
|
|
1
|
+
MODULE Arith EXPORTS Main;
|
2
|
+
|
3
|
+
IMPORT IO, Fmt;
|
4
|
+
|
5
|
+
VAR a, b: INTEGER;
|
6
|
+
|
7
|
+
BEGIN
|
8
|
+
a := IO.GetInt();
|
9
|
+
b := IO.GetInt();
|
10
|
+
IO.Put("a+b = " & Fmt.Int(a + b) & "\n");
|
11
|
+
IO.Put("a-b = " & Fmt.Int(a - b) & "\n");
|
12
|
+
IO.Put("a*b = " & Fmt.Int(a * b) & "\n");
|
13
|
+
IO.Put("a DIV b = " & Fmt.Int(a DIV b) & "\n");
|
14
|
+
IO.Put("a MOD b = " & Fmt.Int(a MOD b) & "\n");
|
15
|
+
END Arith.
|
@@ -0,0 +1,52 @@
|
|
1
|
+
<p>Note: M[UMPS] has an operator called "modulo".
|
2
|
+
When both operands are positive numbers, "modulo" has a result that looks a lot like "remainder";
|
3
|
+
however, there is an important difference.</p>
|
4
|
+
|
5
|
+
<p>To better understand the intricacies of "modulo" and how it is
|
6
|
+
different from "remainder", see Donald Knuth's definition (Volume 1 of the "big books"), or
|
7
|
+
find out the beauty of cyclic algebra as formulated by Niels Henrik Abel (August 5, 1802 – April 6, 1829).</p>
|
8
|
+
|
9
|
+
Arith(first,second) ; Mathematical operators
|
10
|
+
Write "Plus",?12,first,"+",second,?25," = ",first+second,!
|
11
|
+
Write "Minus",?12,first,"-",second,?25," = ",first-second,!
|
12
|
+
Write "Multiply",?12,first,"*",second,?25," = ",first*second,!
|
13
|
+
Write "Divide",?12,first,"/",second,?25," = ",first/second,!
|
14
|
+
Write "Int Divide",?12,first,"\",second,?25," = ",first\second,!
|
15
|
+
Write "Power",?12,first,"**",second,?25," = ",first**second,!
|
16
|
+
Write "Modulo",?12,first,"#",second,?25," = ",first#second,!
|
17
|
+
Write "And",?12,first,"&",second,?25," = ",first&second,!
|
18
|
+
Write "Or",?12,first,"!",second,?25," = ",first!second,!
|
19
|
+
Quit
|
20
|
+
|
21
|
+
Do Arith(2,3)
|
22
|
+
Plus 2+3 = 5
|
23
|
+
Minus 2-3 = -1
|
24
|
+
Multiply 2*3 = 6
|
25
|
+
Divide 2/3 = .6666666666666666667
|
26
|
+
Int Divide 2\3 = 0
|
27
|
+
Power 2**3 = 8
|
28
|
+
Modulo 2#3 = 2
|
29
|
+
And 2&3 = 1
|
30
|
+
Or 2!3 = 1
|
31
|
+
|
32
|
+
Do Arith(16,0.5)
|
33
|
+
Plus 16+.5 = 16.5
|
34
|
+
Minus 16-.5 = 15.5
|
35
|
+
Multiply 16*.5 = 8
|
36
|
+
Divide 16/.5 = 32
|
37
|
+
Int Divide 16\.5 = 32
|
38
|
+
Power 16**.5 = 4
|
39
|
+
Modulo 16#.5 = 0
|
40
|
+
And 16&.5 = 1
|
41
|
+
Or 16!.5 = 1
|
42
|
+
|
43
|
+
Do Arith(0,2)
|
44
|
+
Plus 0+2 = 2
|
45
|
+
Minus 0-2 = -2
|
46
|
+
Multiply 0*2 = 0
|
47
|
+
Divide 0/2 = 0
|
48
|
+
Int Divide 0\2 = 0
|
49
|
+
Power 0**2 = 0
|
50
|
+
Modulo 0#2 = 0
|
51
|
+
And 0&2 = 0
|
52
|
+
Or 0!2 = 1
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{{trans|Python}}
|
2
|
+
print "Number 1: "
|
3
|
+
x = int(input())
|
4
|
+
print "Number 2: "
|
5
|
+
y = int(input())
|
6
|
+
|
7
|
+
println format("Sum: %d", x + y)
|
8
|
+
println format("Difference: %d", x - y)
|
9
|
+
println format("Product: %d", x * y)
|
10
|
+
println format("Quotient: %f", x / y)
|
11
|
+
|
12
|
+
println format("Remainder: %d", x % y)
|
13
|
+
println format("Power: %d", x ^ y)
|
@@ -0,0 +1,18 @@
|
|
1
|
+
Adapted nearly verbatim from C# solution above. Note that I've used the exponentiation operator (**), but Math.Pow() as used in the C# solution would also work.
|
2
|
+
using System;
|
3
|
+
|
4
|
+
class Program
|
5
|
+
{
|
6
|
+
static Main(args : array[string]) : void
|
7
|
+
{
|
8
|
+
def a = Convert.ToInt32(args[0]);
|
9
|
+
def b = Convert.ToInt32(args[1]);
|
10
|
+
|
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);
|
14
|
+
Console.WriteLine("{0} / {1} = {2}", a, b, a / b); // truncates towards 0
|
15
|
+
Console.WriteLine("{0} % {1} = {2}", a, b, a % b); // matches sign of first operand
|
16
|
+
Console.WriteLine("{0} ** {1} = {2}", a, b, a ** b);
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
{{trans|REXX}}
|
2
|
+
/* NetRexx */
|
3
|
+
|
4
|
+
options replace format comments java crossref symbols binary
|
5
|
+
|
6
|
+
say "enter 2 integer values separated by blanks"
|
7
|
+
parse ask a b
|
8
|
+
say a "+" b "=" a + b
|
9
|
+
say a "-" b "=" a - b
|
10
|
+
say a "*" b "=" a * b
|
11
|
+
say a "/" b "=" a % b "remaining" a // b "(sign from first operand)"
|
12
|
+
say a "^" b "=" a ** b
|
13
|
+
|
14
|
+
return
|
@@ -0,0 +1,26 @@
|
|
1
|
+
|
2
|
+
; integer.lsp
|
3
|
+
; oofoe 2012-01-17
|
4
|
+
|
5
|
+
(define (aski msg) (print msg) (int (read-line)))
|
6
|
+
(setq x (aski "Please type in an integer and press [enter]: "))
|
7
|
+
(setq y (aski "Please type in another integer : "))
|
8
|
+
|
9
|
+
; Note that +, -, *, / and % are all integer operations.
|
10
|
+
(println)
|
11
|
+
(println "Sum: " (+ x y))
|
12
|
+
(println "Difference: " (- x y))
|
13
|
+
(println "Product: " (* x y))
|
14
|
+
(println "Integer quotient (rounds to 0): " (/ x y))
|
15
|
+
(println "Remainder: " (setq r (% x y)))
|
16
|
+
|
17
|
+
(println "Remainder sign matches: "
|
18
|
+
(cond ((= (sgn r) (sgn x) (sgn y)) "both")
|
19
|
+
((= (sgn r) (sgn x)) "first")
|
20
|
+
((= (sgn r) (sgn y)) "second")))
|
21
|
+
|
22
|
+
(println)
|
23
|
+
(println "Exponentiation: " (pow x y))
|
24
|
+
|
25
|
+
(exit) ; NewLisp normally goes to listener after running script.
|
26
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
|
2
|
+
Example tested with Q'Nial7.
|
3
|
+
|
4
|
+
Define new operator using an atlas of operators:
|
5
|
+
arithmetic is OP A B{[first,last,+,-,*,quotient,mod,power] A B}
|
6
|
+
|
7
|
+
Test new operator:
|
8
|
+
-23 arithmetic 7
|
9
|
+
-23 7 -16 -30 -161 -4 5 -3404825447
|
10
|
+
|
11
|
+
Negative divisors are not accepted for integer quotient <code>quotient</code> or remainder <code>mod</code>, and in both cases the result is an error with the message <code>?negative divisor</code>.
|
12
|
+
|
13
|
+
For <code>quotient</code>, if the divisor <code>B</code> is zero, the result is zero.
|
14
|
+
|
15
|
+
For <code>mod</code>, if the divisor <code>B</code> is zero, the result is <code>A</code>.
|
16
|
+
|
17
|
+
The quotient on division by a positive integer <code>B</code> is always an integer on the same side of the origin as <code>A</code>.
|
18
|
+
|
19
|
+
Nial definition of <code>quotient</code>:
|
20
|
+
|
21
|
+
A quotient B =f= floor (A / B)
|
22
|
+
|
23
|
+
<code>floor</code> rounds towards negative infinity (next lower integer).
|