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,25 @@
|
|
1
|
+
import parseopt, strutils
|
2
|
+
|
3
|
+
var
|
4
|
+
opt: OptParser = initOptParser()
|
5
|
+
str = opt.cmdLineRest.split
|
6
|
+
a: int = 0
|
7
|
+
b: int = 0
|
8
|
+
|
9
|
+
try:
|
10
|
+
a = parseInt(str[0])
|
11
|
+
b = parseInt(str[1])
|
12
|
+
except ValueError:
|
13
|
+
quit("Invalid params. Two integers are expected.")
|
14
|
+
|
15
|
+
|
16
|
+
echo("a : " & $a)
|
17
|
+
echo("b : " & $b)
|
18
|
+
echo("a + b : " & $(a+b))
|
19
|
+
echo("a - b : " & $(a-b))
|
20
|
+
echo("a * b : " & $(a*b))
|
21
|
+
echo("a div b: " & $(a div b)) # div rounds towards zero
|
22
|
+
echo("a mod b: " & $(a mod b)) # sign(a mod b)==sign(a) if sign(a)!=sign(b)
|
23
|
+
echo("a ^ b : " & $(a ^ b))
|
24
|
+
|
25
|
+
Execute: Aritmint 4 5
|
@@ -0,0 +1,25 @@
|
|
1
|
+
All Arithmetic in NSIS is handled by the [http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.10.2 IntOp] instruction. It is beyond the scope of this task to implement user input (a fairly involved task), so I will be providing hard-coded values simulating the user input, with the intention of later adding the user-input piece.
|
2
|
+
Function Arithmetic
|
3
|
+
Push $0
|
4
|
+
Push $1
|
5
|
+
Push $2
|
6
|
+
StrCpy $0 21
|
7
|
+
StrCpy $1 -2
|
8
|
+
|
9
|
+
IntOp $2 $0 + $1
|
10
|
+
DetailPrint "$0 + $1 = $2"
|
11
|
+
IntOp $2 $0 - $1
|
12
|
+
DetailPrint "$0 - $1 = $2"
|
13
|
+
IntOp $2 $0 * $1
|
14
|
+
DetailPrint "$0 * $1 = $2"
|
15
|
+
IntOp $2 $0 / $1
|
16
|
+
DetailPrint "$0 / $1 = $2"
|
17
|
+
DetailPrint "Rounding is toward negative infinity"
|
18
|
+
IntOp $2 $0 % $1
|
19
|
+
DetailPrint "$0 % $1 = $2"
|
20
|
+
DetailPrint "Sign of remainder matches the first number"
|
21
|
+
|
22
|
+
Pop $2
|
23
|
+
Pop $1
|
24
|
+
Pop $0
|
25
|
+
FunctionEnd
|
@@ -0,0 +1,14 @@
|
|
1
|
+
Oxford Oberon-2
|
2
|
+
|
3
|
+
MODULE Arithmetic;
|
4
|
+
IMPORT In, Out;
|
5
|
+
VAR
|
6
|
+
x,y:INTEGER;
|
7
|
+
BEGIN
|
8
|
+
Out.String("Give two numbers: ");In.Int(x);In.Int(y);
|
9
|
+
Out.String("x + y >");Out.Int(x + y,6);Out.Ln;
|
10
|
+
Out.String("x - y >");Out.Int(x - y,6);Out.Ln;
|
11
|
+
Out.String("x * y >");Out.Int(x * y,6);Out.Ln;
|
12
|
+
Out.String("x / y >");Out.Int(x DIV y,6);Out.Ln;
|
13
|
+
Out.String("x MOD y >");Out.Int(x MOD y,6);Out.Ln;
|
14
|
+
END Arithmetic.
|
@@ -0,0 +1,17 @@
|
|
1
|
+
bundle Default {
|
2
|
+
class Arithmetic {
|
3
|
+
function : Main(args : System.String[]) ~ Nil {
|
4
|
+
DoArithmetic();
|
5
|
+
}
|
6
|
+
|
7
|
+
function : native : DoArithmetic() ~ Nil {
|
8
|
+
a := IO.Console->GetInstance()->ReadString()->ToInt();
|
9
|
+
b := IO.Console->GetInstance()->ReadString()->ToInt();
|
10
|
+
|
11
|
+
IO.Console->GetInstance()->Print("a+b = ")->PrintLine(a+b);
|
12
|
+
IO.Console->GetInstance()->Print("a-b = ")->PrintLine(a-b);
|
13
|
+
IO.Console->GetInstance()->Print("a*b = ")->PrintLine(a*b);
|
14
|
+
IO.Console->GetInstance()->Print("a/b = ")->PrintLine(a/b);
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
let _ =
|
2
|
+
let a = read_int ()
|
3
|
+
and b = read_int () in
|
4
|
+
|
5
|
+
Printf.printf "a + b = %d\n" (a + b);
|
6
|
+
Printf.printf "a - b = %d\n" (a - b);
|
7
|
+
Printf.printf "a * b = %d\n" (a * b);
|
8
|
+
Printf.printf "a / b = %d\n" (a / b); (* truncates towards 0 *)
|
9
|
+
Printf.printf "a mod b = %d\n" (a mod b) (* same sign as first operand *)
|
@@ -0,0 +1,23 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
(define a 8)
|
4
|
+
(define b 12)
|
5
|
+
|
6
|
+
(print "(+ " a " " b ") => " (+ a b))
|
7
|
+
(print "(- " a " " b ") => " (- a b))
|
8
|
+
(print "(* " a " " b ") => " (* a b))
|
9
|
+
(print "(/ " a " " b ") => " (/ a b))
|
10
|
+
|
11
|
+
(print "(quotient " a " " b ") => " (quot a b)) ; same as (quotient a b)
|
12
|
+
(print "(remainder " a " " b ") => " (rem a b)) ; same as (remainder a b)
|
13
|
+
(print "(modulo " a " " b ") => " (mod a b)) ; same as (modulo a b)
|
14
|
+
|
15
|
+
(print "(expt " a " " b ") => " (expt a b))
|
16
|
+
(print "(gcd " a " " b ") => " (gcd a b))
|
17
|
+
(print "(lcm " a " " b ") => " (lcm a b))
|
18
|
+
|
19
|
+
; you can use more than two arguments for +,-,*,/ functions
|
20
|
+
(print (+ 1 3 5 7 9))
|
21
|
+
(print (- 1 3 5 7 9))
|
22
|
+
(print (* 1 3 5 7 9)) ; same as (1*3*5*7*9)
|
23
|
+
(print (/ 1 3 5 7 9)) ; same as (((1/3)/5)/7)/9
|
@@ -0,0 +1,44 @@
|
|
1
|
+
|
2
|
+
# Most of this long script is mere presentation.
|
3
|
+
# All you really need to do is push two integers onto the stack
|
4
|
+
# and then execute add, sub, mul, idiv, or pow.
|
5
|
+
|
6
|
+
$ClearScreen { # Using ANSI terminal control
|
7
|
+
`\e[2J\e[1;1H' print flush
|
8
|
+
} bind def
|
9
|
+
|
10
|
+
$Say { # string Say -
|
11
|
+
`\n' cat print flush
|
12
|
+
} bind def
|
13
|
+
|
14
|
+
$ShowPreamble {
|
15
|
+
`To show how integer arithmetic in done in Onyx,' Say
|
16
|
+
`we\'ll use two numbers of your choice, which' Say
|
17
|
+
`we\'ll call A and B.\n' Say
|
18
|
+
} bind def
|
19
|
+
|
20
|
+
$Prompt { # stack: string --
|
21
|
+
stdout exch write pop flush
|
22
|
+
} def
|
23
|
+
|
24
|
+
$GetInt { # stack: name -- integer
|
25
|
+
dup cvs `Enter integer ' exch cat `: ' cat
|
26
|
+
Prompt stdin readline pop cvx eval def
|
27
|
+
} bind def
|
28
|
+
|
29
|
+
$Template { # arithmetic_operator_name label_string Template result_string
|
30
|
+
A cvs ` ' B cvs ` ' 5 ncat over cvs ` gives ' 3 ncat exch
|
31
|
+
A B dn cvx eval cvs `.' 3 ncat Say
|
32
|
+
} bind def
|
33
|
+
|
34
|
+
$ShowResults {
|
35
|
+
$add `Addition: ' Template
|
36
|
+
$sub `Subtraction: ' Template
|
37
|
+
$mul `Multiplication: ' Template
|
38
|
+
$idiv `Division: ' Template
|
39
|
+
`Note that the result of integer division is rounded toward zero.' Say
|
40
|
+
$pow `Exponentiation: ' Template
|
41
|
+
`Note that the result of raising to a negative power always gives a real number.' Say
|
42
|
+
} bind def
|
43
|
+
|
44
|
+
ClearScreen ShowPreamble $A GetInt $B GetInt ShowResults
|
@@ -0,0 +1,19 @@
|
|
1
|
+
declare
|
2
|
+
StdIn = {New class $ from Open.file Open.text end init(name:stdin)}
|
3
|
+
|
4
|
+
fun {ReadInt}
|
5
|
+
{String.toInt {StdIn getS($)}}
|
6
|
+
end
|
7
|
+
|
8
|
+
A = {ReadInt}
|
9
|
+
B = {ReadInt}
|
10
|
+
in
|
11
|
+
{ForAll
|
12
|
+
["A+B = "#A+B
|
13
|
+
"A-B = "#A-B
|
14
|
+
"A*B = "#A*B
|
15
|
+
"A/B = "#A div B %% truncates towards 0
|
16
|
+
"remainder "#A mod B %% has the same sign as A
|
17
|
+
"A^B = "#{Pow A B}
|
18
|
+
]
|
19
|
+
System.showInfo}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
Integer division with <code>\</code> rounds to <math>-\infty</math>. There also exists the <code>\/</code> round-to-nearest (ties to <math>+\infty</math>) operator. Ordinary division <code>/</code> does not round but returns rationals if given integers with a non-integral quotient.
|
2
|
+
arith(a,b)={
|
3
|
+
print(a+b);
|
4
|
+
print(a-b);
|
5
|
+
print(a*b);
|
6
|
+
print(a\b);
|
7
|
+
print(a%b);
|
8
|
+
print(a^b);
|
9
|
+
};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
program arithmetic(input, output)
|
2
|
+
|
3
|
+
var
|
4
|
+
a, b: integer;
|
5
|
+
|
6
|
+
begin
|
7
|
+
readln(a, b);
|
8
|
+
writeln('a+b = ', a+b);
|
9
|
+
writeln('a-b = ', a-b);
|
10
|
+
writeln('a*b = ', a*b);
|
11
|
+
writeln('a/b = ', a div b, ', remainder ', a mod b);
|
12
|
+
writeln('a^b = ',Power(a,b):4:2); {real power}
|
13
|
+
writeln('a^b = ',IntPower(a,b):4:2); {integer power}
|
14
|
+
end.
|
@@ -0,0 +1,12 @@
|
|
1
|
+
{{works with|Perl|5.x}}
|
2
|
+
my $a = <>;
|
3
|
+
my $b = <>;
|
4
|
+
|
5
|
+
print
|
6
|
+
"sum: ", $a + $b, "\n",
|
7
|
+
"difference: ", $a - $b, "\n",
|
8
|
+
"product: ", $a * $b, "\n",
|
9
|
+
"integer quotient: ", int($a / $b), "\n",
|
10
|
+
"remainder: ", $a % $b, "\n",
|
11
|
+
"exponent: ", $a ** $b, "\n"
|
12
|
+
;
|
@@ -0,0 +1,49 @@
|
|
1
|
+
{{libheader|Phix/pGUI}}
|
2
|
+
{{libheader|Phix/online}}
|
3
|
+
You can run this online [http://phix.x10.mx/p2js/ArithInt.htm here] (layout/space is not perfected yet).
|
4
|
+
<!--(phixonline)-->
|
5
|
+
<span style="color: #008080;">with</span> <span style="color: #008080;">javascript_semantics</span>
|
6
|
+
<span style="color: #008080;">include</span> <span style="color: #000000;">pGUI</span><span style="color: #0000FF;">.</span><span style="color: #000000;">e</span>
|
7
|
+
|
8
|
+
<span style="color: #004080;">Ihandle</span> <span style="color: #000000;">lab</span><span style="color: #0000FF;">,</span> <span style="color: #000000;">tab</span><span style="color: #0000FF;">,</span> <span style="color: #000000;">res</span><span style="color: #0000FF;">,</span> <span style="color: #000000;">dlg</span>
|
9
|
+
|
10
|
+
<span style="color: #008080;">constant</span> <span style="color: #000000;">fmt</span> <span style="color: #0000FF;">=</span> <span style="color: #008000;">"""
|
11
|
+
a = %d
|
12
|
+
b = %d
|
13
|
+
a + b = %d
|
14
|
+
a - b = %d
|
15
|
+
a * b = %d
|
16
|
+
a / b = %g (does not truncate)
|
17
|
+
remainder(a,b) = %d (same sign as first operand)
|
18
|
+
power(a,b) = %g
|
19
|
+
"""</span>
|
20
|
+
|
21
|
+
<span style="color: #008080;">function</span> <span style="color: #000000;">valuechanged_cb</span><span style="color: #0000FF;">(</span><span style="color: #004080;">Ihandle</span> <span style="color: #000000;">tab</span><span style="color: #0000FF;">)</span>
|
22
|
+
<span style="color: #004080;">string</span> <span style="color: #000000;">s</span> <span style="color: #0000FF;">=</span> <span style="color: #7060A8;">IupGetAttribute</span><span style="color: #0000FF;">(</span><span style="color: #000000;">tab</span><span style="color: #0000FF;">,</span><span style="color: #008000;">"VALUE"</span><span style="color: #0000FF;">)</span>
|
23
|
+
<span style="color: #004080;">sequence</span> <span style="color: #000000;">r</span> <span style="color: #0000FF;">=</span> <span style="color: #7060A8;">scanf</span><span style="color: #0000FF;">(</span><span style="color: #000000;">s</span><span style="color: #0000FF;">,</span><span style="color: #008000;">"%d %d"</span><span style="color: #0000FF;">)</span>
|
24
|
+
<span style="color: #008080;">if</span> <span style="color: #7060A8;">length</span><span style="color: #0000FF;">(</span><span style="color: #000000;">r</span><span style="color: #0000FF;">)=</span><span style="color: #000000;">1</span> <span style="color: #008080;">then</span>
|
25
|
+
<span style="color: #004080;">integer</span> <span style="color: #0000FF;">{</span><span style="color: #000000;">a</span><span style="color: #0000FF;">,</span><span style="color: #000000;">b</span><span style="color: #0000FF;">}</span> <span style="color: #0000FF;">=</span> <span style="color: #000000;">r</span><span style="color: #0000FF;">[</span><span style="color: #000000;">1</span><span style="color: #0000FF;">]</span>
|
26
|
+
<span style="color: #000000;">s</span> <span style="color: #0000FF;">=</span> <span style="color: #7060A8;">sprintf</span><span style="color: #0000FF;">(</span><span style="color: #000000;">fmt</span><span style="color: #0000FF;">,</span> <span style="color: #0000FF;">{</span><span style="color: #000000;">a</span><span style="color: #0000FF;">,</span> <span style="color: #000000;">b</span><span style="color: #0000FF;">,</span> <span style="color: #000000;">a</span><span style="color: #0000FF;">+</span><span style="color: #000000;">b</span><span style="color: #0000FF;">,</span> <span style="color: #000000;">a</span><span style="color: #0000FF;">-</span><span style="color: #000000;">b</span><span style="color: #0000FF;">,</span> <span style="color: #000000;">a</span><span style="color: #0000FF;">*</span><span style="color: #000000;">b</span><span style="color: #0000FF;">,</span> <span style="color: #000000;">a</span><span style="color: #0000FF;">/</span><span style="color: #000000;">b</span><span style="color: #0000FF;">,</span> <span style="color: #7060A8;">remainder</span><span style="color: #0000FF;">(</span><span style="color: #000000;">a</span><span style="color: #0000FF;">,</span><span style="color: #000000;">b</span><span style="color: #0000FF;">),</span> <span style="color: #7060A8;">power</span><span style="color: #0000FF;">(</span><span style="color: #000000;">a</span><span style="color: #0000FF;">,</span><span style="color: #000000;">b</span><span style="color: #0000FF;">)})</span>
|
27
|
+
<span style="color: #7060A8;">IupSetStrAttribute</span><span style="color: #0000FF;">(</span><span style="color: #000000;">res</span><span style="color: #0000FF;">,</span><span style="color: #008000;">"TITLE"</span><span style="color: #0000FF;">,</span><span style="color: #000000;">s</span><span style="color: #0000FF;">)</span>
|
28
|
+
<span style="color: #7060A8;">IupRefresh</span><span style="color: #0000FF;">(</span><span style="color: #000000;">res</span><span style="color: #0000FF;">)</span>
|
29
|
+
<span style="color: #008080;">end</span> <span style="color: #008080;">if</span>
|
30
|
+
<span style="color: #008080;">return</span> <span style="color: #004600;">IUP_DEFAULT</span>
|
31
|
+
<span style="color: #008080;">end</span> <span style="color: #008080;">function</span>
|
32
|
+
|
33
|
+
<span style="color: #008080;">procedure</span> <span style="color: #000000;">main</span><span style="color: #0000FF;">()</span>
|
34
|
+
<span style="color: #7060A8;">IupOpen</span><span style="color: #0000FF;">()</span>
|
35
|
+
<span style="color: #000000;">lab</span> <span style="color: #0000FF;">=</span> <span style="color: #7060A8;">IupLabel</span><span style="color: #0000FF;">(</span><span style="color: #008000;">"Enter two numbers"</span><span style="color: #0000FF;">)</span>
|
36
|
+
<span style="color: #000000;">tab</span> <span style="color: #0000FF;">=</span> <span style="color: #7060A8;">IupText</span><span style="color: #0000FF;">(</span><span style="color: #008000;">"VALUECHANGED_CB"</span><span style="color: #0000FF;">,</span> <span style="color: #7060A8;">Icallback</span><span style="color: #0000FF;">(</span><span style="color: #008000;">"valuechanged_cb"</span><span style="color: #0000FF;">),</span><span style="color: #008000;">"EXPAND=HORIZONTAL"</span><span style="color: #0000FF;">)</span>
|
37
|
+
<span style="color: #000000;">res</span> <span style="color: #0000FF;">=</span> <span style="color: #7060A8;">IupLabel</span><span style="color: #0000FF;">(</span><span style="color: #008000;">"(separated by a space)\n\n\n\n\n\n\n"</span><span style="color: #0000FF;">,</span><span style="color: #008000;">"EXPAND=BOTH"</span><span style="color: #0000FF;">)</span>
|
38
|
+
<span style="color: #000000;">dlg</span> <span style="color: #0000FF;">=</span> <span style="color: #7060A8;">IupDialog</span><span style="color: #0000FF;">(</span><span style="color: #7060A8;">IupVbox</span><span style="color: #0000FF;">({</span><span style="color: #7060A8;">IupHbox</span><span style="color: #0000FF;">({</span><span style="color: #000000;">lab</span><span style="color: #0000FF;">,</span><span style="color: #000000;">tab</span><span style="color: #0000FF;">},</span><span style="color: #008000;">"GAP=10,NORMALIZESIZE=VERTICAL"</span><span style="color: #0000FF;">),</span>
|
39
|
+
<span style="color: #7060A8;">IupHbox</span><span style="color: #0000FF;">({</span><span style="color: #000000;">res</span><span style="color: #0000FF;">})},</span><span style="color: #008000;">"MARGIN=5x5"</span><span style="color: #0000FF;">),</span>
|
40
|
+
<span style="color: #008000;">`SIZE=188x112,TITLE="Arithmetic/Integer"`</span><span style="color: #0000FF;">)</span>
|
41
|
+
<span style="color: #7060A8;">IupShow</span><span style="color: #0000FF;">(</span><span style="color: #000000;">dlg</span><span style="color: #0000FF;">)</span>
|
42
|
+
<span style="color: #008080;">if</span> <span style="color: #7060A8;">platform</span><span style="color: #0000FF;">()!=</span><span style="color: #004600;">JS</span> <span style="color: #008080;">then</span>
|
43
|
+
<span style="color: #7060A8;">IupMainLoop</span><span style="color: #0000FF;">()</span>
|
44
|
+
<span style="color: #7060A8;">IupClose</span><span style="color: #0000FF;">()</span>
|
45
|
+
<span style="color: #008080;">end</span> <span style="color: #008080;">if</span>
|
46
|
+
<span style="color: #008080;">end</span> <span style="color: #008080;">procedure</span>
|
47
|
+
|
48
|
+
<span style="color: #000000;">main</span><span style="color: #0000FF;">()</span>
|
49
|
+
<!---->
|
@@ -0,0 +1,14 @@
|
|
1
|
+
def printOp
|
2
|
+
swap print print nl
|
3
|
+
enddef
|
4
|
+
|
5
|
+
8 var a 3 var b
|
6
|
+
"a = " a printOp
|
7
|
+
"b = " b printOp
|
8
|
+
|
9
|
+
"a + b = " a b + printOp
|
10
|
+
"a - b = " a b - printOp
|
11
|
+
"a * b = " a b * printOp
|
12
|
+
"int(a / b) = " a b / int printOp
|
13
|
+
"a mod b = " a b mod printOp
|
14
|
+
"a ^ b = " a b power printOp
|
@@ -0,0 +1,20 @@
|
|
1
|
+
|
2
|
+
module arith;
|
3
|
+
|
4
|
+
extern printf;
|
5
|
+
extern scanf;
|
6
|
+
|
7
|
+
@Integer main [
|
8
|
+
@Pointer<@Integer> a = alloc(4);
|
9
|
+
@Pointer<@Integer> b = alloc(4);
|
10
|
+
scanf("%i %i", a, b);
|
11
|
+
|
12
|
+
printf("a + b = %i\n", a::get + b::get);
|
13
|
+
printf("a - b = %i\n", a::get - b::get);
|
14
|
+
printf("a * b = %i\n", a::get * b::get);
|
15
|
+
printf("a / b = %i\n", a::get / b::get);
|
16
|
+
printf("a % b = %i\n", a::get % b::get);
|
17
|
+
printf("a ** b = %i\n", a::get ** b::get);
|
18
|
+
|
19
|
+
return 0;
|
20
|
+
]
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?php
|
2
|
+
$a = fgets(STDIN);
|
3
|
+
$b = fgets(STDIN);
|
4
|
+
|
5
|
+
echo
|
6
|
+
"sum: ", $a + $b, "\n",
|
7
|
+
"difference: ", $a - $b, "\n",
|
8
|
+
"product: ", $a * $b, "\n",
|
9
|
+
"truncating quotient: ", (int)($a / $b), "\n",
|
10
|
+
"flooring quotient: ", floor($a / $b), "\n",
|
11
|
+
"remainder: ", $a % $b, "\n",
|
12
|
+
"power: ", $a ** $b, "\n"; // PHP 5.6+ only
|
13
|
+
?>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
(de math (A B)
|
2
|
+
(prinl "Add " (+ A B))
|
3
|
+
(prinl "Subtract " (- A B))
|
4
|
+
(prinl "Multiply " (* A B))
|
5
|
+
(prinl "Divide " (/ A B)) # Trucates towards zero
|
6
|
+
(prinl "Div/rnd " (*/ A B)) # Rounds to next integer
|
7
|
+
(prinl "Modulus " (% A B)) # Sign of the first operand
|
8
|
+
(prinl "Power " (** A B)) )
|
@@ -0,0 +1,38 @@
|
|
1
|
+
[[File:PietArithmaticInteger.png]]<br>
|
2
|
+
<code>
|
3
|
+
command stack
|
4
|
+
in(int) A
|
5
|
+
duplicate AA
|
6
|
+
duplicate AAA
|
7
|
+
duplicate AAAA
|
8
|
+
duplicate AAAAA
|
9
|
+
in(int) BAAAAA
|
10
|
+
duplicate BBAAAAA
|
11
|
+
duplicate BBBAAAAA
|
12
|
+
duplicate BBBBAAAAA
|
13
|
+
duplicate BBBBBAAAAA
|
14
|
+
push 9 9BBBBBAAAAA
|
15
|
+
push 1 19BBBBBAAAAA
|
16
|
+
roll BBBBAAAABA
|
17
|
+
push 7 7BBBBAAAABA
|
18
|
+
push 1 17BBBBAAAABA
|
19
|
+
roll BBBAAABABA
|
20
|
+
push 5 5BBBAAABABA
|
21
|
+
push 1 15BBBAAABABA
|
22
|
+
roll BBAABABABA
|
23
|
+
push 3 3BBAABABABA
|
24
|
+
push 1 13BBAABABABA
|
25
|
+
roll BABABABABA
|
26
|
+
add (A+B)BABABABA
|
27
|
+
out(int) BABABABA
|
28
|
+
sub (A-B)BABABA
|
29
|
+
out(int) BABABA
|
30
|
+
mult (A*B)BABA
|
31
|
+
out(int) BABA
|
32
|
+
divide (A/B)BA
|
33
|
+
out(int) BA
|
34
|
+
mod (A%B)
|
35
|
+
out(int) NULL
|
36
|
+
push 1 1
|
37
|
+
exit</code>
|
38
|
+
How rounding is handled is up to the interpreter, but I believe the intent was round towards 0.
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<syntaxhighlight lang="pl/i">
|
2
|
+
get list (a, b);
|
3
|
+
put skip list (a+b);
|
4
|
+
put skip list (a-b);
|
5
|
+
put skip list (a*b);
|
6
|
+
put skip list (trunc(a/b)); /* truncates towards zero. */
|
7
|
+
put skip list (mod(a, b)); /* Remainder is always positive. */
|
8
|
+
put skip list (rem(a, b)); /* Sign can be negative. */
|
@@ -0,0 +1,26 @@
|
|
1
|
+
To run:
|
2
|
+
Start up.
|
3
|
+
Demonstrate integer arithmetic.
|
4
|
+
Wait for the escape key.
|
5
|
+
Shut down.
|
6
|
+
|
7
|
+
To demonstrate integer arithmetic:
|
8
|
+
Write "Enter a number: " to the console without advancing.
|
9
|
+
Read a number from the console.
|
10
|
+
Write "Enter another number: " to the console without advancing.
|
11
|
+
Read another number from the console.
|
12
|
+
Show the arithmetic operations between the number and the other number.
|
13
|
+
|
14
|
+
To show the arithmetic operations between a number and another number:
|
15
|
+
Write the number plus the other number then " is the sum." to the console.
|
16
|
+
Write the number minus the other number then " is the difference." to the console.
|
17
|
+
Write the number times the other number then " is the product." to the console.
|
18
|
+
Show the division of the number by the other number.
|
19
|
+
Raise the number to the other number.
|
20
|
+
Write the number then " is the power." to the console.
|
21
|
+
|
22
|
+
To show the division of a number by another number:
|
23
|
+
Privatize the number.
|
24
|
+
Divide the number by the other number giving a quotient [rounding toward zero] and a remainder [with the same sign as the dividend].
|
25
|
+
Write the quotient then " is the quotient." to the console.
|
26
|
+
Write the remainder then " is the remainder." to the console.
|
@@ -0,0 +1,12 @@
|
|
1
|
+
|
2
|
+
;;; Setup token reader
|
3
|
+
vars itemrep;
|
4
|
+
incharitem(charin) -> itemrep;
|
5
|
+
;;; read the numbers
|
6
|
+
lvars a = itemrep(), b = itemrep();
|
7
|
+
;;; Print results
|
8
|
+
printf(a + b, 'a + b = %p\n');
|
9
|
+
printf(a - b, 'a - b = %p\n');
|
10
|
+
printf(a * b, 'a * b = %p\n');
|
11
|
+
printf(a div b, 'a div b = %p\n');
|
12
|
+
printf(a mod b, 'a mod b = %p\n');
|
@@ -0,0 +1,15 @@
|
|
1
|
+
$a = [int] (Read-Host First Number)
|
2
|
+
$b = [int] (Read-Host Second Number)
|
3
|
+
|
4
|
+
Write-Host "Sum: $($a + $b)"
|
5
|
+
Write-Host "Difference: $($a - $b)"
|
6
|
+
Write-Host "Product: $($a * $b)"
|
7
|
+
Write-Host "Quotient: $($a / $b)"
|
8
|
+
Write-Host "Quotient, round to even: $([Math]::Round($a / $b))"
|
9
|
+
Write-Host "Remainder, sign follows first: $($a % $b)"
|
10
|
+
Numbers are automatically converted to accomodate for the result. This means not only that Int32 will be expanded to Int64 but also that a non-integer quotient will cause the result to be of a floating-point type.
|
11
|
+
|
12
|
+
The remainder has the sign of the first operand.
|
13
|
+
|
14
|
+
No exponentiation operator exists, but can be worked around with the .NET BCL:
|
15
|
+
[Math]::Pow($a, $b)
|
@@ -0,0 +1,7 @@
|
|
1
|
+
int a = 7, b = 5;
|
2
|
+
|
3
|
+
println(a + " + " + b + " = " + (a + b));
|
4
|
+
println(a + " - " + b + " = " + (a - b));
|
5
|
+
println(a + " * " + b + " = " + (a * b));
|
6
|
+
println(a + " / " + b + " = " + (a / b)); //Rounds towards zero
|
7
|
+
println(a + " % " + b + " = " + (a % b)); //Same sign as first operand
|
@@ -0,0 +1,35 @@
|
|
1
|
+
IGNORELINE Note: This example includes the math module.
|
2
|
+
include arithmeticmodule
|
3
|
+
:a
|
4
|
+
editvar /newvar /value=a /title=Enter first integer:
|
5
|
+
editvar /newvar /value=b /title=Enter second integer:
|
6
|
+
editvar /newvar /value=c
|
7
|
+
do add -a-,-b-=-c-
|
8
|
+
printline -c-
|
9
|
+
do subtract a,b
|
10
|
+
printline -c-
|
11
|
+
do multiply a,b
|
12
|
+
printline -c-
|
13
|
+
do divide a,b
|
14
|
+
printline -c-
|
15
|
+
do modulus a,b
|
16
|
+
printline -c-
|
17
|
+
editvar /newvar /value=d /title=Do you want to calculate more numbers?
|
18
|
+
if -d- /hasvalue yes goto :a else goto :end
|
19
|
+
:end
|
20
|
+
|
21
|
+
IGNORELINE Note: This example does not use the math module.
|
22
|
+
:a
|
23
|
+
editvar /newvar /value=a /title=Enter first integer:
|
24
|
+
editvar /newvar /value=b /title=Enter second integer:
|
25
|
+
editvar /newvar /value=-a-+-b-=-c-
|
26
|
+
printline -c-
|
27
|
+
editvar /newvar /value=a*b=c
|
28
|
+
printline -c-
|
29
|
+
editvar /newvar /value=a/b=c
|
30
|
+
printline -c-
|
31
|
+
editvar /newvar /value=a %% b=c
|
32
|
+
printline -c-
|
33
|
+
editvar /newvar /value=d /title=Do you want to calculate more numbers?
|
34
|
+
if -d- /hasvalue yes goto :a else goto :end
|
35
|
+
:end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
|
2
|
+
Integer quotient (`//`) rounds towards 0.
|
3
|
+
|
4
|
+
Remainder (`rem`) matches the sign of its first operand.
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
print_expression_and_result(M, N, Operator) :-
|
9
|
+
Expression =.. [Operator, M, N],
|
10
|
+
Result is Expression,
|
11
|
+
format('~w ~8|is ~d~n', [Expression, Result]).
|
12
|
+
|
13
|
+
arithmetic_integer :-
|
14
|
+
read(M),
|
15
|
+
read(N),
|
16
|
+
maplist( print_expression_and_result(M, N), [+,-,*,//,rem,^] ).
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
Use thus:
|
21
|
+
|
22
|
+
|
23
|
+
?- arithmetic_integer.
|
24
|
+
|: 5.
|
25
|
+
|: 7.
|
26
|
+
5+7 is 12
|
27
|
+
5-7 is -2
|
28
|
+
5*7 is 35
|
29
|
+
5//7 is 0
|
30
|
+
5 rem 7 is 5
|
31
|
+
5^7 is 78125
|
32
|
+
true.
|
33
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
OpenConsole()
|
2
|
+
|
3
|
+
Define a, b
|
4
|
+
|
5
|
+
Print("Number 1: "): a = Val(Input())
|
6
|
+
Print("Number 2: "): b = Val(Input())
|
7
|
+
|
8
|
+
PrintN("Sum: " + Str(a + b))
|
9
|
+
PrintN("Difference: " + Str(a - b))
|
10
|
+
PrintN("Product: " + Str(a * b))
|
11
|
+
PrintN("Quotient: " + Str(a / b)) ; Integer division (rounding mode=truncate)
|
12
|
+
PrintN("Remainder: " + Str(a % b))
|
13
|
+
PrintN("Power: " + Str(Pow(a, b)))
|
14
|
+
|
15
|
+
Input()
|
16
|
+
|
17
|
+
CloseConsole()
|
@@ -0,0 +1,47 @@
|
|
1
|
+
|
2
|
+
x = int(raw_input("Number 1: "))
|
3
|
+
y = int(raw_input("Number 2: "))
|
4
|
+
|
5
|
+
print "Sum: %d" % (x + y)
|
6
|
+
print "Difference: %d" % (x - y)
|
7
|
+
print "Product: %d" % (x * y)
|
8
|
+
print "Quotient: %d" % (x / y) # or x // y for newer python versions.
|
9
|
+
# truncates towards negative infinity
|
10
|
+
print "Remainder: %d" % (x % y) # same sign as second operand
|
11
|
+
print "Quotient: %d with Remainder: %d" % divmod(x, y)
|
12
|
+
print "Power: %d" % x**y
|
13
|
+
|
14
|
+
## Only used to keep the display up when the program ends
|
15
|
+
raw_input( )
|
16
|
+
|
17
|
+
Notes: In Python3 ''raw_input()'' will be renamed to ''input()'' (the old ''input()'' built-in will go away, though one could use ''eval(input())'' to emulate the old ... and ill-advised ... behavior). Also a better program would wrap the attempted ''int()'' conversions in a ''try: ... except ValueError:...'' construct such as:
|
18
|
+
|
19
|
+
def getnum(prompt):
|
20
|
+
while True: # retrying ...
|
21
|
+
try:
|
22
|
+
n = int(raw_input(prompt))
|
23
|
+
except ValueError:
|
24
|
+
print "Input could not be parsed as an integer. Please try again."\
|
25
|
+
continue
|
26
|
+
break
|
27
|
+
return n
|
28
|
+
|
29
|
+
x = getnum("Number1: ")
|
30
|
+
y = getnum("Number2: ")
|
31
|
+
...
|
32
|
+
|
33
|
+
(In general it's good practice to perform parsing of all input in exception handling blocks. This is especially true of interactive user input, but also applies to data read from configuration and other files, and marshaled from other processes via any IPC mechanism).
|
34
|
+
|
35
|
+
Python also has the procedure ''divmod'' that returns both quotient and remainder. eg
|
36
|
+
quotient, remainder = divmod(355,113)
|
37
|
+
Giving a quotient of 3, and a remainder of 16.
|
38
|
+
|
39
|
+
=== Python 3.0 compatible code ===
|
40
|
+
def arithmetic(x, y):
|
41
|
+
for op in "+ - * // % **".split():
|
42
|
+
expr = "%(x)s %(op)s %(y)s" % vars()
|
43
|
+
print("%s\t=> %s" % (expr, eval(expr)))
|
44
|
+
|
45
|
+
|
46
|
+
arithmetic(12, 8)
|
47
|
+
arithmetic(input("Number 1: "), input("Number 2: "))
|