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,21 @@
|
|
1
|
+
''CBTJD'': 2020/03/12
|
2
|
+
START:
|
3
|
+
INPUT "Enter two integers (a,b):"; a!, b!
|
4
|
+
IF a = 0 THEN END
|
5
|
+
IF b = 0 THEN
|
6
|
+
PRINT "Second integer is zero. Zero not allowed for Quotient or Remainder."
|
7
|
+
GOTO START
|
8
|
+
END IF
|
9
|
+
PRINT
|
10
|
+
PRINT " Sum = "; a + b
|
11
|
+
PRINT " Difference = "; a - b
|
12
|
+
PRINT " Product = "; a * b
|
13
|
+
' Notice the use of the INTEGER Divisor "\" as opposed to the regular divisor "/".
|
14
|
+
PRINT "Integer Quotient = "; a \ b, , "* Rounds toward 0."
|
15
|
+
PRINT " Remainder = "; a MOD b, , "* Sign matches first operand."
|
16
|
+
PRINT " Exponentiation = "; a ^ b
|
17
|
+
PRINT
|
18
|
+
INPUT "Again? (y/N)"; a$
|
19
|
+
IF UCASE$(a$) = "Y" THEN CLS: GOTO START
|
20
|
+
CLS
|
21
|
+
END
|
@@ -0,0 +1,12 @@
|
|
1
|
+
|
2
|
+
<syntaxhighlight lang="quackery "> $ "Please enter two integers separated by a space. "
|
3
|
+
input quackery
|
4
|
+
2dup say "Their sum is: " + echo cr
|
5
|
+
2dup say "Their difference is: " - echo cr
|
6
|
+
2dup say "Their product is: " " * echo cr
|
7
|
+
2dup say "Their integer quotient is: " / echo cr
|
8
|
+
2dup say "Their remainder is: " mod echo cr
|
9
|
+
say "Their exponentiation is: " ** echo cr
|
10
|
+
cr
|
11
|
+
say "Quotient rounds towards negative infinity." cr
|
12
|
+
say "Remainder matches the sign of the second argument."
|
@@ -0,0 +1,11 @@
|
|
1
|
+
cat("insert number ")
|
2
|
+
a <- scan(nmax=1, quiet=TRUE)
|
3
|
+
cat("insert number ")
|
4
|
+
b <- scan(nmax=1, quiet=TRUE)
|
5
|
+
print(paste('a+b=', a+b))
|
6
|
+
print(paste('a-b=', a-b))
|
7
|
+
print(paste('a*b=', a*b))
|
8
|
+
print(paste('a%/%b=', a%/%b))
|
9
|
+
print(paste('a%%b=', a%%b))
|
10
|
+
print(paste('a^b=', a^b))
|
11
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
(formerly Perl 6)
|
2
|
+
|
3
|
+
Note that <code>div</code> <b>requires</b> integer arguments. If you want integer division with other types, say <code>floor($a/$b)</code>.
|
4
|
+
<syntaxhighlight lang="raku" line>my Int $a = get.floor;
|
5
|
+
my Int $b = get.floor;
|
6
|
+
|
7
|
+
say 'sum: ', $a + $b;
|
8
|
+
say 'difference: ', $a - $b;
|
9
|
+
say 'product: ', $a * $b;
|
10
|
+
say 'integer quotient: ', $a div $b;
|
11
|
+
say 'remainder: ', $a % $b;
|
12
|
+
say 'exponentiation: ', $a**$b;
|
@@ -0,0 +1,51 @@
|
|
1
|
+
REBOL [
|
2
|
+
Title: "Integer"
|
3
|
+
URL: http://rosettacode.org/wiki/Arithmetic/Integer
|
4
|
+
]
|
5
|
+
|
6
|
+
x: to-integer ask "Please type in an integer, and press [enter]: "
|
7
|
+
y: to-integer ask "Please enter another integer: "
|
8
|
+
print ""
|
9
|
+
|
10
|
+
print ["Sum:" x + y]
|
11
|
+
print ["Difference:" x - y]
|
12
|
+
print ["Product:" x * y]
|
13
|
+
|
14
|
+
print ["Integer quotient (coercion) :" to-integer x / y]
|
15
|
+
print ["Integer quotient (away from zero) :" round x / y]
|
16
|
+
print ["Integer quotient (halves round towards even digits) :" round/even x / y]
|
17
|
+
print ["Integer quotient (halves round towards zero) :" round/half-down x / y]
|
18
|
+
print ["Integer quotient (round in negative direction) :" round/floor x / y]
|
19
|
+
print ["Integer quotient (round in positive direction) :" round/ceiling x / y]
|
20
|
+
print ["Integer quotient (halves round in positive direction):" round/half-ceiling x / y]
|
21
|
+
|
22
|
+
print ["Remainder:" r: x // y]
|
23
|
+
|
24
|
+
; REBOL evaluates infix expressions from left to right. There are no
|
25
|
+
; precedence rules -- whatever is first gets evaluated. Therefore when
|
26
|
+
; performing this comparison, I put parens around the first term
|
27
|
+
; ("sign? a") of the expression so that the value of /a/ isn't
|
28
|
+
; compared to the sign of /b/. To make up for it, notice that I don't
|
29
|
+
; have to use a specific return keyword. The final value in the
|
30
|
+
; function is returned automatically.
|
31
|
+
|
32
|
+
match?: func [a b][(sign? a) = sign? b]
|
33
|
+
|
34
|
+
result: copy []
|
35
|
+
if match? r x [append result "first"]
|
36
|
+
if match? r y [append result "second"]
|
37
|
+
|
38
|
+
; You can evaluate arbitrary expressions in the middle of a print, so
|
39
|
+
; I use a "switch" to provide a more readable result based on the
|
40
|
+
; length of the /results/ list.
|
41
|
+
|
42
|
+
print [
|
43
|
+
"Remainder sign matches:"
|
44
|
+
switch length? result [
|
45
|
+
0 ["neither"]
|
46
|
+
1 [result/1]
|
47
|
+
2 ["both"]
|
48
|
+
]
|
49
|
+
]
|
50
|
+
|
51
|
+
print ["Exponentiation:" x ** y]
|
@@ -0,0 +1,11 @@
|
|
1
|
+
There is no input, variables have to be set in code. Format is there only for output.
|
2
|
+
|
3
|
+
set a = -17
|
4
|
+
set b = 4
|
5
|
+
echo "a+b = ".format(a+b,"%1d")
|
6
|
+
echo "a-b = ".format(a-b,"%1d")
|
7
|
+
echo "a*b = ".format(a*b,"%1d")
|
8
|
+
echo "a DIV b = ".format(floor(a/b),"%1d")
|
9
|
+
echo "a MOD b = ".format(a mod b,"%1d")
|
10
|
+
echo "a^b = ".format(pow(a,b),"%1d")
|
11
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
|
2
|
+
let a = int_of_string(Sys.argv[2])
|
3
|
+
let b = int_of_string(Sys.argv[3])
|
4
|
+
|
5
|
+
let sum = a + b
|
6
|
+
let difference = a - b
|
7
|
+
let product = a * b
|
8
|
+
let division = a / b
|
9
|
+
let remainder = mod(a, b)
|
10
|
+
|
11
|
+
Js.log("a + b = " ++ string_of_int(sum))
|
12
|
+
Js.log("a - b = " ++ string_of_int(difference))
|
13
|
+
Js.log("a * b = " ++ string_of_int(product))
|
14
|
+
Js.log("a / b = " ++ string_of_int(division))
|
15
|
+
Js.log("a % b = " ++ string_of_int(remainder))
|
@@ -0,0 +1,10 @@
|
|
1
|
+
Retro's arithmetic functions are based on those in [[Forth]]. The example is an adaption of the one from Forth.
|
2
|
+
|
3
|
+
:arithmetic (ab-)
|
4
|
+
over '\na_______=_%n s:put
|
5
|
+
dup '\nb_______=_%n s:put
|
6
|
+
dup-pair + '\na_+_b___=_%n s:put
|
7
|
+
dup-pair - '\na_-_b___=_%n s:put
|
8
|
+
dup-pair * '\na_*_b___=_%n s:put
|
9
|
+
/mod '\na_/_b___=_%n s:put
|
10
|
+
'\na_mod_b_=_%n\n" s:put ;
|
@@ -0,0 +1,47 @@
|
|
1
|
+
All operators automatically produce integers where appropriate &nbsp; (up to twenty decimal digits in the program below),
|
2
|
+
<br>or numbers in exponential format when necessary. &nbsp; (The REXX default is &nbsp; '''9''' &nbsp; decimal digits.)
|
3
|
+
|
4
|
+
For division that produces a floating point number, the result is rounded to the nearest number that can be expressed
|
5
|
+
<br>within the current number of decimal digits &nbsp; (in the example program below, it is &nbsp; '''20''' &nbsp; decimal digits).
|
6
|
+
/*REXX program obtains two integers from the C.L. (a prompt); displays some operations.*/
|
7
|
+
numeric digits 20 /*#s are round at 20th significant dig.*/
|
8
|
+
parse arg x y . /*maybe the integers are on the C.L. */
|
9
|
+
|
10
|
+
do while \datatype(x,'W') | \datatype(y,'W') /*both X and Y must be integers. */
|
11
|
+
say "─────Enter two integer values (separated by blanks):"
|
12
|
+
parse pull x y . /*accept two thingys from command line.*/
|
13
|
+
end /*while*/
|
14
|
+
/* [↓] perform this DO loop twice. */
|
15
|
+
do j=1 for 2 /*show A oper B, then B oper A.*/
|
16
|
+
call show 'addition' , "+", x+y
|
17
|
+
call show 'subtraction' , "-", x-y
|
18
|
+
call show 'multiplication' , "*", x*y
|
19
|
+
call show 'int division' , "%", x%y, ' [rounds down]'
|
20
|
+
call show 'real division' , "/", x/y
|
21
|
+
call show 'division remainder', "//", x//y, ' [sign from 1st operand]'
|
22
|
+
call show 'power' , "**", x**y
|
23
|
+
|
24
|
+
parse value x y with y x /*swap the two values and perform again*/
|
25
|
+
if j==1 then say copies('═', 79) /*display a fence after the 1st round. */
|
26
|
+
end /*j*/
|
27
|
+
exit /*stick a fork in it, we're all done. */
|
28
|
+
/*──────────────────────────────────────────────────────────────────────────────────────*/
|
29
|
+
show: parse arg c,o,#,?; say right(c,25)' ' x center(o,4) y " ───► " # ?; return
|
30
|
+
{{out|output|text=&nbsp; when using the input of: &nbsp; &nbsp; <tt> 4 &nbsp; -17 </tt>}}
|
31
|
+
|
32
|
+
addition 4 + -17 ───► -13
|
33
|
+
subtraction 4 - -17 ───► 21
|
34
|
+
multiplication 4 * -17 ───► -68
|
35
|
+
int division 4 % -17 ───► 0 [rounds down]
|
36
|
+
real division 4 / -17 ───► -0.23529411764705882353
|
37
|
+
division remainder 4 // -17 ───► 4 [sign from 1st operand]
|
38
|
+
power 4 ** -17 ───► 5.8207660913467407227E-11
|
39
|
+
═══════════════════════════════════════════════════════════════════════════════
|
40
|
+
addition -17 + 4 ───► -13
|
41
|
+
subtraction -17 - 4 ───► -21
|
42
|
+
multiplication -17 * 4 ───► -68
|
43
|
+
int division -17 % 4 ───► -4 [rounds down]
|
44
|
+
real division -17 / 4 ───► -4.25
|
45
|
+
division remainder -17 // 4 ───► -1 [sign from 1st operand]
|
46
|
+
power -17 ** 4 ───► 83521
|
47
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
|
2
|
+
func Test a,b
|
3
|
+
see "a+b" + ( a + b ) + nl
|
4
|
+
see "a-b" + ( a - b ) + nl
|
5
|
+
see "a*b" + ( a * b ) + nl
|
6
|
+
// The quotient isn't integer, so we use the Ceil() function, which truncates it downward.
|
7
|
+
see "a/b" + Ceil( a / b ) + nl
|
8
|
+
// Remainder:
|
9
|
+
see "a%b" + ( a % b ) + nl
|
10
|
+
see "a**b" + pow(a,b ) + nl
|
11
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
|
2
|
+
input string "Enter number 1:"
|
3
|
+
set "a" to "input"
|
4
|
+
input string "Enter number 2:"
|
5
|
+
set "b" to "input"
|
6
|
+
|
7
|
+
[ "Sum: ('a' + 'b')"
|
8
|
+
[ "Difference: ('a' - 'b')"
|
9
|
+
[ "Product: ('a' * 'b')"
|
10
|
+
[ "Integer Quotient: ('a' / 'b')"
|
11
|
+
[ "Remainder: ('a' % 'b')"
|
12
|
+
[ "Exponentiation: ('a'^'b')"
|
13
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
|
2
|
+
puts 'Enter x and y'
|
3
|
+
x = gets.to_i # to check errors, use x=Integer(gets)
|
4
|
+
y = gets.to_i
|
5
|
+
|
6
|
+
puts "Sum: #{x+y}",
|
7
|
+
"Difference: #{x-y}",
|
8
|
+
"Product: #{x*y}",
|
9
|
+
"Quotient: #{x/y}", # truncates towards negative infinity
|
10
|
+
"Quotient: #{x.fdiv(y)}", # float
|
11
|
+
"Remainder: #{x%y}", # same sign as second operand
|
12
|
+
"Exponentiation: #{x**y}"
|
@@ -0,0 +1,9 @@
|
|
1
|
+
input "1st integer: "; i1
|
2
|
+
input "2nd integer: "; i2
|
3
|
+
|
4
|
+
print " Sum"; i1 + i2
|
5
|
+
print " Diff"; i1 - i2
|
6
|
+
print " Product"; i1 * i2
|
7
|
+
if i2 <>0 then print " Quotent "; int( i1 / i2); else print "Cannot divide by zero."
|
8
|
+
print "Remainder"; i1 MOD i2
|
9
|
+
print "1st raised to power of 2nd"; i1 ^ i2
|
@@ -0,0 +1,15 @@
|
|
1
|
+
|
2
|
+
Note that this code cannot be run within the [http://play.rust-lang.org Rust playpen] as it does not support console input.
|
3
|
+
use std::env;
|
4
|
+
|
5
|
+
fn main() {
|
6
|
+
let args: Vec<_> = env::args().collect();
|
7
|
+
let a = args[1].parse::<i32>().unwrap();
|
8
|
+
let b = args[2].parse::<i32>().unwrap();
|
9
|
+
|
10
|
+
println!("sum: {}", a + b);
|
11
|
+
println!("difference: {}", a - b);
|
12
|
+
println!("product: {}", a * b);
|
13
|
+
println!("integer quotient: {}", a / b); // truncates towards zero
|
14
|
+
println!("remainder: {}", a % b); // same sign as first operand
|
15
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
@function arithmetic($a,$b) {
|
4
|
+
@return $a + $b, $a - $b, $a * $b, ($a - ($a % $b))/$b, $a % $b;
|
5
|
+
}
|
6
|
+
|
7
|
+
Which you use with:
|
8
|
+
|
9
|
+
nth(arithmetic(10,3),1);
|
10
|
+
|
11
|
+
Or each of the functions separately:
|
12
|
+
|
13
|
+
@function sum($a,$b) {
|
14
|
+
@return $a + $b;
|
15
|
+
}
|
16
|
+
|
17
|
+
@function difference($a,$b) {
|
18
|
+
@return $a - $b;
|
19
|
+
}
|
20
|
+
|
21
|
+
@function product($a,$b) {
|
22
|
+
@return $a * $b;
|
23
|
+
}
|
24
|
+
|
25
|
+
@function integer-division($a,$b) {
|
26
|
+
@return ($a - ($a % $b))/$b;
|
27
|
+
}
|
28
|
+
|
29
|
+
@function remainder($a,$b) {
|
30
|
+
@return $a % $b;
|
31
|
+
}
|
32
|
+
|
33
|
+
@function float-division($a,$b) {
|
34
|
+
@return $a / $b;
|
35
|
+
}
|
36
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
val a = Console.readInt
|
2
|
+
val b = Console.readInt
|
3
|
+
|
4
|
+
val sum = a + b //integer addition is discouraged in print statements due to confusion with String concatenation
|
5
|
+
println("a + b = " + sum)
|
6
|
+
println("a - b = " + (a - b))
|
7
|
+
println("a * b = " + (a * b))
|
8
|
+
println("quotient of a / b = " + (a / b)) // truncates towards 0
|
9
|
+
println("remainder of a / b = " + (a % b)) // same sign as first operand
|
@@ -0,0 +1,27 @@
|
|
1
|
+
|
2
|
+
(define (arithmetic x y)
|
3
|
+
(for-each (lambda (op)
|
4
|
+
(write (list op x y))
|
5
|
+
(display " => ")
|
6
|
+
(write ((eval op) x y))
|
7
|
+
(newline))
|
8
|
+
'(+ - * / quotient remainder modulo max min gcd lcm)))
|
9
|
+
|
10
|
+
(arithmetic 8 12)
|
11
|
+
quotient - truncates towards 0
|
12
|
+
remainder - same sign as first operand
|
13
|
+
modulo - same sign as second operand
|
14
|
+
|
15
|
+
prints this:
|
16
|
+
|
17
|
+
(+ 8 12) => 20
|
18
|
+
(- 8 12) => -4
|
19
|
+
(* 8 12) => 96
|
20
|
+
(/ 8 12) => 2/3
|
21
|
+
(quotient 8 12) => 0
|
22
|
+
(remainder 8 12) => 8
|
23
|
+
(modulo 8 12) => 8
|
24
|
+
(max 8 12) => 12
|
25
|
+
(min 8 12) => 8
|
26
|
+
(gcd 8 12) => 4
|
27
|
+
(lcm 8 12) => 24
|
@@ -0,0 +1,20 @@
|
|
1
|
+
$ include "seed7_05.s7i";
|
2
|
+
|
3
|
+
const proc: main is func
|
4
|
+
local
|
5
|
+
var integer: a is 0;
|
6
|
+
var integer: b is 0;
|
7
|
+
begin
|
8
|
+
write("a = ");
|
9
|
+
readln(a);
|
10
|
+
write("b = ");
|
11
|
+
readln(b);
|
12
|
+
|
13
|
+
writeln("a + b = " <& a + b);
|
14
|
+
writeln("a - b = " <& a - b);
|
15
|
+
writeln("a * b = " <& a * b);
|
16
|
+
writeln("a div b = " <& a div b); # Rounds towards zero
|
17
|
+
writeln("a rem b = " <& a rem b); # Sign of the first operand
|
18
|
+
writeln("a mdiv b = " <& a mdiv b); # Rounds towards negative infinity
|
19
|
+
writeln("a mod b = " <& a mod b); # Sign of the second operand
|
20
|
+
end func;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
ask "Enter the first number:"
|
2
|
+
put it into number1
|
3
|
+
|
4
|
+
ask "Enter the second number:"
|
5
|
+
put it into number2
|
6
|
+
|
7
|
+
put "Sum: " & number1 plus number2
|
8
|
+
put "Difference: " & number1 minus number2
|
9
|
+
put "Product: " & number1 multiplied by number2
|
10
|
+
put "Integer quotient: " & number1 div number2 -- Rounding towards 0
|
11
|
+
put "Remainder: " & number1 rem number2
|
12
|
+
put "Exponentiation: " & number1 to the power of number2
|
@@ -0,0 +1,9 @@
|
|
1
|
+
[| :a :b |
|
2
|
+
inform: (a + b) printString.
|
3
|
+
inform: (a - b) printString.
|
4
|
+
inform: (a * b) printString.
|
5
|
+
inform: (a / b) printString.
|
6
|
+
inform: (a // b) printString.
|
7
|
+
inform: (a \\ b) printString.
|
8
|
+
|
9
|
+
] applyTo: {Integer readFrom: (query: 'Enter a: '). Integer readFrom: (query: 'Enter b: ')}.
|
@@ -0,0 +1,28 @@
|
|
1
|
+
{{works with|GNU Smalltalk}}
|
2
|
+
| a b |
|
3
|
+
'Input number a: ' display.
|
4
|
+
a := (stdin nextLine) asInteger.
|
5
|
+
'Input number b: ' display.
|
6
|
+
b := (stdin nextLine) asInteger.
|
7
|
+
('a+b=%1' % { a + b }) displayNl.
|
8
|
+
('a-b=%1' % { a - b }) displayNl.
|
9
|
+
('a*b=%1' % { a * b }) displayNl.
|
10
|
+
('a/b=%1' % { a // b }) displayNl.
|
11
|
+
('a%%b=%1' % { a \\ b }) displayNl.
|
12
|
+
|
13
|
+
{{works with|Smalltalk/X}} (and all other Smalltalks)
|
14
|
+
|a b|
|
15
|
+
a := (Dialog request:'Enter first number:') asNumber.
|
16
|
+
b := (Dialog request:'Enter second number:') asNumber.
|
17
|
+
#( + - / * // \\ quo: rem: raisedTo: **) do:[:operator |
|
18
|
+
|result|
|
19
|
+
result := a perform:operator with:b.
|
20
|
+
'%P %s %P => %P\n' printf:{a . operator . b . result} on:Transcript
|
21
|
+
].
|
22
|
+
/ is exact division
|
23
|
+
<br>// is truncating division (towards negative infinity)
|
24
|
+
<br>\\ is remainder from \\
|
25
|
+
<br>quo: is truncating division (towards zero)
|
26
|
+
<br>\\ is remainder from quo:
|
27
|
+
<br>** is just an alias for raisedTo:
|
28
|
+
<p>Entering 10 and 3, generates:
|
@@ -0,0 +1,18 @@
|
|
1
|
+
INPUT "Enter first number.":first
|
2
|
+
INPUT "Enter second number.":second
|
3
|
+
PRINT "The sum of";first;"and";second;"is ";first+second&"."
|
4
|
+
PRINT "The difference between";first;"and";second;"is ";ABS(first-second)&"."
|
5
|
+
PRINT "The product of";first;"and";second;"is ";first*second&"."
|
6
|
+
IF second THEN
|
7
|
+
PRINT "The integer quotient of";first;"and";second;"is ";INTEG(first/second)&"."
|
8
|
+
ELSE
|
9
|
+
PRINT "Division by zero not cool."
|
10
|
+
ENDIF
|
11
|
+
PRINT "The remainder being...";first%second&"."
|
12
|
+
PRINT STR$(first);"raised to the power of";second;"is ";first^second&"."
|
13
|
+
|
14
|
+
'''NOTES:''' Some curious aspects of smart BASIC to note in this code example:
|
15
|
+
<ol>
|
16
|
+
<li>In smart BASIC, The command INTEG is a true integer function providing only the value of the characteristic. The smart BASIC INT command calculates as a rounding function. This differs from some other versions of BASIC.</li>
|
17
|
+
<li>smart BASIC automatically inserts spaces ahead of and behind numbers. This can cause unexpected formatting issues when combining output from numeric variables with text. In order to suppress the trailing space, you must use the ampersand (&) to concatenate the numeric value with the following text (in this case, a period at the end of each sentence). In the case of leading spaces, you must convert the numeric value to text using the STR$ command (as with the last line of the code).
|
18
|
+
</ol>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
|
2
|
+
output = "Enter first integer:"
|
3
|
+
first = input
|
4
|
+
output = "Enter second integer:"
|
5
|
+
second = input
|
6
|
+
output = "sum = " first + second
|
7
|
+
output = "diff = " first - second
|
8
|
+
output = "prod = " first * second
|
9
|
+
output = "quot = " (qout = first / second)
|
10
|
+
output = "rem = " first - (qout * second)
|
11
|
+
output = "expo = " first ** second
|
12
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
As a BF derivative, SNUSP only has increment and decrement as native operations. Here are routines for other basic arithmetic upon single digit numbers and results.
|
2
|
+
|
3
|
+
''See also: [[Ethiopian Multiplication]]''
|
4
|
+
$\
|
5
|
+
,
|
6
|
+
@
|
7
|
+
\=@@@-@-----# atoi
|
8
|
+
>
|
9
|
+
,
|
10
|
+
@
|
11
|
+
\=@@@-@-----#
|
12
|
+
<
|
13
|
+
@ # 4 copies
|
14
|
+
\=!/?!/->>+>>+>>+>>+<<<<<<<<?\#
|
15
|
+
> | #\?<<<<<<<<+>>+>>+>>+>>-/
|
16
|
+
@ |
|
17
|
+
\==/
|
18
|
+
\>>>>\
|
19
|
+
/>>>>/
|
20
|
+
@
|
21
|
+
\==!/===?\# add
|
22
|
+
< \>+<-/
|
23
|
+
@
|
24
|
+
\=@@@+@+++++# itoa
|
25
|
+
.
|
26
|
+
<
|
27
|
+
@
|
28
|
+
\==!/===?\# subtract
|
29
|
+
< \>-<-/
|
30
|
+
@
|
31
|
+
\=@@@+@+++++#
|
32
|
+
.
|
33
|
+
!
|
34
|
+
/\
|
35
|
+
?- multiply
|
36
|
+
\/ #/?<<+>+>-==\ /==-<+<+>>?\# /==-<<+>>?\#
|
37
|
+
< \->+>+<<!/?/# #\?\!>>+<+<-/ #\?\!>>+<<-/
|
38
|
+
@ /==|=========|=====\ /-\ |
|
39
|
+
\======<?!/>@/<-?!\>>>@/<<<-?\=>!\?/>!/@/<#
|
40
|
+
< \=======|==========/ /-\ |
|
41
|
+
@ \done======>>>!\?/<=/
|
42
|
+
\=@@@+@+++++#
|
43
|
+
.
|
44
|
+
!
|
45
|
+
/\
|
46
|
+
?- zero
|
47
|
+
\/
|
48
|
+
< divmod
|
49
|
+
@ /-\
|
50
|
+
\?\<!\?/#!===+<<<\ /-\
|
51
|
+
| \<==@\>@\>>!/?!/=<?\>!\?/<<#
|
52
|
+
| | | #\->->+</
|
53
|
+
| \=!\=?!/->>+<<?\#
|
54
|
+
@ #\?<<+>>-/
|
55
|
+
\=@@@+@+++++#
|
56
|
+
.
|
57
|
+
<
|
58
|
+
@
|
59
|
+
\=@@@+@+++++#
|
60
|
+
.
|
61
|
+
#
|
@@ -0,0 +1,68 @@
|
|
1
|
+
{{works with|Oracle}}
|
2
|
+
|
3
|
+
-- test.sql
|
4
|
+
-- Tested in SQL*plus
|
5
|
+
|
6
|
+
drop table test;
|
7
|
+
|
8
|
+
create table test (a integer, b integer);
|
9
|
+
|
10
|
+
insert into test values ('&&A','&&B');
|
11
|
+
|
12
|
+
commit;
|
13
|
+
|
14
|
+
select a-b difference from test;
|
15
|
+
|
16
|
+
select a*b product from test;
|
17
|
+
|
18
|
+
select trunc(a/b) integer_quotient from test;
|
19
|
+
|
20
|
+
select mod(a,b) remainder from test;
|
21
|
+
|
22
|
+
select power(a,b) exponentiation from test;
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
SQL> @test.sql
|
27
|
+
|
28
|
+
Table dropped.
|
29
|
+
|
30
|
+
|
31
|
+
Table created.
|
32
|
+
|
33
|
+
Enter value for a: 3
|
34
|
+
Enter value for b: 4
|
35
|
+
old 1: insert into test values ('&&A','&&B')
|
36
|
+
new 1: insert into test values ('3','4')
|
37
|
+
|
38
|
+
1 row created.
|
39
|
+
|
40
|
+
|
41
|
+
Commit complete.
|
42
|
+
|
43
|
+
|
44
|
+
DIFFERENCE
|
45
|
+
----------
|
46
|
+
-1
|
47
|
+
|
48
|
+
|
49
|
+
PRODUCT
|
50
|
+
----------
|
51
|
+
12
|
52
|
+
|
53
|
+
|
54
|
+
INTEGER_QUOTIENT
|
55
|
+
----------------
|
56
|
+
0
|
57
|
+
|
58
|
+
|
59
|
+
REMAINDER
|
60
|
+
----------
|
61
|
+
3
|
62
|
+
|
63
|
+
|
64
|
+
EXPONENTIATION
|
65
|
+
--------------
|
66
|
+
81
|
67
|
+
|
68
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
The only operation that the SSEM supports natively is substraction. This program uses the <tt>001 Sub.</tt> instruction to find the difference between <i>a</i> and <i>b</i>, assuming they are loaded into storage addresses 20 and 21 respectively.
|
2
|
+
00101000000000100000000000000000 0. -20 to c
|
3
|
+
10100000000001100000000000000000 1. c to 5
|
4
|
+
10100000000000100000000000000000 2. -5 to c
|
5
|
+
10101000000000010000000000000000 3. Sub. 21
|
6
|
+
00000000000001110000000000000000 4. Stop
|
7
|
+
00000000000000000000000000000000 5. 0
|
8
|
+
The routine is slightly more complicated than it would otherwise be, because the SSEM cannot load a value into the accumulator (<tt>c</tt> register) from storage without negating it in the process—so we have to shuffle the negation of <i>a</i> back out into storage and then negate it again before we can subtract <i>b</i> from it. This does, however, make it easy to implement addition using negation and subtraction. In this program, we first negate <i>a</i>; then subtract <i>b</i>, and store the result; and finally negate that result, thereby obtaining the sum of the two integers.
|
9
|
+
00101000000000100000000000000000 0. -20 to c
|
10
|
+
10101000000000010000000000000000 1. Sub. 21
|
11
|
+
10100000000001100000000000000000 2. c to 5
|
12
|
+
10100000000000100000000000000000 3. -5 to c
|
13
|
+
00000000000001110000000000000000 4. Stop
|
14
|
+
00000000000000000000000000000000 5. 0
|
15
|
+
A multiplication program will be found at [[Function definition#SSEM]], and one that performs integer division at [[Loops/For with a specified step#SSEM]].
|
@@ -0,0 +1,13 @@
|
|
1
|
+
val () = let
|
2
|
+
val a = valOf (Int.fromString (valOf (TextIO.inputLine TextIO.stdIn)))
|
3
|
+
val b = valOf (Int.fromString (valOf (TextIO.inputLine TextIO.stdIn)))
|
4
|
+
in
|
5
|
+
print ("a + b = " ^ Int.toString (a + b) ^ "\n");
|
6
|
+
print ("a - b = " ^ Int.toString (a - b) ^ "\n");
|
7
|
+
print ("a * b = " ^ Int.toString (a * b) ^ "\n");
|
8
|
+
print ("a div b = " ^ Int.toString (a div b) ^ "\n"); (* truncates towards negative infinity *)
|
9
|
+
print ("a mod b = " ^ Int.toString (a mod b) ^ "\n"); (* same sign as second operand *)
|
10
|
+
print ("a quot b = " ^ Int.toString (Int.quot (a, b)) ^ "\n");(* truncates towards 0 *)
|
11
|
+
print ("a rem b = " ^ Int.toString (Int.rem (a, b)) ^ "\n"); (* same sign as first operand *)
|
12
|
+
print ("~a = " ^ Int.toString (~a) ^ "\n") (* unary negation, unusual notation compared to other languages *)
|
13
|
+
end
|