diff --git a/docker/admin/Dockerfile b/docker/admin/Dockerfile index ea76193..ecc0a24 100644 --- a/docker/admin/Dockerfile +++ b/docker/admin/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:rolling +FROM --platform=amd64 ubuntu:rolling COPY docker/admin/install.bash /tmp/ RUN /tmp/install.bash diff --git a/docker/admin/install.bash b/docker/admin/install.bash index 962ae65..50d9a2b 100755 --- a/docker/admin/install.bash +++ b/docker/admin/install.bash @@ -19,7 +19,7 @@ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - ubuntu_ver="$(lsb_release -rs)" ubuntu_name="$(lsb_release -cs)" -node_repo="$(curl -sS https://deb.nodesource.com/setup_current.x | grep NODEREPO= | grep -Eo 'node_[0-9]+\.x' | head -n1)" +node_repo="node_14.x" tee -a /etc/apt/sources.list.d/custom.list >/dev/null < fitAddon.fit()); + window.addEventListener("message", (msg) => { + console.log(msg) + }) await new Promise((resolve) => term.write("Connecting to server...", resolve) diff --git a/langs/abc.yaml b/langs/abc.yaml deleted file mode 100644 index 6f80b2b..0000000 --- a/langs/abc.yaml +++ /dev/null @@ -1,37 +0,0 @@ -id: "abc" -name: "ABC" - -install: - apt: - - libtinfo5:i386 - manual: | - wget https://homepages.cwi.nl/~steven/abc/implementations/abc.tar.gz - install -d "${pkg}/opt/abc" - tar -xf abc.tar.gz -C "${pkg}/opt/abc" --strip-components=1 - chmod +x "${pkg}/opt/abc/abc" "${pkg}/opt/abc/abckeys" - install -d "${pkg}/usr/local/bin" - tee "${pkg}/usr/local/bin/abc" >/dev/null <<"EOF" - #!/usr/bin/env bash - cd /opt/abc - exec ./abc "$@" - EOF - chmod +x "${pkg}/usr/local/bin/abc" - -repl: | - abc -input: | - DELAY: 2 - WRITE 123 * 234 - -main: "main.abc" -template: | - WRITE "Hello, world!" / - -run: | - abc "$PWD/main.abc" - - -scope: - code: | - PUT 123 * 234 IN x - input: | - WRITE x diff --git a/langs/ada.yaml b/langs/ada.yaml deleted file mode 100644 index 2572751..0000000 --- a/langs/ada.yaml +++ /dev/null @@ -1,45 +0,0 @@ -id: "ada" -aliases: - - "adb" - - "gnat" -name: "Ada" - -info: - impl: "GNAT" - year: 1980 - desc: "Structured, statically typed, imperative, and object-oriented high-level programming language, extended from Pascal and other languages" - ext: - - adb - - ads - web: - wiki: "https://en.wikipedia.org/wiki/Ada_(programming_language)" - home: "https://www.adaic.org/" - impl: "https://www.gnu.org/software/gnat/" - source: "https://gcc.gnu.org/git.html" - category: general - mode: compiled - platform: [] - syntax: pascal - typing: static - paradigm: - - imperative - - oo - usage: popular - -install: - apt: - - gnat - -main: "main.adb" -template: | - with Ada.Text_IO; - - procedure Main is - begin - Ada.Text_IO.Put_Line("Hello, world!"); - end Main; - -compile: | - gnatmake main.adb -run: | - ./main diff --git a/langs/afnix.yaml b/langs/afnix.yaml deleted file mode 100644 index 852176b..0000000 --- a/langs/afnix.yaml +++ /dev/null @@ -1,24 +0,0 @@ -id: "afnix" -aliases: - - "als" - - "axc" - - "axi" -name: "Afnix" - -install: - apt: - - afnix - - afnix-doc - -repl: | - LD_LIBRARY_PATH=/usr/lib/afnix axi -input: | - DELAY: 1 - println (* 123 234) - -main: "main.als" -template: | - println "Hello, world!" - -run: | - LD_LIBRARY_PATH=/usr/lib/afnix axi main.als; LD_LIBRARY_PATH=/usr/lib/afnix axi diff --git a/langs/aheui.yaml b/langs/aheui.yaml deleted file mode 100644 index 2abf7ba..0000000 --- a/langs/aheui.yaml +++ /dev/null @@ -1,39 +0,0 @@ -id: "aheui" -aliases: - - "aheui" - - "aheuis" - - "rpaheui" - - "caheui" - - "naheui" - - "goaheui" - - "jsaheui" - - "pyaheui" - - "rsaheui" - - "as3aheui" - - "raheui" - - "아희" -name: "아희" - -install: - manual: | - install -d "${pkg}/usr/local/bin" - - git clone https://github.com/aheui/caheui.git - pushd caheui - make - cp aheui "${pkg}/usr/local/bin/" - popd - -main: "main.aheui" -template: | - 밤밣따빠밣밟따뿌 - 빠맣파빨받밤뚜뭏 - 돋밬탕빠맣붏두붇 - 볻뫃박발뚷투뭏붖 - 뫃도뫃희멓뭏뭏붘 - 뫃봌토범더벌뿌뚜 - 뽑뽀멓멓더벓뻐뚠 - 뽀덩벐멓뻐덕더벅 - -run: | - aheui main.aheui diff --git a/langs/algol.yaml b/langs/algol.yaml deleted file mode 100644 index b02d96a..0000000 --- a/langs/algol.yaml +++ /dev/null @@ -1,38 +0,0 @@ -id: "algol" -aliases: - - "alg" - - "a68g" - - "genie" - - "a68genie" -name: "ALGOL 68" - -info: - impl: "ALGOL 68 Genie" - version: "ALGOL 68" - year: 1958 - desc: "Seminal imperative programming language which introduced lexical scope and formal grammar specification" - ext: alg - web: - wiki: "https://en.wikipedia.org/wiki/ALGOL" - home: "http://algol68.sourceforge.net/" - source: "https://jmvdveer.home.xs4all.nl/en.algol-68-genie.html" - category: general - mode: - - interpreted - - compiled - platform: [] - syntax: pascal - typing: static - paradigm: imperative - usage: [] - -install: - apt: - - algol68g - -main: "main.alg" -template: | - print(("Hello, world!",new line)) - -run: | - a68g main.alg diff --git a/langs/ante.yaml b/langs/ante.yaml deleted file mode 100644 index 2f34309..0000000 --- a/langs/ante.yaml +++ /dev/null @@ -1,43 +0,0 @@ -id: "ante" -aliases: - - "an" -name: "Ante" - -install: - prepare: - apt: - - cargo - - cmake - - libssl-dev - - pkg-config - - python3-distutils - manual: | - export PATH="$HOME/.cargo/bin:$PATH" - cargo install llvmenv - llvmenv init - # If compiler is not explicitly set to LLVM, then we get an - # error: unrecognized command-line option ‘-Wnewline-eof’. - CC=/usr/bin/clang CXX=/usr/bin/clang++ llvmenv build-entry -G Makefile -j$(nproc) 10.0.0 - llvmenv global 10.0.0 - manual: | - git clone https://github.com/jfecher/ante.git - pushd ante - LLVM_SYS_100_PREFIX="$(llvmenv prefix)" cargo build --release - install -d "${pkg}/opt/ante" - install -d "${pkg}/usr/local/bin" - cp target/release/ante "${pkg}/usr/local/bin/" - cp -R stdlib "${pkg}/opt/ante/" - popd - -setup: | - mkdir -p "$HOME/.config/ante" - cp -R /opt/ante/stdlib "$HOME/.config/ante/" - -main: "main.an" -template: | - print "Hello, world!" - -compile: | - ante main.an -run: | - ./main diff --git a/langs/antecards.yaml b/langs/antecards.yaml deleted file mode 100644 index 647ac6d..0000000 --- a/langs/antecards.yaml +++ /dev/null @@ -1,16 +0,0 @@ -id: "antecards" -name: "Ante (Cards)" - -install: - manual: | - wget https://github.com/michaeldv/ante/raw/master/ante.rb - chmod +x ante.rb - install -d "${pkg}/usr/local/bin" - mv ante.rb "${pkg}/usr/local/bin/ante-cards" - -main: "main.ante" -template: | - 9♦8♥J♦A♦2♣3♥7♠J♦A♦7♦J♦J♦A♦3♦J♦5♥6♦4♥J♥A♥6♠6♠J♥A♦8♦J♦A♦8♠J♦A♦3♦J♦A♦6♠J♦A♦8♠J♦A♥3♦2♠J♥A♥2♣6♠J♥ - -run: | - RUBYOPT="-W0" ante-cards main.ante diff --git a/langs/apl.yaml b/langs/apl.yaml deleted file mode 100644 index b03464b..0000000 --- a/langs/apl.yaml +++ /dev/null @@ -1,50 +0,0 @@ -id: "apl" -name: "APL" - -info: - impl: "GNU APL" - year: 1966 - desc: "Array-based programming language using large range of special symbols for concision" - ext: apl - web: - wiki: "https://en.wikipedia.org/wiki/APL_(programming_language)" - impl: "https://www.gnu.org/software/apl/" - source: "https://savannah.gnu.org/svn/?group=apl" - category: - - general - mode: interpreted - platform: [] - syntax: - - golf - - symbol - typing: dynamic - paradigm: - - array - - functional - - imperative - usage: [] - -install: - apt: - - libtinfo5 - manual: | - path="$(curl -sS ftp://ftp.gnu.org/gnu/apl/ | grep -Eo 'apl_[-0-9.]+_amd64.deb$' | sort -rV | head -n1)" - wget "ftp://ftp.gnu.org/gnu/apl/${path}" -O apl.deb - deb: - - apl.deb - -repl: | - apl -input: | - 123 × 234 - -main: "main.apl" -template: | - 'Hello, world!' - -run: | - apl -f main.apl - -scope: - code: | - x ← 123 × 234 diff --git a/langs/aplus.yaml b/langs/aplus.yaml deleted file mode 100644 index 6c0552a..0000000 --- a/langs/aplus.yaml +++ /dev/null @@ -1,29 +0,0 @@ -id: "aplus" -aliases: - - "a+" - - "ap" - - "aplus" -name: "A+" - -install: - apt: - - aplus-fsf - - aplus-fsf-doc - - rlwrap - -repl: | - rlwrap a+ -input: | - 2 * 16 -output: | - 65536 - -main: "main.a+" -template: | - 'Hello, world!' - -run: | - rlwrap a+ main.a+ - -skip: - - scope diff --git a/langs/arm.yaml b/langs/arm.yaml deleted file mode 100644 index 0d58fb9..0000000 --- a/langs/arm.yaml +++ /dev/null @@ -1,47 +0,0 @@ -id: "arm" -name: "ARM" - -info: - impl: "GCC" - year: 1985 - desc: "Popular RISC architecture used in mobile devices" - ext: S - web: - wiki: "https://en.wikipedia.org/wiki/ARM_architecture" - home: "https://developer.arm.com/architectures/cpu-architecture" - impl: "https://gcc.gnu.org/" - source: "https://gcc.gnu.org/git.html" - category: assembly - mode: compiled - platform: [] - syntax: assembly - typing: weak - paradigm: imperative - usage: [] - -install: - apt: - - gcc-arm-linux-gnueabihf - - qemu-user-static - -main: "main.S" -template: |2 - .text - .globl main - main: - mov r7, #4 - mov r0, #1 - ldr r1, =message - mov r2, #14 - swi 0 - mov r7, #1 - mov r0, #0 - swi 0 - .data - message: - .string "Hello, world!\n" - -compile: | - arm-linux-gnueabihf-gcc main.S -o main -static -run: | - qemu-arm-static main diff --git a/langs/asciidoc.yaml b/langs/asciidoc.yaml deleted file mode 100644 index 66757ca..0000000 --- a/langs/asciidoc.yaml +++ /dev/null @@ -1,36 +0,0 @@ -id: "asciidoc" -aliases: - - "adoc" - - "asc" -name: "AsciiDoc" - -info: - year: 2002 - desc: "Human-readable document format, semantically equivalent to DocBook XML, but using plain-text mark-up conventions" - ext: adoc - web: - wiki: "https://en.wikipedia.org/wiki/AsciiDoc" - home: "https://asciidoc.org/" - source: "https://github.com/asciidoc/asciidoc" - category: markup - mode: [] - platform: [] - syntax: text - typing: [] - paradigm: [] - usage: [] - -install: - apt: - - asciidoctor - riju: - - prettier - -main: "main.adoc" -template: | - Hello, world! - -compile: | - asciidoctor -s main.adoc -run: | - prettier --no-config main.html diff --git a/langs/aspectcpp.yaml b/langs/aspectcpp.yaml deleted file mode 100644 index 453ba3b..0000000 --- a/langs/aspectcpp.yaml +++ /dev/null @@ -1,24 +0,0 @@ -id: "aspectcpp" -aliases: - - "aspectc++" - - "aspectcplusplus" -name: "AspectC++" - -install: - apt: - - aspectc++ - - libstdc++-9-dev - -main: "main.cpp" -template: | - #include - - int main() { - std::cout << "Hello, world!" << std::endl; - return 0; - } - -compile: | - CPLUS_INCLUDE_PATH=/usr/include/c++/9 ag++ main.cpp -o main -run: | - ./main diff --git a/langs/aspectj.yaml b/langs/aspectj.yaml deleted file mode 100644 index 5ed27ea..0000000 --- a/langs/aspectj.yaml +++ /dev/null @@ -1,21 +0,0 @@ -id: "aspectj" -aliases: - - "aj" -name: "AspectJ" - -install: - apt: - - aspectj - -main: "Main.aj" -template: | - public class Main { - public static void main(String[] args) { - System.out.println("Hello, world!"); - } - } - -compile: | - ajc Main.aj -run: | - java Main diff --git a/langs/asymptote.yaml b/langs/asymptote.yaml deleted file mode 100644 index e477255..0000000 --- a/langs/asymptote.yaml +++ /dev/null @@ -1,18 +0,0 @@ -id: "asymptote" -aliases: - - "asy" -name: "Asymptote" - -install: - apt: - - asymptote - -repl: | - asy - -main: "main.asy" -template: | - write("Hello, world!"); - -run: | - asy main.asy; asy diff --git a/langs/ats.yaml b/langs/ats.yaml deleted file mode 100644 index b135122..0000000 --- a/langs/ats.yaml +++ /dev/null @@ -1,49 +0,0 @@ -id: "ats" -aliases: - - "dats" - - "sats" - - "cats" - - "hats" -name: "ATS" -monacoLang: postiats - -info: - impl: "ATS2/Postiats" - year: 2007 - desc: "Programming language designed to unify programming with formal specification" - ext: - - sats - - dats - - cats - - hats - web: - wiki: "https://en.wikipedia.org/wiki/ATS_(programming_language)" - home: "http://www.ats-lang.org/" - source: "https://github.com/githwxi/ATS-Postiats" - category: general - mode: compiled - platform: [] - syntax: - - c - - haskell - typing: - - static - - theorem - paradigm: - - imperative - - declarative - usage: [] - -install: - apt: - - ats2-lang - -main: "main.dats" -template: | - val _ = print ("Hello, world!\n") - implement main0 () = () - -compile: | - patscc main.dats -o main -run: | - ./main diff --git a/langs/awk.yaml b/langs/awk.yaml deleted file mode 100644 index 5e5c883..0000000 --- a/langs/awk.yaml +++ /dev/null @@ -1,34 +0,0 @@ -id: "awk" -aliases: - - "gawk" - - "mawk" - - "nawk" -name: "Awk" - -info: - impl: "GNU Awk" - year: 1977 - desc: "Domain-specific language designed for text processing and typically used as a data extraction and reporting tool" - ext: awk - web: - wiki: "https://en.wikipedia.org/wiki/AWK" - impl: "https://www.gnu.org/software/gawk/manual/gawk.html" - source: "https://savannah.gnu.org/git/?group=gawk" - category: tool - mode: interpreted - platform: [] - syntax: c - typing: weak - paradigm: imperative - usage: [] - -install: - apt: - - mawk - -main: "main.awk" -template: | - BEGIN { print "Hello, world!" } - -run: | - awk -f main.awk diff --git a/langs/bash.yaml b/langs/bash.yaml deleted file mode 100644 index bdcc3fd..0000000 --- a/langs/bash.yaml +++ /dev/null @@ -1,55 +0,0 @@ -id: "bash" -aliases: - - "bashrc" - - "bourneshell" -name: "Bash" -monacoLang: shell - -info: - impl: "GNU Bash" - year: 1989 - desc: "Unix shell and command language written by Brian Fox for the GNU Project as a free software replacement for the Bourne shell" - ext: - - bash - - sh - web: - wiki: "https://en.wikipedia.org/wiki/Bash_(Unix_shell)" - impl: "https://www.gnu.org/software/bash/" - source: "https://savannah.gnu.org/projects/bash/" - category: shell - mode: interpreted - platform: [] - syntax: pascal - typing: weak - paradigm: imperative - usage: [] - -install: - apt: - - bash - npm: - - bash-language-server - -repl: | - bash --rcfile /dev/null -input: | - expr 123 \* 234 - -main: "main.bash" -template: | - echo "Hello, world!" - -run: | - bash --rcfile main.bash - -scope: - code: | - x="$(expr 123 \* 234)" - input: | - echo "$x" - -lsp: - start: | - bash-language-server start - code: "read" - item: "readonly" diff --git a/langs/basic.yaml b/langs/basic.yaml deleted file mode 100644 index 0b6578f..0000000 --- a/langs/basic.yaml +++ /dev/null @@ -1,47 +0,0 @@ -id: "basic" -aliases: - - "bas" - - "qbasic" -name: "BASIC" - -info: - impl: "Bywater BASIC" - year: 1964 - desc: "General-purpose, high-level programming language whose design philosophy emphasizes ease of use" - ext: bas - web: - wiki: "https://en.wikipedia.org/wiki/BASIC" - impl: "https://sourceforge.net/projects/bwbasic/" - source: "https://sourceforge.net/projects/bwbasic/files/bwbasic/" - category: general - mode: interpreted - platform: [] - syntax: - - basic - - column - - whitespace - typing: static - paradigm: imperative - usage: [] - -install: - apt: - - bwbasic - -repl: | - bwbasic -input: | - PRINT 123 * 234 - -main: "main.bas" -template: | - PRINT "Hello, world!" - -run: | - bwbasic main.bas - -scope: - code: | - x = 123 * 234 - input: | - PRINT x diff --git a/langs/battlestar.yaml b/langs/battlestar.yaml deleted file mode 100644 index 67520e8..0000000 --- a/langs/battlestar.yaml +++ /dev/null @@ -1,45 +0,0 @@ -id: "battlestar" -aliases: - - "battlestarc" - - "bts" -name: "Battlestar" - -info: - year: 2014 - desc: "A different take on assembly, with the goal of creating tiny executables" - ext: bts - web: - source: "https://github.com/xyproto/battlestar" - category: assembly - mode: compiled - platform: [] - syntax: assembly - typing: weak - paradigm: imperative - usage: personal - -install: - prepare: - apt: - - golang - apt: - - yasm - manual: | - install -d "${pkg}/usr/local/bin" - git clone https://github.com/xyproto/battlestar.git - pushd battlestar - make - cp cmd/battlestarc/battlestarc "${pkg}/usr/local/bin/" - cp scripts/bts.sh "${pkg}/usr/local/bin/bts" - popd - -main: "main.bts" -template: | - const message = "Hello, world!\n" - - fun main - syscall(1, 1, message, len(message)) - end - -run: | - bts main.bts diff --git a/langs/bc.yaml b/langs/bc.yaml deleted file mode 100644 index ef6a0ca..0000000 --- a/langs/bc.yaml +++ /dev/null @@ -1,17 +0,0 @@ -id: "bc" -name: "bc" - -install: - apt: - - bc - -repl: | - bc - -main: "main.bc" -template: | - "Hello, world! - " - -run: | - bc main.bc diff --git a/langs/beanshell.yaml b/langs/beanshell.yaml deleted file mode 100644 index 0f6d121..0000000 --- a/langs/beanshell.yaml +++ /dev/null @@ -1,27 +0,0 @@ -id: "beanshell" -aliases: - - "bsh" -name: "Beanshell" - -install: - apt: - - bsh - -repl: | - CLASSPATH=/usr/share/java/jline.jar:/usr/share/java/bsh.jar java -Duser.home="$PWD" jline.ConsoleRunner bsh.Interpreter -input: | - print(123 * 234); - -main: ".bshrc" -template: | - print("Hello, world!"); -createEmpty: "" - -run: | - CLASSPATH=/usr/share/java/jline.jar:/usr/share/java/bsh.jar java -Duser.home="$PWD" jline.ConsoleRunner bsh.Interpreter - -scope: - code: | - x = 123 * 234; - input: | - print(x); diff --git a/langs/beatnik.yaml b/langs/beatnik.yaml deleted file mode 100644 index f25cac5..0000000 --- a/langs/beatnik.yaml +++ /dev/null @@ -1,124 +0,0 @@ -id: "beatnik" -name: "Beatnik" - -info: - impl: "Cat's Eye Beatnik" - year: 2001 - desc: "Stack-based esoteric programming language created by Cliff L. Biffle" - ext: beatnik - web: - wiki: "https://en.wikipedia.org/wiki/Beatnik_(programming_language)" - esolang: "https://esolangs.org/wiki/Beatnik" - home: "https://cliffle.com/esoterica/beatnik/" - source: "https://github.com/catseye/Beatnik" - category: esoteric - mode: interpreted - platform: [] - syntax: [] - typing: integer - paradigm: stack - usage: [] - -install: - apt: - - python2 - manual: | - install -d "${pkg}/usr/local/bin" - git clone https://github.com/catseye/Beatnik.git - sed -i 's#env python#env python2#' Beatnik/script/beatnik.py - cp Beatnik/script/beatnik.py "${pkg}/usr/local/bin/beatnik" - -main: "main.beatnik" -template: | - Soars, larkspurs, rains. - Indistinctness. - Mario snarl (nurses, natures, rules...) sensuously retries goal. - Agribusinesses' costs par lain ropes (mopes) autos' cores. - Tuner ambitiousness. - Flit. - Dour entombment. - Legals' saner kinking lapse. - Nests glint. - Dread, tied futures, dourer usual tumor grunts alter atonal - garb tries shouldered coins. - Taste a vast lustiness. - Stile stuns gad subgroup gram lanes. - Draftee insurer road: cuckold blunt, strut sunnier. - Rely enure pantheism: arty gain groups (genies, pan) titters, tattles, nears. - Bluffer tapes? Idle diatom stooge! - Feted antes anklets ague? Remit goiter gout! - Doubtless teared toed alohas will dull gangs' aerials' tails' sluices; - Gusset ends! Gawkier halo! - - Enter abstruse rested loser beer guy louts. - Curtain roams lasso weir lupus stunt. - Truant bears animate talon. Entire torte originally timer. - Redo stilt gobs. - - Utter centaurs; - Urgent stars; - Usurers (dilute); - Noses; - Bones; - Brig sonar graders; - Utensil silts; - Lazies. - Fret arson veterinary rows. - - Atlas grunted: "Pates, slues, sulfuric manor liaising tines, - trailers, rep... unfair! Instant snots!" - - Sled rested until eatery fail. - Ergs fortitude - Indent spotter - Euros enter egg. - Curious tenures. - Torus cutlasses. - Sarong torso earns cruel lags it reeled. - - Engineer: "Erase handbag -- unite ratification!" - - oaring oaten donkeys unsold, surer rapid saltest tags - BUTTERED TIBIA LUGS REWIRING TOILETS - anion festers raring edit epilogues. - DIRGE ROTOR. - linnet oaring. - GORE BOOTIES. - Ironed goon lists tallest sublets -- - Riots, - Raucous onset. - - Ignobly, runners' diet anguishes sunrise loner. - Erode mob, slier switcher! - Loaners stilt drudge pearl atoll, risking hats' ends. - - Rebind sitters. - - Toga epistles -- crud lard. (Pager purse dons souls.) - - glob title a curio hired rites shed suds lade grease strut arctic revs toad - unless idlers rind stilt region land GERMICIDES SULTANA GUTS gill siting leans - nice spurs - tests gloves - roused asp - - Holes! Moles! (Sores!) - Hygienists! Scars! (Asses!) - Smells spell rares. - - Cubs instant sing in parse goodies. - Rosin. Unhelpful sisal acres. Slope told. - MALENESS PASTA LAB. "Infirmary vine," rang illiterates (beans). - Rosin sours, insults truss abalones, nailed rules, helical atlases. - Dear remodeling stings mar rents. - Sunless shiner orb (silly idol.) - Clarity disses senna. - Vagabonds sauted; sloes performed gelds. - Alter post radial lip sectioning gums. - Saint Towellings. - Larger aeons telephone stolid char, pal! - Boats Dean forsook, rosters, tunas, terrariums -- united, traced. - Nude pagoda careens. - -run: | - beatnik main.beatnik diff --git a/langs/befunge.yaml b/langs/befunge.yaml deleted file mode 100644 index 9f071c6..0000000 --- a/langs/befunge.yaml +++ /dev/null @@ -1,70 +0,0 @@ -id: "befunge" -aliases: - - "be" -name: "Befunge" - -info: - impl: "amicloud Befunge-93" - version: "Befunge-93" - year: 1993 - desc: "Two-dimensional esoteric programming language invented in 1993 by Chris Pressey with the goal of being as difficult to compile as possible" - ext: - - be - - bf - - b93 - - b98 - - befunge - web: - wiki: "https://en.wikipedia.org/wiki/Befunge" - esolang: "https://esolangs.org/wiki/Befunge" - home: "https://catseye.tc/article/Languages.md#befunge-93" - source: "https://github.com/amicloud/befunge93" - category: esoteric - mode: interpreted - platform: [] - syntax: - - golf - - 2d - typing: integer - paradigm: stack - usage: [] - -install: - npm: - - befunge93 - - prompt-sync - scripts: - befunge: | - #!/usr/bin/env -S NODE_PATH=/opt/befunge93/lib/node_modules:/opt/prompt-sync/lib/node_modules node - const fs = require("fs"); - - const Befunge = require("befunge93"); - const prompt = require("prompt-sync")(); - - const befunge = new Befunge(); - befunge.onInput = prompt; - befunge.onOutput = (output) => { - if (typeof output === "string") { - process.stdout.write(output); - } else { - process.stdout.write(output + " "); - } - }; - - const args = process.argv.slice(2); - if (args.length !== 1) { - console.error("usage: befunge FILE"); - process.exit(1); - } - - befunge.run(fs.readFileSync(args[0], { encoding: "utf-8" })).catch((err) => { - console.error(err); - process.exit(1); - }); - -main: "main.be" -template: | - 64+"!dlrow ,olleH">:#,_@ - -run: | - befunge main.be diff --git a/langs/blc.yaml b/langs/blc.yaml deleted file mode 100644 index 1a3e31b..0000000 --- a/langs/blc.yaml +++ /dev/null @@ -1,54 +0,0 @@ -id: "blc" -aliases: - - "binarylambdacalculus" - - "lc" - - "binary" - - "lambdacalculus" - - "lambda" -name: "Binary Lambda Calculus" - -info: - year: 2004 - desc: "Minimal, pure functional programming language invented by John Tromp in 2004, based on a binary encoding of the untyped lambda calculus in De Bruijn index notation" - ext: blc - web: - wiki: "https://en.wikipedia.org/wiki/Binary_combinatory_logic" - esolang: "https://esolangs.org/wiki/Binary_lambda_calculus" - home: "https://tromp.github.io/cl/Binary_lambda_calculus.html" - impl: "https://www.ioccc.org/2012/tromp/hint.html" - source: "https://www.ioccc.org/2012/tromp/tromp.c" - category: esoteric - mode: interpreted - platform: [] - syntax: [] - typing: lambda - paradigm: functional - usage: [] - -install: - scripts: - binary-to-text: | - #!/usr/bin/env python3 - - import re - import sys - - text = re.sub(r"[^01]", "", sys.stdin.read()) - out = [] - - for m in re.finditer(r"([01]{8})", text): - out += chr(int(m.group(0), 2)) - - print("".join(out), end="") - manual: | - install -d "${pkg}/usr/local/bin" - wget https://www.ioccc.org/2012/tromp/tromp.c - clang tromp.c -Wno-everything -DInt=long -DX=8 -DA=500000 -o "${pkg}/usr/local/bin/tromp" - -main: "main.blc" -template: | - 001010100100100001100101011011000110110001101111001011000010 - 000001110111011011110111001001101100011001000010000100001010 - -run: | - cat main.blc | binary-to-text | tromp diff --git a/langs/boo.yaml b/langs/boo.yaml deleted file mode 100644 index a5a0e81..0000000 --- a/langs/boo.yaml +++ /dev/null @@ -1,56 +0,0 @@ -id: "boo" -aliases: - - "booc" -name: "Boo" - -info: - year: 2003 - desc: "Object-oriented, statically typed, general-purpose programming language on Microsoft's Common Language Infrastructure" - ext: boo - web: - wiki: "https://en.wikipedia.org/wiki/Boo_(programming_language)" - home: "https://boo-language.github.io/" - source: "https://github.com/boo-lang/boo" - category: general - mode: compiled - platform: clr - syntax: - - python - - extensible - - whitespace - typing: - - static - - dynamic - paradigm: - - imperative - - oo - usage: [] - -install: - apt: - - mono-runtime - - mono-devel - manual: | - install -d "${pkg}/usr/local/lib" - install -d "${pkg}/usr/local/bin" - wget https://github.com/boo-lang/boo/releases/download/unstable/boo-latest.zip - unzip boo-latest.zip - mv -T boo-latest "${pkg}/usr/local/lib/boo" - chmod +x "${pkg}/usr/local/lib/boo/booc" "${pkg}/usr/local/lib/boo/booish" - ln -s /usr/local/lib/boo/booc /usr/local/lib/boo/booish "${pkg}/usr/local/bin/" - -setup: | - mkdir -p "$HOME/.local/share" - touch "$HOME/.local/share/booish_history" - -repl: | - booish - -main: "main.boo" -template: | - print "Hello, world!" - -compile: | - booc main.boo -run: | - mono main.exe; booish diff --git a/langs/brainf.yaml b/langs/brainf.yaml deleted file mode 100644 index c949292..0000000 --- a/langs/brainf.yaml +++ /dev/null @@ -1,101 +0,0 @@ -id: "brainf" -aliases: - - "brainfuck" - - "bf" -name: "Brainf***" - -info: - impl: "Beef" - year: 1993 - desc: "Famous esoteric programming language created in 1993 by Urban Müller" - ext: - - b - - bf - web: - wiki: "https://en.wikipedia.org/wiki/Brainfuck" - esolang: "https://esolangs.org/wiki/Brainfuck" - impl: "https://kiyuko.org/software/beef" - source: "https://github.com/andreabolognani/beef" - category: esoteric - mode: interpreted - platform: bf - syntax: golf - typing: integer - paradigm: turing - usage: [] - -install: - apt: - - beef - scripts: - brainf: | - #!/usr/bin/env python3 - import argparse - import readline - import subprocess - import tempfile - - parser = argparse.ArgumentParser() - parser.add_argument("file", nargs="?") - args = parser.parse_args() - - if args.file: - subprocess.run(["beef", args.file]) - while True: - try: - code = input("bf> ") - except KeyboardInterrupt: - print("^C") - continue - except EOFError: - print("^D") - break - if not code: - continue - with tempfile.NamedTemporaryFile(mode="w") as f: - f.write(code) - f.flush() - subprocess.run(["beef", f.name]) - -repl: | - brainf -input: | - >++>+[>++++[-<++++>]<<]> [>>+>+<<<-]>>>[<<<+>>>-]<<+>[<->[>++++++++++<[->-[>+>>]>[+[-<+>]>+>>]<<<<<]>[-]++++++++[<++++++>-]>[<<+>>-]>[<<+>>-]<<]>]<[->>++++++++[<++++++>-]]<[.[-]<]< -output: | - 86 - -main: "main.bf" -template: | - ++++++++ - [ - >++++ - [ - >++ - >+++ - >+++ - >+ - <<<<- - ] - >+ - >+ - >- - >>+ - [<] - - <- - ] - - >>. - >---. - +++++++..+++. - >>. - <-. - <. - +++.------.--------. - >>+. - >++. - -run: | - brainf main.bf -hello: | - Hello World diff --git a/langs/bython.yaml b/langs/bython.yaml deleted file mode 100644 index 53fa2fe..0000000 --- a/langs/bython.yaml +++ /dev/null @@ -1,15 +0,0 @@ -id: "bython" -aliases: - - "by" -name: "Bython" - -install: - pip: - - bython - -main: "main.by" -template: | - print("Hello, world!") - -run: | - bython main.by diff --git a/langs/carp.yaml b/langs/carp.yaml deleted file mode 100644 index 4aca952..0000000 --- a/langs/carp.yaml +++ /dev/null @@ -1,49 +0,0 @@ -id: "carp" -name: "Carp" - -info: - year: 2015 - desc: "Programming language designed to work well for interactive and performance sensitive use cases like games, sound synthesis and visualizations" - ext: carp - web: - source: "https://github.com/carp-lang/Carp" - category: general - mode: interpreted - platform: [] - syntax: lisp - typing: static - paradigm: - - functional - - imperative - usage: [] - -install: - manual: | - install -d "${pkg}/opt/carp" - install -d "${pkg}/usr/local/bin" - - ver="$(curl -sSL "https://api.github.com/repos/carp-lang/Carp/releases" | jq '.[].tag_name' -r | grep Linux | sort -rV | grep -Eo '[0-9.]+' | head -n1)" - wget "https://github.com/carp-lang/Carp/releases/download/v${ver}_Linux/v${ver}.zip" -O carp.zip - unzip carp.zip - mv "v${ver}/bin"/* "${pkg}/usr/local/bin/" - mv "v${ver}/core" "${pkg}/opt/carp/" - -repl: | - CARP_DIR=/opt/carp carp -input: | - (* 123 234) - -main: "main.carp" -template: | - (use IO) - - (println "Hello, world!") - -run: | - CARP_DIR=/opt/carp carp main.carp - -scope: - code: | - (def x (* 123 234)) - -timeoutFactor: 8 diff --git a/langs/cat.yaml b/langs/cat.yaml deleted file mode 100644 index a3446a0..0000000 --- a/langs/cat.yaml +++ /dev/null @@ -1,58 +0,0 @@ -id: "cat" -aliases: - - "cat-language" -name: "Cat" - -info: - year: 2006 - desc: "Statically typed stack-based programming language in C#" - ext: cat - web: - source: "https://github.com/cdiggins/cat-language" - category: pure - mode: interpreted - platform: [] - syntax: tokens - typing: static - paradigm: stack - usage: [] - -install: - scripts: - cat-lang: | - #!/usr/bin/env -S NODE_PATH=/opt/cat node - const fs = require("fs"); - const repl = require("repl"); - - const args = process.argv.slice(2); - if (args.length > 1) { - console.error("usage: cat-lang [FILE]"); - process.exit(1); - } - - const program = args.length === 1 ? fs.readFileSync(args[0], "utf-8") : null; - - const cat = require("cat"); - const ce = new cat.CatLanguage.CatEvaluator(); - - if (program !== null) { - ce.eval(program); - } - - repl.start({prompt: "cat> ", eval: (cmd, context, filename, callback) => callback(null, ce.eval(cmd))}); - manual: | - git clone https://github.com/cdiggins/cat-language "${pkg}/opt/cat" - -repl: | - cat-lang -input: | - 123 234 mul - -main: "main.cat" -template: | - 72 101 108 108 111 44 32 119 111 114 108 100 33 10 - -run: | - cat-lang main.cat -hello: | - 72,101,108,108,111,44,32,119,111,114,108,100,33,10 diff --git a/langs/ceylon.yaml b/langs/ceylon.yaml deleted file mode 100644 index 3c86586..0000000 --- a/langs/ceylon.yaml +++ /dev/null @@ -1,42 +0,0 @@ -id: "ceylon" -name: "Ceylon" - -info: - year: 2011 - desc: "Object-oriented, strongly statically typed programming language with an emphasis on immutability, created by Red Hat" - ext: ceylon - web: - wiki: "https://en.wikipedia.org/wiki/Ceylon_(programming_language)" - home: "https://ceylon-lang.org/" - source: "https://ceylon-lang.org/code/source/" - category: general - mode: compiled - platform: jvm - syntax: c - typing: static - paradigm: - - imperative - - oo - usage: [] - -install: - prepare: &add-ceylon-repo - cert: - - "https://cacerts.digicert.com/DigiCertTLSRSASHA2562020CA1.crt.pem" - aptKey: - - "https://downloads.ceylon-lang.org/apt/ceylon-debian-repo.gpg.key" - aptRepo: - - "deb [arch=amd64] https://downloads.ceylon-lang.org/apt/ unstable main" - <<: *add-ceylon-repo - apt: - - $(grep-aptavail -F Package ceylon -s Package -n | sort -rV | head -n1) - - openjdk-8-jdk-headless - -main: "source/main.ceylon" -template: | - shared void run() { - print("Hello, world!"); - } - -run: | - PATH="/usr/lib/jvm/java-8-openjdk-amd64/bin:$PATH" ceylon run --compile=force default diff --git a/langs/chef.yaml b/langs/chef.yaml deleted file mode 100644 index c24faee..0000000 --- a/langs/chef.yaml +++ /dev/null @@ -1,90 +0,0 @@ -id: "chef" -name: "Chef" - -info: - impl: "Acme::Chef" - year: 2002 - desc: "Stack-based language where programs look like cooking recipes" - ext: chef - web: - esolang: "https://esolangs.org/wiki/Chef" - home: "https://www.dangermouse.net/esoteric/chef.html" - source: "http://search.cpan.org/author/SMUELLER/Acme-Chef/" - category: esoteric - mode: - - compiled - - interpreted - platform: [] - syntax: text - typing: integer - paradigm: imperative - usage: [] - -install: - cpan: - - Acme::Chef - -main: "main.chef" -template: | - Hello World Cake with Chocolate Sauce. - - Ingredients. - 33 g chocolate chips - 100 g butter - 54 ml double cream - 2 pinches baking powder - 114 g sugar - 111 ml beaten eggs - 119 g flour - 32 g cocoa powder - 0 g cake mixture - - Cooking time: 25 minutes. - - Pre-heat oven to 180 degrees Celsius. - - Method. - Put chocolate chips into the mixing bowl. - Put butter into the mixing bowl. - Put sugar into the mixing bowl. - Put beaten eggs into the mixing bowl. - Put flour into the mixing bowl. - Put baking powder into the mixing bowl. - Put cocoa powder into the mixing bowl. - Stir the mixing bowl for 1 minute. - Combine double cream into the mixing bowl. - Stir the mixing bowl for 4 minutes. - Liquefy the contents of the mixing bowl. - Pour contents of the mixing bowl into the baking dish. - bake the cake mixture. - Wait until baked. - Serve with chocolate sauce. - - Chocolate Sauce. - - Ingredients. - 111 g sugar - 108 ml hot water - 108 ml heated double cream - 101 g dark chocolate - 72 g milk chocolate - - Method. - Clean the mixing bowl. - Put sugar into the mixing bowl. - Put hot water into the mixing bowl. - Put heated double cream into the mixing bowl. - dissolve the sugar. - agitate the sugar until dissolved. - Liquefy the dark chocolate. - Put dark chocolate into the mixing bowl. - Liquefy the milk chocolate. - Put milk chocolate into the mixing bowl. - Liquefy contents of the mixing bowl. - Pour contents of the mixing bowl into the baking dish. - Refrigerate for 1 hour. - -run: | - chef main.chef -hello: | - Hello world! diff --git a/langs/cil.yaml b/langs/cil.yaml deleted file mode 100644 index 5e02262..0000000 --- a/langs/cil.yaml +++ /dev/null @@ -1,29 +0,0 @@ -id: "cil" -aliases: - - "msil" - - "il" - - "ilasm" -name: "CIL" - -install: - apt: - - mono-devel - -main: "main.il" -template: | - .assembly main {} - .class Main - { - .method static void Main() cil managed - { - .entrypoint - ldstr "Hello, world!" - call void [mscorlib]System.Console::WriteLine(string) - ret - } - } - -compile: | - ilasm main.il -run: | - mono main.exe diff --git a/langs/clean.yaml b/langs/clean.yaml deleted file mode 100644 index d65ab4d..0000000 --- a/langs/clean.yaml +++ /dev/null @@ -1,68 +0,0 @@ -id: "clean" -aliases: - - "icl" - - "clm" - - "dcl" -name: "Clean" - -info: - year: 1987 - desc: "General-purpose purely functional computer programming language" - ext: - - icl - - dcl - - abc - web: - wiki: "https://en.wikipedia.org/wiki/Clean_(programming_language)" - home: "https://clean.cs.ru.nl/Clean" - source: "https://gitlab.science.ru.nl/clean-compiler-and-rts/compiler" - category: general - mode: compiled - platform: [] - syntax: haskell - typing: static - paradigm: - - declarative - - functional - usage: [] - -install: - manual: | - install -d "${pkg}/opt/clean" - install -d "${pkg}/usr/local/bin" - - url="$(curl -fsSL https://clean.cs.ru.nl/Download_Clean | grep linux/clean | grep -F 64.tar.gz | grep -Eo "https://[^>]+\.tar\.gz")" - wget "${url}" - - sudo mkdir /opt/clean - sudo chown riju:riju /opt/clean - tar -xf clean*_64.tar.gz -C /opt/clean --strip-components=1 - - pushd /opt/clean - make - popd - - mv /opt/clean/* "${pkg}/opt/clean/" - sudo rmdir /opt/clean - - ln -s /opt/clean/bin/clm "${pkg}/usr/local/bin/" - - sleep 2 - find "${pkg}/opt/clean" -name '*.o' -exec touch '{}' ';' - -main: "main.icl" -template: | - module main - - import StdEnv - - Start world - #(console, world) = stdio world - #console = fwrites "Hello, world!\n" console - #(ok, world) = fclose console world - = world - -compile: | - clm main -o main -run: | - ./main diff --git a/langs/clojure.yaml b/langs/clojure.yaml deleted file mode 100644 index 7838a7b..0000000 --- a/langs/clojure.yaml +++ /dev/null @@ -1,67 +0,0 @@ -id: "clojure" -aliases: - - "clj" -name: "Clojure" -monacoLang: clojure - -info: - impl: "Java Clojure" - year: 2007 - desc: "Modern, dynamic, and functional dialect of the Lisp programming language on the Java platform" - ext: - - clj - - cljc - - edn - web: - wiki: "https://en.wikipedia.org/wiki/Clojure" - home: "https://clojure.org/" - source: "https://github.com/clojure/clojure" - category: general - mode: interpreted - platform: jvm - syntax: - - lisp - - extensible - typing: dynamic - paradigm: - - declarative - - functional - - imperative - - oo - usage: [] - -install: - apt: - - clojure - manual: | - install -d "${pkg}/usr/local/bin" - - ver="$(latest_release snoe/clojure-lsp)" - wget "https://github.com/snoe/clojure-lsp/releases/download/${ver}/clojure-lsp" - chmod +x clojure-lsp - cp clojure-lsp "${pkg}/usr/local/bin/" - -repl: | - clojure -input: | - (* 123 234) - -main: "main.clj" -template: | - (println "Hello, world!") - -run: | - clojure -i main.clj -r - -scope: - code: | - (def x (* 123 234)) - -lsp: - start: | - clojure-lsp - code: "TODO" - item: "TODO" - -skip: - - lsp diff --git a/langs/clojurescript.yaml b/langs/clojurescript.yaml deleted file mode 100644 index e5c70a4..0000000 --- a/langs/clojurescript.yaml +++ /dev/null @@ -1,52 +0,0 @@ -id: "clojurescript" -aliases: - - "cljs" - - "lumo" -name: "ClojureScript" -monacoLang: clojure - -info: - year: 2011 - desc: "Compiler for Clojure that targets JavaScript" - ext: cljs - web: - wiki: "https://en.wikipedia.org/wiki/Clojure#Platforms" - home: "https://clojurescript.org/" - source: "https://github.com/clojure/clojurescript" - category: general - mode: - - compiled - - interpreted - platform: js - syntax: - - lisp - - extensible - typing: - - dynamic - - weak - paradigm: - - declarative - - functional - - imperative - - oo - usage: [] - -install: - npm: - - lumo-cljs - -repl: | - lumo -r -input: | - (* 123 234) - -main: "main.cljs" -template: | - (println "Hello, world!") - -run: | - lumo -i main.cljs -r - -scope: - code: | - (def x (* 123 234)) diff --git a/langs/cmake.yaml b/langs/cmake.yaml deleted file mode 100644 index bf76249..0000000 --- a/langs/cmake.yaml +++ /dev/null @@ -1,15 +0,0 @@ -id: "cmake" -aliases: - - "cmakelists" -name: "CMake" - -install: - apt: - - cmake - -main: "main.cmake" -template: | - message("Hello, world!") - -run: | - cmake -P main.cmake diff --git a/langs/cmd.yaml b/langs/cmd.yaml deleted file mode 100644 index 9dc4f6b..0000000 --- a/langs/cmd.yaml +++ /dev/null @@ -1,46 +0,0 @@ -id: "cmd" -aliases: - - "bat" - - "batch" - - "wine" -name: "Cmd" -monacoLang: bat - -info: - year: 1987 - desc: "Obsolete (but still default) command-line interpreter for Microsoft Windows" - ext: bat - web: - wiki: "https://en.wikipedia.org/wiki/Cmd.exe" - home: "https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/windows-commands" - source: null - category: shell - mode: interpreted - platform: windows - syntax: basic - typing: weak - paradigm: imperative - usage: [] - -install: - apt: - - wine - - wine32:i386 - -repl: | - wine cmd -input: | - set /a 123 * 234 - -main: "main.bat" -template: | - echo "Hello, world!" - -run: | - wine cmd /k main.bat - -scope: - code: | - set /a x = 123 * 234 - input: | - echo %x% diff --git a/langs/cobol.yaml b/langs/cobol.yaml deleted file mode 100644 index 39409bc..0000000 --- a/langs/cobol.yaml +++ /dev/null @@ -1,47 +0,0 @@ -id: "cobol" -aliases: - - "cbl" - - "cob" - - "cobc" - - "cpy" -name: "COBOL" - -info: - impl: "GnuCOBOL" - version: "COBOL 2014" - year: 1959 - desc: "Compiled English-like computer programming language designed for business use" - ext: - - cbl - - cob - - cpy - web: - wiki: "https://en.wikipedia.org/wiki/COBOL" - impl: "https://sourceforge.net/projects/gnucobol/" - source: "https://sourceforge.net/p/gnucobol/_list/svn" - category: general - mode: compiled - platform: [] - syntax: basic - typing: weak - paradigm: - - imperative - - oo - usage: popular - -install: - apt: - - gnucobol - -main: "main.cbl" -template: | - IDENTIFICATION DIVISION. - PROGRAM-ID. MAIN. - PROCEDURE DIVISION. - DISPLAY "Hello, world!". - STOP RUN. - -compile: | - cobc -free -x main.cbl -o main -run: | - ./main diff --git a/langs/coconut.yaml b/langs/coconut.yaml deleted file mode 100644 index cc82d2e..0000000 --- a/langs/coconut.yaml +++ /dev/null @@ -1,53 +0,0 @@ -id: "coconut" -aliases: - - "coco" - - "coconutlang" - - "coconut-lang" -name: "Coconut" -monacoLang: python - -info: - year: 2014 - desc: "Simple, elegant, Pythonic functional programming" - ext: - - coco - web: - home: "https://coconut-lang.org/" - source: "https://github.com/evhub/coconut" - category: general - mode: interpreted - platform: python - syntax: - - haskell - - python - - whitespace - typing: dynamic - paradigm: - - functional - - imperative - - oo - usage: [] - -install: - pip: - - coconut - -repl: | - coconut -input: | - DELAY: 3 - 123 * 234 - -main: "main.coco" -template: | - print("Hello, world!") - -run: | - coconut -i main.coco - -scope: - code: | - x = 123 * 234 - input: | - DELAY: 3 - x diff --git a/langs/coffeescript.yaml b/langs/coffeescript.yaml deleted file mode 100644 index 2390883..0000000 --- a/langs/coffeescript.yaml +++ /dev/null @@ -1,54 +0,0 @@ -id: "coffeescript" -aliases: - - "coffee" - - "litcoffee" -name: "CoffeeScript" -monacoLang: coffee - -info: - year: 2009 - desc: "Compile-to-JavaScript programming language adding syntactic sugar inspired by Ruby, Python and Haskell in an effort to enhance JavaScript's brevity and readability" - ext: - - coffee - - litcoffee - web: - wiki: "https://en.wikipedia.org/wiki/CoffeeScript" - home: "https://coffeescript.org/" - source: "https://github.com/jashkenas/coffeescript" - category: general - mode: - - interpreted - - compiled - platform: js - syntax: - - c - - haskell - typing: weak - paradigm: - - declarative - - functional - - imperative - usage: [] - -install: - npm: - - coffeescript - -repl: | - coffee - -main: "main.coffee" -template: | - console.log "Hello, world!" - -compile: | - coffee -b -c main.coffee -run: | - node -e ' - eval.apply(this, [require("fs").readFileSync("main.js", {encoding: "utf-8"})]) - require("/opt/coffeescript/lib/node_modules/coffeescript/repl").start() - ' - -scope: - code: | - x = 123 * 234 diff --git a/langs/commonlisp.yaml b/langs/commonlisp.yaml deleted file mode 100644 index 9c6fea5..0000000 --- a/langs/commonlisp.yaml +++ /dev/null @@ -1,59 +0,0 @@ -id: "commonlisp" -aliases: - - "lisp" - - "sbcl" -name: "Common Lisp" - -info: - impl: "SBCL" - year: 1984 - desc: "Modern, multi-paradigm, high-performance, compiled, ANSI-standardized, most prominent (along with Scheme) descendant of the Lisp family" - ext: - - lisp - - lsp - - l - - cl - - fasl - web: - wiki: "https://en.wikipedia.org/wiki/Common_Lisp" - home: "https://common-lisp.net/" - impl: "http://www.sbcl.org/" - source: "https://sourceforge.net/p/sbcl/sbcl/ci/master/tree/" - category: general - mode: - - compiled - - interpreted - platform: [] - syntax: - - lisp - - extensible - typing: - - static - - dynamic - paradigm: - - declarative - - functional - - imperative - - oo - usage: [] - -install: - apt: - - sbcl - - rlwrap - -repl: | - rlwrap sbcl -input: | - (* 123 234) - -main: "main.lisp" -template: | - (format t "Hello, world!") - -run: | - rlwrap sbcl --userinit main.lisp - -scope: - code: | - (defvar x (* 123 234)) diff --git a/langs/confluence.yaml b/langs/confluence.yaml deleted file mode 100644 index 44c9662..0000000 --- a/langs/confluence.yaml +++ /dev/null @@ -1,38 +0,0 @@ -id: "confluence" -aliases: - - "jira" - - "atlassian" -name: "Confluence" - -info: - impl: "Pandoc" - year: 2004 - desc: "Markup format for a popular web-based corporate wiki developed by Atlassian" - ext: [] - web: - wiki: "https://en.wikipedia.org/wiki/Confluence_(software)" - home: "https://confluence.atlassian.com/doc/confluence-wiki-markup-251003035.html" - impl: "https://pandoc.org/" - source: "https://github.com/jgm/pandoc" - category: markup - mode: [] - platform: [] - syntax: text - typing: [] - paradigm: [] - usage: [] - -install: - apt: - - pandoc - riju: - - prettier - -main: "main.txt" -template: | - Hello, world! - -compile: | - pandoc main.txt -f jira -o main.html -run: | - prettier --no-config main.html diff --git a/langs/cpp.yaml b/langs/cpp.yaml deleted file mode 100644 index ea7382d..0000000 --- a/langs/cpp.yaml +++ /dev/null @@ -1,97 +0,0 @@ -id: "cpp" -aliases: - - "c++" - - "g++" - - "clang++" - - "c++98" - - "c++03" - - "c++11" - - "c++14" - - "c++17" - - "c++20" - - "cpp98" - - "cpp03" - - "cpp11" - - "cpp14" - - "cpp17" - - "cpp20" - - "hpp" - - "cxx" - - "hxx" - - "cplusplus" -name: "C++" -monacoLang: cpp - -info: - impl: "LLVM" - version: "C++20" - year: 1985 - desc: "General-purpose programming language created by Bjarne Stroustrup as an extension of the C programming language" - ext: - - C - - cc - - cpp - - cxx - - c++ - - h - - hh - - hpp - - hxx - - h++ - web: - wiki: "https://en.wikipedia.org/wiki/C%2B%2B" - impl: "https://llvm.org/" - source: "https://github.com/llvm/llvm-project" - category: general - mode: compiled - platform: [] - syntax: c - typing: static - paradigm: - - functional - - imperative - - oo - usage: popular - -install: - apt: - - clang - - clang-format - - clangd - -main: "main.cpp" -template: | - #include - - int main() { - std::cout << "Hello, world!" << std::endl; - return 0; - } - -compile: | - clang++ -std=c++17 -pedantic -Wall -Wextra main.cpp -o main -run: | - ./main - -format: - run: | - clang-format --assume-filename=format.cpp - input: | - #include - - int main() - { - std::cout << "Hello, world!" << std::endl; - return 0; - } - -lsp: - setup: | - echo '-Wall -Wextra' | sed -E 's/\s+/\n/g' > compile_flags.txt - start: | - clangd - code: "TODO" - item: "TODO" - -skip: - - lsp diff --git a/langs/crystal.yaml b/langs/crystal.yaml deleted file mode 100644 index bd2e72f..0000000 --- a/langs/crystal.yaml +++ /dev/null @@ -1,35 +0,0 @@ -id: "crystal" -aliases: - - "cr" -name: "Crystal" - -info: - year: 2014 - desc: "General-purpose, object-oriented programming language with syntax inspired by the language Ruby" - ext: cr - web: - wiki: "https://en.wikipedia.org/wiki/Crystal_(programming_language)" - home: "https://crystal-lang.org/" - source: "https://github.com/crystal-lang/crystal" - category: general - mode: compiled - platform: [] - syntax: pascal - typing: static - paradigm: oo - usage: [] - -install: - aptKey: - - "https://keybase.io/crystal/pgp_keys.asc" - aptRepo: - - "deb [arch=amd64] https://dist.crystal-lang.org/apt crystal main" - apt: - - crystal - -main: "main.cr" -template: | - puts "Hello, world!" - -run: | - crystal main.cr diff --git a/langs/csharp.yaml b/langs/csharp.yaml deleted file mode 100644 index e81e811..0000000 --- a/langs/csharp.yaml +++ /dev/null @@ -1,36 +0,0 @@ -id: "csharp" -aliases: - - "cs" - - "mcs" -name: "C#" -monacoLang: csharp - -install: - apt: - - mono-mcs - - clang-format - -main: "main.cs" -template: | - class main { - static void Main(string[] args) { - System.Console.WriteLine("Hello, world!"); - } - } - -compile: | - mcs main.cs -run: | - mono main.exe - -format: - run: | - clang-format --style="{BasedOnStyle: llvm, IndentWidth: 4}" --assume-filename=format.cs - input: | - class main - { - static void Main(string[] args) - { - System.Console.WriteLine("Hello, world!"); - } - } diff --git a/langs/curry.yaml b/langs/curry.yaml deleted file mode 100644 index ead2375..0000000 --- a/langs/curry.yaml +++ /dev/null @@ -1,45 +0,0 @@ -id: "curry" -aliases: - - "curry2prolog" - - "pakcs" -name: "Curry" - -install: - prepare: - apt: - - swi-prolog - # We are installing from upstream because the Ubuntu 20.10 package - # was broken (pakcs wouldn't start up due to swi-prolog being bumped - # from 7.x to 8.x, causing a ZIP decoding error). - apt: - - swi-prolog - manual: | - install -d "${pkg}/opt" - install -d "${pkg}/usr/local/bin" - - path="$(curl -fsSL https://www.informatik.uni-kiel.de/~pakcs/download.html | sed '0,/Current release:/d' | grep 'href="download' | grep Linux | grep -Eo 'download/[^"]+' | head -n1)" - wget "https://www.informatik.uni-kiel.de/~pakcs/${path}" -O pakcs.tar.gz - mkdir pakcs - tar -xf pakcs.tar.gz -C pakcs --strip-components=1 - - pushd pakcs - make PAKCSINSTALLDIR=/opt/pakcs - popd - - cp -R pakcs "${pkg}/opt/" - ln -s /opt/pakcs/src/pakcs "${pkg}/usr/local/bin/" - -repl: | - SWIPL=swipl pakcs - -main: "main.curry" -template: | - main :: IO () - main = putStrLn "Hello, world!" - -run: | - SWIPL=swipl pakcs :load main.curry :eval main - -scope: - code: | - x = 123 * 234 diff --git a/langs/d.yaml b/langs/d.yaml deleted file mode 100644 index 3d68cdc..0000000 --- a/langs/d.yaml +++ /dev/null @@ -1,45 +0,0 @@ -id: "d" -aliases: - - "dmd" -name: "D" - -install: - prepare: &add-d-cert - cert: - - "https://letsencrypt.org/certs/lets-encrypt-r3.pem" - manual: | - file="$(curl -fsSL https://dlang.org/download.html | grep -Eo '"https://[^"]+amd64.deb"' | grep -v pre-release | tr -d '"')" - wget "${file}" -O dmd.deb - sudo --preserve-env=DEBIAN_FRONTEND apt-get install -y ./dmd.deb - <<: *add-d-cert - manual: | - install -d "${pkg}/usr/local/bin" - dub fetch dfmt@~master - dub run dfmt -- --version - cp "$HOME/.dub/packages/dfmt-master/dfmt/bin/dfmt" "${pkg}/usr/local/bin/" - deb: - - dmd.deb - -main: "main.d" -template: | - import std.stdio; - - void main() - { - writeln("Hello, world!"); - } - -compile: | - dmd main.d -run: | - ./main - -format: - run: | - dfmt - input: | - import std.stdio; - - void main() { - writeln("Hello, world!"); - } diff --git a/langs/dafny.yaml b/langs/dafny.yaml deleted file mode 100644 index d982337..0000000 --- a/langs/dafny.yaml +++ /dev/null @@ -1,20 +0,0 @@ -id: "dafny" -aliases: - - "dfy" -name: "Dafny" - -install: - apt: - - dafny - - mono-runtime - -main: "main.dfy" -template: | - method Main() { - print "Hello, world!\n"; - } - -compile: | - dafny main.dfy -run: | - mono main.exe diff --git a/langs/dart.yaml b/langs/dart.yaml deleted file mode 100644 index 076d382..0000000 --- a/langs/dart.yaml +++ /dev/null @@ -1,31 +0,0 @@ -id: "dart" -name: "Dart" -monacoLang: dart - -install: - aptKey: - - "https://dl-ssl.google.com/linux/linux_signing_key.pub" - aptRepo: - - "deb [arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main" - apt: - - dart - -main: "main.dart" -template: | - void main() { - print('Hello, world!'); - } - -run: | - dart main.dart - -lsp: - start: | - dart /usr/lib/dart/bin/snapshots/analysis_server.dart.snapshot --lsp - disableDynamicRegistration: true - lang: "dart" - code: "TODO" - item: "TODO" - -skip: - - lsp diff --git a/langs/dc.yaml b/langs/dc.yaml deleted file mode 100644 index dbe66b2..0000000 --- a/langs/dc.yaml +++ /dev/null @@ -1,24 +0,0 @@ -id: "dc" -name: "dc" - -install: - apt: - - dc - -repl: | - echo 'Reading from stdin...' >&2; dc -input: | - 123 234 * p - -main: "main.dc" -template: | - [Hello, world!] p - -run: | - echo 'Reading from stdin...' >&2; dc main.dc - - -scope: - code: | - 123 234 * - input: | - p diff --git a/langs/dhall.yaml b/langs/dhall.yaml deleted file mode 100644 index a2af119..0000000 --- a/langs/dhall.yaml +++ /dev/null @@ -1,23 +0,0 @@ -id: "dhall" -name: "Dhall" - -install: - apt: - - dhall - manual: | - install -d "${pkg}/usr/local/bin" - ver="$(latest_release dhall-lang/dhall-haskell)" - file="$(curl -sSL "https://api.github.com/repos/dhall-lang/dhall-haskell/releases/tags/${ver}" | jq -r '.assets | map(select(.name | (contains("dhall-json") and contains("x86_64-linux.tar.bz2")))) | .[0].name')" - wget "https://github.com/dhall-lang/dhall-haskell/releases/download/${ver}/${file}" - mkdir dhall-json - tar -xf dhall-json-*-x86_64-linux.tar.bz2 -C dhall-json - cp dhall-json/bin/dhall-to-json dhall-json/bin/json-to-dhall "${pkg}/usr/local/bin/" - -main: "main.dhall" -template: | - { output = "Hello, world!" } - -compile: | - cat main.dhall | dhall-to-json > main.json -run: | - cat main.json | jq . diff --git a/langs/dogescript.yaml b/langs/dogescript.yaml deleted file mode 100644 index c698736..0000000 --- a/langs/dogescript.yaml +++ /dev/null @@ -1,20 +0,0 @@ -id: "dogescript" -aliases: - - "doge" - - "ds" - - "wow" -name: "Dogescript" - -install: - npm: - - dogescript - -repl: | - dogescript - -main: "main.djs" -template: | - plz console.loge with "Hello, world!" - -run: | - dogescript main.djs | node; dogescript diff --git a/langs/dokuwiki.yaml b/langs/dokuwiki.yaml deleted file mode 100644 index f8d4937..0000000 --- a/langs/dokuwiki.yaml +++ /dev/null @@ -1,19 +0,0 @@ -id: "dokuwiki" -aliases: - - "doku" -name: "DokuWiki" - -install: - apt: - - pandoc - riju: - - prettier - -main: "main.txt" -template: | - Hello, world! - -compile: | - pandoc main.txt -f dokuwiki -o main.html -run: | - prettier --no-config main.html diff --git a/langs/dylan.yaml b/langs/dylan.yaml deleted file mode 100644 index 9525d87..0000000 --- a/langs/dylan.yaml +++ /dev/null @@ -1,58 +0,0 @@ -id: "dylan" -aliases: - - "opendylan" -name: "Dylan" - -install: - apt: - - libunwind-dev - manual: | - install -d "${pkg}/opt/dylan" - install -d "${pkg}/usr/local/bin" - - ver="$(latest_release dylan-lang/opendylan)" - wget "https://github.com/dylan-lang/opendylan/releases/download/${ver}/opendylan-$(grep -Eo '[0-9]+\.[0-9]+' <<< "$ver")-x86_64-linux.tar.bz2" -O opendylan.tar.bz2 - tar -xf opendylan.tar.bz2 -C "${pkg}/opt/dylan" --strip-components=1 - ln -s /opt/dylan/bin/dylan-compiler /opt/dylan/bin/make-dylan-app "${pkg}/usr/local/bin/" - - export PATH="${pkg}/opt/dylan/bin:$PATH" - - pushd "${pkg}/opt/dylan" - make-dylan-app main - mv main skel - pushd skel - cat <<"EOF" > main.dylan - Module: main - - define function main - (name :: , arguments :: ) - format-out("Hello, world!\n"); - exit-application(0); - end function main; - - main(application-name(), application-arguments()); - EOF - dylan-compiler -build main.lid - rm main.dylan - popd - popd - -setup: | - cp -R /opt/dylan/skel/* ./ - -main: "main.dylan" -template: | - Module: main - - define function main - (name :: , arguments :: ) - format-out("Hello, world!\n"); - exit-application(0); - end function main; - - main(application-name(), application-arguments()); - -compile: | - dylan-compiler -build main.lid && echo -run: | - _build/bin/main diff --git a/langs/ec.yaml b/langs/ec.yaml deleted file mode 100644 index 73a26a8..0000000 --- a/langs/ec.yaml +++ /dev/null @@ -1,61 +0,0 @@ -id: "ec" -aliases: - - "ecere" - - "ecp" - - "ecs" - - "ecc" -name: "eC" - -install: - prepare: - apt: - - libasound2-dev - - libcurl4-openssl-dev - - libfontconfig1-dev - - libgif-dev - - libgl-dev - - libglx-dev - - libjpeg-dev - - libpng-dev - - libsqlite3-dev - - libssl-dev - - libxext-dev - - libxrender-dev - apt: - - libfontconfig1 - - libfreetype6 - - libgif7 - - libgl1 - - libjpeg-turbo8 - - libpng16-16 - - libxrender1 - # Release 0.44.15 failed to compile with "multiple definition" - # errors from ld, so use the master branch instead. - manual: | - git clone https://github.com/ecere/ecere-sdk.git - pushd ecere-sdk - make - make install prefix="${pkg}/usr/local" - popd - -main: "main.ec" -template: | - class Main : Application - { - void Main() - { - PrintLn("Hello, world!"); - } - } - -compile: | - export LD_LIBRARY_PATH=/usr/local/lib/ec - ecp -c main.ec -o main.sym - ecc -c main.ec -o main.c - ecs -console main.sym main.imp -o main.main.ec - ecp -c main.main.ec -o main.main.sym - ecc -c main.main.ec -o main.main.c - clang main.c main.main.c -lecereCOM -o main -run: | - ./main -helloStatus: 139 diff --git a/langs/elm.yaml b/langs/elm.yaml deleted file mode 100644 index d974792..0000000 --- a/langs/elm.yaml +++ /dev/null @@ -1,56 +0,0 @@ -id: "elm" -name: "Elm" - -install: - npm: - - "@kachkaev/run-elm" - - "@elm-tooling/elm-language-server" - manual: | - install -d "${pkg}/opt/elm" - install -d "${pkg}/usr/local/bin" - - ver="$(latest_release elm/compiler)" - wget "https://github.com/elm/compiler/releases/download/${ver}/binary-for-linux-64-bit.gz" - gunzip binary-for-linux-64-bit.gz - chmod +x binary-for-linux-64-bit - cp binary-for-linux-64-bit "${pkg}/usr/local/bin/elm" - - mkdir elm-project - pushd elm-project - (yes || true) | "${pkg}/usr/local/bin/elm" init - cat elm.json | jq '."source-directories" = ["."]' > "${pkg}/opt/elm/elm".json - popd - -repl: | - elm repl - -main: "Main.elm" -template: | - module Main exposing (..) - - output : String - output = "Hello, world!" - -run: | - cp /opt/elm/elm.json elm.json || exit - - run-elm Main.elm - elm repl - -scope: - code: | - x = 123 * 234 - input: | - import Main - Main.x - -lsp: - setup: | - cp /opt/elm/elm.json elm.json - start: | - elm-language-server --stdio - code: "TODO" - item: "TODO" - -skip: - - lsp diff --git a/langs/elvish.yaml b/langs/elvish.yaml deleted file mode 100644 index 334c68a..0000000 --- a/langs/elvish.yaml +++ /dev/null @@ -1,27 +0,0 @@ -id: "elvish" -aliases: - - "elv" -name: "Elvish" - -install: - apt: - - elvish - -repl: | - SHELL=/usr/bin/elvish HOME="$PWD" elvish -input: | - * 123 234 - -main: ".elvish/rc.elv" -template: | - echo "Hello, world!" -createEmpty: "" - -run: | - SHELL=/usr/bin/elvish HOME="$PWD" elvish - -scope: - code: | - x = (* 123 234) - input: | - echo $x diff --git a/langs/emacslisp.yaml b/langs/emacslisp.yaml deleted file mode 100644 index 5efb536..0000000 --- a/langs/emacslisp.yaml +++ /dev/null @@ -1,38 +0,0 @@ -id: "emacslisp" -aliases: - - "elisp" - - "emacs" - - "gnuemacs" - - "xemacs" - - "ielm" -name: "Emacs Lisp" - -install: - apt: - - emacs-nox - -repl: | - emacs --eval "(progn (require 'package) (push '("melpa" . "https://melpa.org/packages/") package-archives) (package-initialize) (ielm))" -input: | - (* 123 234) - -main: "main.el" -template: | - (message "Hello, world!") - -run: | - emacs --load main.el --eval "(progn (require 'package) (push '("melpa" . "https://melpa.org/packages/") package-archives) (package-initialize) (ielm))" - -scope: - code: | - (defvar x (* 123 234)) - -pkg: - install: | - emacs -Q --batch --eval "(progn (require 'package) (push '(\"melpa\" . \"https://melpa.org/packages/\") package-archives) (package-initialize) (unless (ignore-errors (>= (length (directory-files \"~/.emacs.d/elpa/archives\")) 4)) (package-refresh-contents)) (package-install 'NAME))" - - uninstall: | - ls ~/.emacs.d/elpa | grep -- - | grep '^NAME-[0-9]' | while read pkg; do emacs -Q --batch --eval "(progn (require 'package) (push '(\"melpa" . "https://melpa.org/packages/\") package-archives) (package-initialize) (unless (ignore-errors (>= (length (directory-files \"~/.emacs.d/elpa/archives\")) 4)) (package-refresh-contents)) (call-interactively 'package-delete))" <<< "$pkg"; done - - all: | - (curl -sS https://elpa.gnu.org/packages/ | grep '' | grep -Eo '[^>]+' | grep -Eo '^[^<]+' && curl -sS https://melpa.org/archive.json | jq -r 'keys | .[]') | sort | uniq diff --git a/langs/emojicode.yaml b/langs/emojicode.yaml deleted file mode 100644 index 311940c..0000000 --- a/langs/emojicode.yaml +++ /dev/null @@ -1,34 +0,0 @@ -id: "emojicode" -aliases: - - "emoji" - - "emojic" - - "emojicodec" -name: "Emojicode" - -install: - apt: - - libtinfo5 - manual: | - install -d "${pkg}/usr/local/bin" - install -d "${pkg}/usr/local/include/emojicode" - install -d "${pkg}/usr/local/EmojicodePackages" - - ver="$(latest_release emojicode/emojicode)" - wget "https://github.com/emojicode/emojicode/releases/download/${ver}/Emojicode-$(sed 's/^v//' <<< "$ver")-Linux-x86_64.tar.gz" - tar -xf Emojicode-*-Linux-x86_64.tar.gz - pushd Emojicode-*-Linux-x86_64 - cp emojicodec "${pkg}/usr/local/bin/" - cp -R include/* "${pkg}/usr/local/include/emojicode/" - cp -R packages/* "${pkg}/usr/local/EmojicodePackages/" - popd - -main: "main.emojic" -template: | - 🏁 🍇 - 😀 🔤Hello, world!🔤❗️ - 🍉 - -compile: | - emojicodec main.emojic -run: | - ./main diff --git a/langs/entropy.yaml b/langs/entropy.yaml deleted file mode 100644 index 4f55653..0000000 --- a/langs/entropy.yaml +++ /dev/null @@ -1,31 +0,0 @@ -id: "entropy" -aliases: - - "ent" - - "entc" - - "vge" -name: "Entropy" - -install: - apt: - - mono-mcs - - mono-runtime - manual: | - install -d "${pkg}/opt/entropy" - - wget http://danieltemkin.com/Content/Entropy/Entropy.zip - unzip -d "${pkg}/opt/entropy" Entropy.zip - -main: "main.vge" -template: | - Program MyNamespace MyProgram [ - print "Hello, world!\n"; - ] - -compile: | - mono /opt/entropy/entc.exe main.vge | grep -Ev 'WARNING:|Using default' > main.cs - mcs -lib:/opt/entropy -r:Rottytooth.Esolang.Entropy main.cs -run: | - MONO_PATH=/opt/entropy mono main.exe -hello: | - [F-J][c-g][j-n][j-n][m-q][*-.][\x1e-"][u-y][m-q][p-t][j-n][b-f][\x1f-#] -helloMaxLength: 13 diff --git a/langs/erlang.yaml b/langs/erlang.yaml deleted file mode 100644 index 13dd33e..0000000 --- a/langs/erlang.yaml +++ /dev/null @@ -1,60 +0,0 @@ -id: "erlang" -aliases: - - "erl" -name: "Erlang" - -install: - prepare: - apt: - - erlang-nox - - erlang-dev - apt: - - erlang-nox - manual: | - install -d "${pkg}/usr/local/bin" - - wget https://s3.amazonaws.com/rebar3/rebar3 - chmod +x rebar3 - export PATH="$PWD:$PATH" - - git clone https://github.com/erlang-ls/erlang_ls.git - pushd erlang_ls - make - cp _build/default/bin/erlang_ls "${pkg}/usr/local/bin/erlang_ls" - popd - -repl: | - erl -input: | - 123 * 234. - -main: "main.erl" -template: | - -module(main). - -export([main/0]). - - main() -> - io:fwrite("Hello, world!\n"). - -compile: | - erl -compile main -run: | - erl -s main main - -scope: - code: | - -export([x/0]). - x() -> 123 * 234. - - after: "-export([main/0])." - input: | - main:x(). - -lsp: - start: | - erlang_ls - code: "TODO" - item: "TODO" - -skip: - - lsp diff --git a/langs/euphoria.yaml b/langs/euphoria.yaml deleted file mode 100644 index bfd7506..0000000 --- a/langs/euphoria.yaml +++ /dev/null @@ -1,25 +0,0 @@ -id: "euphoria" -aliases: - - "ex" - - "exw" - - "exu" - - "euc" - - "eui" - - "eub" -name: "Euphoria" - -install: - manual: | - install -d "${pkg}/opt/euphoria" - install -d "${pkg}/usr/local/bin" - - wget http://www.rapideuphoria.com/31/euphor31.tar - tar -xf euphor*.tar -C "${pkg}/opt/euphoria" --strip-components=1 - ln -s /opt/euphoria/bin/exu "${pkg}/usr/local/bin/" - -main: "main.exu" -template: | - puts(1, "Hello, world!\n") - -run: | - exu main.exu diff --git a/langs/ezhil.yaml b/langs/ezhil.yaml deleted file mode 100644 index e29e799..0000000 --- a/langs/ezhil.yaml +++ /dev/null @@ -1,26 +0,0 @@ -id: "ezhil" -aliases: - - "ezhili" - - "ezhuthi" - - "tamil" - - "எழில்" -name: "எழில்" - -install: - pip: - - ezhil - manual: - # https://github.com/Ezhil-Language-Foundation/Ezhil-Lang/issues/210 - sed -i 's/clock,//' "${pkg}"/opt/ezhil/lib/*/site-packages/ezhil/ezhil.py - -repl: | - ezhili - -main: "main.n" -template: | - பதிப்பி "வணக்கம், உலகமே!" - -run: | - ezhili main.n; ezhili -hello: | - வணக்கம், உலகமே! diff --git a/langs/factor.yaml b/langs/factor.yaml deleted file mode 100644 index 8d6afcc..0000000 --- a/langs/factor.yaml +++ /dev/null @@ -1,38 +0,0 @@ -id: "factor" -aliases: - - "fact" -name: "Factor" - -install: - manual: | - install -d "${pkg}/opt/factor" - install -d "${pkg}/usr/local/bin" - - ver="$(curl -sSL https://factorcode.org/ | grep -Eo 'release\?os=linux[^>]+>[^<]+' | sed -E 's/[^>]+>//' | head -n1)" - wget "https://downloads.factorcode.org/releases/${ver}/factor-linux-x86-64-${ver}.tar.gz" -O factor.tar.gz - tar -xf factor.tar.gz -C "${pkg}/opt/factor" --strip-components=1 - ln -sT /opt/factor/factor "${pkg}/usr/local/bin/factor-lang" - -repl: | - HOME="$PWD" factor-lang -input: | - 123 234 * - -main: ".factor-rc" -template: | - IN: main - USE: io - - "Hello, world!" print -createEmpty: "" - -run: | - HOME="$PWD" factor-lang - -scope: - code: | - USE: math - : x ( -- x ) 123 234 * ; - input: | - USE: main - x diff --git a/langs/false.yaml b/langs/false.yaml deleted file mode 100644 index db3c9ba..0000000 --- a/langs/false.yaml +++ /dev/null @@ -1,19 +0,0 @@ -id: "false" -aliases: - - "falselang" -name: "FALSE" - -install: - manual: | - install -d "${pkg}/usr/local/bin" - - wget https://github.com/mame/quine-relay/raw/master/vendor/false.rb - cat <(echo '#!/usr/bin/env ruby') false.rb > "${pkg}/usr/local/bin/false-lang" - chmod +x "${pkg}/usr/local/bin/false-lang" - -main: "main.false" -template: | - "Hello, world!" - -run: | - false-lang main.false diff --git a/langs/fish.yaml b/langs/fish.yaml deleted file mode 100644 index b1a75e7..0000000 --- a/langs/fish.yaml +++ /dev/null @@ -1,24 +0,0 @@ -id: "fish" -name: "Fish" - -install: - apt: - - fish - -repl: | - SHELL=/usr/bin/fish fish -input: | - expr 123 \* 234 - -main: "main.fish" -template: | - echo "Hello, world!" - -run: | - SHELL=/usr/bin/fish fish -C "$(< main.fish)" - -scope: - code: | - set x (expr 123 \* 234) - input: | - echo $x diff --git a/langs/fishlang.yaml b/langs/fishlang.yaml deleted file mode 100644 index 144e2d6..0000000 --- a/langs/fishlang.yaml +++ /dev/null @@ -1,37 +0,0 @@ -id: "fishlang" -aliases: - - "><>" -name: "><>" - -install: - manual: | - wget https://gist.githubusercontent.com/anonymous/6392418/raw/fish.py - sed -i 's:^#!.*:#!/usr/bin/env python3:' fish.py - chmod +x fish.py - install -d "${pkg}/usr/local/bin" - cp fish.py "${pkg}/usr/local/bin/fish-lang" - -info: - year: 2009 - desc: "Stack-based, reflective, two-dimensional esoteric programming language" - ext: fish - web: - esolang: "https://esolangs.org/wiki/Fish" - source: "https://gist.github.com/anonymous/6392418" - category: esoteric - mode: interpreted - platform: [] - syntax: - - golf - - 2d - typing: float - paradigm: stack - usage: [] - -main: "main.fish" -template: | - "Hello, world!"r\ - o;!?l< - -run: | - fish-lang main.fish diff --git a/langs/flex.yaml b/langs/flex.yaml deleted file mode 100644 index 3cee6cf..0000000 --- a/langs/flex.yaml +++ /dev/null @@ -1,38 +0,0 @@ -id: "flex" -aliases: - - "lex" -name: "Flex" - -install: - apt: - - flex - - flex-doc - -main: "main.lex" -template: | - %{ - #include - %} - - %% - %% - - int yywrap() { - printf("Hello, world!\n"); - return 1; - } - - int main() { - yylex(); - return 0; - } - -compile: | - lex -o main.c main.lex - clang main.c -o main -run: | - echo 'Reading from stdin, ctrl+D to end input...' >&2 - ./main -helloInput: | - DELAY: 1 - EOF diff --git a/langs/forth.yaml b/langs/forth.yaml deleted file mode 100644 index 0db415f..0000000 --- a/langs/forth.yaml +++ /dev/null @@ -1,27 +0,0 @@ -id: "forth" -aliases: - - "gforth" -name: "Forth" - -install: - apt: - - gforth - -repl: | - gforth -input: | - 123 234 * . - -main: "main.fs" -template: | - ." Hello, world!" CR - -run: | - gforth main.fs - -scope: - code: | - VARIABLE X - 123 234 * X ! - input: | - X @ . diff --git a/langs/fortran.yaml b/langs/fortran.yaml deleted file mode 100644 index 5dca9ab..0000000 --- a/langs/fortran.yaml +++ /dev/null @@ -1,36 +0,0 @@ -id: "fortran" -aliases: - - "f" - - "flang" - - "fortran77" - - "fortran90" - - "fortran95" - - "fortran2003" - - "fortran2008" -name: "FORTRAN" - -install: - apt: - - gfortran - pip: - - fortran-language-server - -main: "main.f95" -template: |2 - PROGRAM hello - PRINT *, "Hello, world!" - END PROGRAM hello - -compile: | - gfortran main.f95 -o main -run: | - ./main - -lsp: - start: | - fortls - code: "TODO" - item: "TODO" - -skip: - - lsp diff --git a/langs/fsharp.yaml b/langs/fsharp.yaml deleted file mode 100644 index c5056b5..0000000 --- a/langs/fsharp.yaml +++ /dev/null @@ -1,29 +0,0 @@ -id: "fsharp" -aliases: - - "fsharpi" - - "fsx" - - "fs" -name: "F#" -monacoLang: fsharp - -install: - apt: - - fsharp - -repl: | - fsharpi -input: | - 123 * 234 ;; - -main: "main.fsx" -template: | - printfn "Hello, world!" - -run: | - fsharpi --use:main.fsx - -scope: - code: | - let x = 123 * 234 - input: | - x ;; diff --git a/langs/gambas.yaml b/langs/gambas.yaml deleted file mode 100644 index 4196337..0000000 --- a/langs/gambas.yaml +++ /dev/null @@ -1,16 +0,0 @@ -id: "gambas" -aliases: - - "gambasscript" - - "gbs" -name: "Gambas" - -install: - apt: - - gambas3-script - -main: "main.gbs" -template: | - Print "Hello, world!" - -run: | - gbs3 main.gbs diff --git a/langs/gap.yaml b/langs/gap.yaml deleted file mode 100644 index 382cbf6..0000000 --- a/langs/gap.yaml +++ /dev/null @@ -1,24 +0,0 @@ -id: "gap" -name: "GAP" - -install: - apt: - - gap - -repl: | - gap -input: | - 123 * 234; - -main: "main.gap" -template: | - Print("Hello, world!\n"); - -run: | - gap main.gap - -scope: - code: | - x := 123 * 234; - input: | - 123 * 234; diff --git a/langs/gdb.yaml b/langs/gdb.yaml deleted file mode 100644 index e2011d6..0000000 --- a/langs/gdb.yaml +++ /dev/null @@ -1,24 +0,0 @@ -id: "gdb" -name: "GDB" - -install: - apt: - - gdb - -repl: | - gdb -input: | - p 123 * 234 - -main: "main.gdb" -template: | - p "Hello, world!" - -run: | - gdb -x main.gdb - -scope: - code: | - set $x = 123 * 234 - input: | - p $x diff --git a/langs/gel.yaml b/langs/gel.yaml deleted file mode 100644 index e452b63..0000000 --- a/langs/gel.yaml +++ /dev/null @@ -1,23 +0,0 @@ -id: "gel" -aliases: - - "genius" -name: "GEL" - -install: - apt: - - genius - -repl: | - HOME="$PWD" genius - -main: ".geniusinit" -template: | - print("Hello, world!") -createEmpty: "" - -run: | - HOME="$PWD" genius - -scope: - code: | - x = 123 * 234 diff --git a/langs/gnuplot.yaml b/langs/gnuplot.yaml deleted file mode 100644 index a68dd8f..0000000 --- a/langs/gnuplot.yaml +++ /dev/null @@ -1,24 +0,0 @@ -id: "gnuplot" -name: "Gnuplot" - -install: - apt: - - gnuplot-nox - -repl: | - gnuplot -input: | - print 123 * 234 - -main: "main.gnuplot" -template: | - print "Hello, world!" - -run: | - gnuplot main.gnuplot - - -scope: - code: | - x = 123 * 234 - input: | - print x diff --git a/langs/go.yaml b/langs/go.yaml deleted file mode 100644 index 8dda88d..0000000 --- a/langs/go.yaml +++ /dev/null @@ -1,55 +0,0 @@ -id: "go" -aliases: - - "golang" -name: "Go" -monacoLang: go - -install: - prepare: - apt: - - golang - apt: - - golang - manual: | - install -d "${pkg}/usr/local/bin" - - export GO111MODULE=on - export GOPATH="$PWD/go" - go get golang.org/x/tools/gopls@latest - cp go/bin/gopls "${pkg}/usr/local/bin/" - -main: "main.go" -template: | - package main - - import "fmt" - - func main() { - fmt.Println("Hello, world!") - } - -compile: | - go build main.go -run: | - ./main - -format: - run: | - gofmt - input: | - package main - - import "fmt" - - func main() { - fmt.Println("Hello, world!"); - } - -lsp: - start: | - gopls - code: "TODO" - item: "TODO" - -skip: - - lsp diff --git a/langs/golfscript.yaml b/langs/golfscript.yaml deleted file mode 100644 index b7c5a9d..0000000 --- a/langs/golfscript.yaml +++ /dev/null @@ -1,19 +0,0 @@ -id: "golfscript" -aliases: - - "golf" -name: "GolfScript" - -install: - manual: | - install -d "${pkg}/usr/local/bin" - - wget http://www.golfscript.com/golfscript/golfscript.rb - chmod +x golfscript.rb - cp -T golfscript.rb "${pkg}/usr/local/bin/golfscript" - -main: "main.gs" -template: | - 'Hello, world!' - -run: | - golfscript main.gs diff --git a/langs/grass.yaml b/langs/grass.yaml deleted file mode 100644 index 3a48493..0000000 --- a/langs/grass.yaml +++ /dev/null @@ -1,19 +0,0 @@ -id: "grass" -name: "Grass" - -install: - manual: | - install -d "${pkg}/usr/local/bin" - - wget http://www.blue.sky.or.jp/grass/grass.rb - chmod +x grass.rb - cp -T grass.rb "${pkg}/usr/local/bin/grass" - -main: "main.grass" -template: | - wWWwwww - -run: | - grass < main.grass -hello: | - w diff --git a/langs/groovy.yaml b/langs/groovy.yaml deleted file mode 100644 index 024666d..0000000 --- a/langs/groovy.yaml +++ /dev/null @@ -1,20 +0,0 @@ -id: "groovy" -name: "Groovy" - -install: - apt: - - groovy - -repl: | - JAVA_OPTS="-Djava.util.prefs.systemRoot=$PWD/.java -Djava.util.prefs.userRoot=$PWD/.java/.userPrefs" groovysh - -main: "main.groovy" -template: | - print "Hello, world!"; - -run: | - JAVA_OPTS="-Djava.util.prefs.systemRoot=$PWD/.java -Djava.util.prefs.userRoot=$PWD/.java/.userPrefs" groovysh main.groovy - -scope: - code: | - x = 123 * 234; diff --git a/langs/hack.yaml b/langs/hack.yaml deleted file mode 100644 index ade2fae..0000000 --- a/langs/hack.yaml +++ /dev/null @@ -1,38 +0,0 @@ -id: "hack" -aliases: - - "hhvm" -name: "Hack" - -install: - aptKey: - - "B4112585D386EB94" - aptRepo: - - "deb [arch=amd64] https://dl.hhvm.com/ubuntu ${ubuntu_name} main" - apt: - - hhvm - -repl: | - hhvm -a -input: | - print 123 * 234 - -main: "main.hack" -template: | - <<__EntryPoint>> - function main(): void { - echo "Hello, world!\n"; - } - -run: | - echo "Type 'r' at the debugger prompt to run the code" && hhvm -a main.hack -helloInput: | - r - -scope: - code: | - function x() : int { - return 123 * 234; - } - input: | - r - p x() diff --git a/langs/haskell.yaml b/langs/haskell.yaml deleted file mode 100644 index 39a7408..0000000 --- a/langs/haskell.yaml +++ /dev/null @@ -1,74 +0,0 @@ -id: "haskell" -aliases: - - "ghc" - - "ghci" - - "hs" -name: "Haskell" - -install: - prepare: - apt: - - cabal-install - manual: | - cabal update - apt: - - ghc - manual: | - install -d "${pkg}/usr/local/bin" - install -d "${pkg}/opt/brittany" - - cabal install brittany --installdir "$PWD" - cp -L brittany "${pkg}/usr/local/bin/" - - mkdir haskell-language-server - pushd haskell-language-server - ver="$(latest_release haskell/haskell-language-server)" - release="$(curl -fsSL "https://api.github.com/repos/haskell/haskell-language-server/releases/tags/${ver}")" - echo "${release}" | jq '.assets[].name' -r | grep Linux | grep -vF .tar | while read asset; do - wget "https://github.com/haskell/haskell-language-server/releases/download/${ver}/${asset}" - gunzip "${asset}" - done - chmod +x * - for binary in *; do - cp -T "${binary}" "${pkg}/usr/local/bin/${binary//-Linux/}" - done - popd - -repl: | - rm -f .ghci - ghci - -main: "Main.hs" -template: | - module Main where - - main :: IO () - main = putStrLn "Hello, world!" - -run: | - (echo ':load Main' && echo 'main') > .ghci && ghci - -scope: - code: | - x = 123 * 234 - -format: - run: | - brittany - input: | - module Main where - - main :: IO () - main = - putStrLn "Hello, world!" - -lsp: - start: | - haskell-language-server-wrapper --lsp - init: - languageServerHaskell: {} - code: "TODO" - item: "TODO" - -skip: - - lsp diff --git a/langs/haxe.yaml b/langs/haxe.yaml deleted file mode 100644 index 5c12145..0000000 --- a/langs/haxe.yaml +++ /dev/null @@ -1,22 +0,0 @@ -id: "haxe" -aliases: - - "hx" -name: "Haxe" - -install: - apt: - - haxe - - nodejs - -main: "Main.hx" -template: | - class Main { - static public function main() { - trace("Hello, world!"); - } - } - -compile: | - haxe --main Main --js Main.js -run: | - node Main.js diff --git a/langs/hcl.yaml b/langs/hcl.yaml deleted file mode 100644 index 55d680b..0000000 --- a/langs/hcl.yaml +++ /dev/null @@ -1,20 +0,0 @@ -id: "hcl" -aliases: - - "tf" - - "terraform" - - "hashicorp" - - "hc" -name: "HCL" - -install: - riju: - - yj - -main: "main.hcl" -template: | - output = "Hello, world!" - -compile: | - cat main.hcl | yj -cj > main.json -run: | - cat main.json | jq . diff --git a/langs/hexagony.yaml b/langs/hexagony.yaml deleted file mode 100644 index b2ebcb8..0000000 --- a/langs/hexagony.yaml +++ /dev/null @@ -1,26 +0,0 @@ -id: "hexagony" -aliases: - - "hxg" - - "hex" -name: "Hexagony" - -install: - manual: | - install -d "${pkg}/usr/local/bin" - install -d "${pkg}/opt" - - git clone https://github.com/m-ender/hexagony.git "${pkg}/opt/hexagony" - ln -sT /opt/hexagony/interpreter.rb "${pkg}/usr/local/bin/hexagony" - -main: "main.hxg" -template: |2 - H ; e ; - l ; d ; * - ; r ; o ; w - l ; ; o ; * 4 - 3 3 ; @ . > - ; 2 3 < \ - 4 ; * / - -run: | - hexagony main.hxg diff --git a/langs/hmmm.yaml b/langs/hmmm.yaml deleted file mode 100644 index 5feb71d..0000000 --- a/langs/hmmm.yaml +++ /dev/null @@ -1,60 +0,0 @@ -id: "hmmm" -name: "HMMM" - -install: - manual: | - install -d "${pkg}/usr/local/bin" - - wget https://www.cs.hmc.edu/~cs5grad/cs5/hmmm/code/hmmm - chmod +x hmmm - cp hmmm "${pkg}/usr/local/bin/" - -main: "main.hmmm" -template: |2 - 0 setn r1, 72 - 1 write r1 - 2 setn r1, 101 - 3 write r1 - 4 setn r1, 108 - 5 write r1 - 6 setn r1, 108 - 7 write r1 - 8 setn r1, 111 - 9 write r1 - 10 setn r1, 44 - 11 write r1 - 12 setn r1, 32 - 13 write r1 - 14 setn r1, 119 - 15 write r1 - 16 setn r1, 111 - 17 write r1 - 18 setn r1, 114 - 19 write r1 - 20 setn r1, 108 - 21 write r1 - 22 setn r1, 100 - 23 write r1 - 24 setn r1, 33 - 25 write r1 - 26 setn r1, 10 - 27 write r1 - 28 halt - -run: | - hmmm main.hmmm -hello: | - 72 - 101 - 108 - 108 - 111 - 44 - 32 - 119 - 111 - 114 - 108 - 100 - 33 - 10 diff --git a/langs/hy.yaml b/langs/hy.yaml deleted file mode 100644 index 73e4eef..0000000 --- a/langs/hy.yaml +++ /dev/null @@ -1,24 +0,0 @@ -id: "hy" -name: "Hy" - -install: - apt: - - python3-distutils - pip: - - hy - -repl: | - hy -input: | - (* 123 234) - -main: "main.hy" -template: | - (print "Hello, world!") - -run: | - hy -i main.hy - -scope: - code: | - (setv x (* 123 234)) diff --git a/langs/icon.yaml b/langs/icon.yaml deleted file mode 100644 index 45e0864..0000000 --- a/langs/icon.yaml +++ /dev/null @@ -1,21 +0,0 @@ -id: "icon" -aliases: - - "icn" - - "icont" - - "iconx" -name: "Icon" - -install: - apt: - - icont - -main: "main.icn" -template: | - procedure main () - write("Hello, world!") - end - -compile: | - icont main.icn -run: | - ./main diff --git a/langs/idris.yaml b/langs/idris.yaml deleted file mode 100644 index 938bddf..0000000 --- a/langs/idris.yaml +++ /dev/null @@ -1,44 +0,0 @@ -id: "idris" -aliases: - - "idr" - - "idris2" -name: "Idris" - -install: - prepare: - apt: - - chezscheme - apt: - - chezscheme - manual: | - install -d "${pkg}/usr/local/bin" - - wget https://www.idris-lang.org/idris2-src/idris2-latest.tgz - mkdir idris - tar -xf idris2-latest.tgz -C idris --strip-components=1 - pushd idris - make bootstrap-build SCHEME=chezscheme PREFIX=/usr/local - sudo make install PREFIX=/usr/local - sudo mv /usr/local/idris* "${pkg}/usr/local/" - sudo mv /usr/local/bin/idris* "${pkg}/usr/local/bin/" - sudo chown -R riju:riju "${pkg}/usr/local" - chmod -R a=u,go-w "${pkg}/usr/local"/idris* - popd - -repl: | - rm -f .idris/repl/init; idris2 - -main: "Main.idr" -template: | - module Main - - main : IO () - main = putStrLn "Hello, world!" - -run: | - mkdir -p .idris/repl; echo ':exec main' > .idris/repl/init; idris2 Main.idr -x main; idris2 Main.idr - -scope: - code: | - x : Int - x = 123 * 234 diff --git a/langs/ink.yaml b/langs/ink.yaml deleted file mode 100644 index a607f19..0000000 --- a/langs/ink.yaml +++ /dev/null @@ -1,30 +0,0 @@ -id: "ink" -name: "Ink" - -install: - manual: | - install -d "${pkg}/opt/ink" - install -d "${pkg}/usr/local/bin" - - ver="$(latest_release thesephist/ink)" - wget "https://github.com/thesephist/ink/releases/download/${ver}/ink-linux" - wget "https://github.com/thesephist/ink/releases/download/${ver}/std.ink" - wget "https://github.com/thesephist/ink/releases/download/${ver}/str.ink" - chmod +x ink-linux - cp -T ink-linux "${pkg}/usr/local/bin/ink" - cp std.ink str.ink "${pkg}/opt/ink/" - -repl: | - ink - -main: "main.ink" -template: | - std := load('../../../opt/ink/std') - str := load('../../../opt/ink/str') - - log := std.log - - log('Hello, world!') - -run: | - ink main.ink; ink diff --git a/langs/intercal.yaml b/langs/intercal.yaml deleted file mode 100644 index 0efb3df..0000000 --- a/langs/intercal.yaml +++ /dev/null @@ -1,34 +0,0 @@ -id: "intercal" -aliases: - - "i" - - "ick" -name: "INTERCAL" - -install: - apt: - - intercal - -main: "main.i" -template: | - DO ,1 <- #14 - PLEASE DO ,1 SUB #1 <- #238 - DO ,1 SUB #2 <- #108 - DO ,1 SUB #3 <- #112 - DO ,1 SUB #4 <- #0 - DO ,1 SUB #5 <- #64 - DO ,1 SUB #6 <- #194 - DO ,1 SUB #7 <- #48 - PLEASE DO ,1 SUB #8 <- #22 - DO ,1 SUB #9 <- #248 - DO ,1 SUB #10 <- #168 - DO ,1 SUB #11 <- #24 - DO ,1 SUB #12 <- #16 - PLEASE DO ,1 SUB #13 <- #162 - DO ,1 SUB #14 <- #52 - PLEASE READ OUT ,1 - PLEASE GIVE UP - -compile: | - ick -b main.i -run: | - ./main diff --git a/langs/io.yaml b/langs/io.yaml deleted file mode 100644 index 4186b62..0000000 --- a/langs/io.yaml +++ /dev/null @@ -1,45 +0,0 @@ -id: "io" -name: "Io" - -info: - year: 2002 - desc: "Dynamic prototype-based programming language in the same realm as Smalltalk and Self" - ext: - - io - web: - wiki: "https://en.wikipedia.org/wiki/Io_(programming_language)" - home: "https://iolanguage.org/" - source: "https://github.com/IoLanguage/io" - category: general - mode: interpreted - platform: [] - syntax: lua - typing: dynamic - paradigm: - - functional - - imperative - - oo - usage: abandoned - -install: - prepare: - manual: | - wget https://iobin.suspended-chord.info/linux/iobin-linux-x64-deb-current.zip -O io.zip - unzip io.zip - mv IoLanguage-*-Linux-x64.deb io.deb - deb: - - io.deb - -repl: | - io - -main: "Main.io" -template: | - "Hello, world!" println - -run: | - io -i Main.io - -scope: - code: | - x := 123 * 234 diff --git a/langs/ioke.yaml b/langs/ioke.yaml deleted file mode 100644 index 709b00d..0000000 --- a/langs/ioke.yaml +++ /dev/null @@ -1,28 +0,0 @@ -id: "ioke" -aliases: - - "ik" -name: "Ioke" - -install: - prepare: - cert: - - "https://letsencrypt.org/certs/lets-encrypt-r3.pem" - apt: - - default-jdk - manual: | - install -d "${pkg}/opt/ioke" - install -d "${pkg}/usr/local/bin" - - wget https://ioke.org/dist/ioke-ikj-latest.tar.gz -O ioke.tar.gz - tar -xf ioke.tar.gz -C "${pkg}/opt/ioke" --strip-components=1 - ln -s /opt/ioke/bin/ioke "${pkg}/usr/local/bin/ioke" - -repl: | - JAVA_OPTS="-Duser.home=$PWD" ioke - -main: "main.ik" -template: | - "Hello, world!" println - -run: | - JAVA_OPTS="-Duser.home=$PWD" ioke main.ik; JAVA_OPTS="-Duser.home=$PWD" ioke diff --git a/langs/j.yaml b/langs/j.yaml deleted file mode 100644 index 5de2845..0000000 --- a/langs/j.yaml +++ /dev/null @@ -1,22 +0,0 @@ -id: "j" -aliases: - - "jconsole" - - "ijconsole" -name: "J" - -install: - manual: | - wget "$(curl -sSL https://code.jsoftware.com/wiki/System/Installation/J901/Debian | grep -F '()V - aload_0 - invokenonvirtual java/lang/Object/()V - return - .end method - - .method public static main([Ljava/lang/String;)V - .limit stack 2 - getstatic java/lang/System/out Ljava/io/PrintStream; - ldc "Hello, world!" - invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V - return - .end method - -compile: | - jasmin Main.j -run: | - java Main diff --git a/langs/java.yaml b/langs/java.yaml deleted file mode 100644 index 28d434f..0000000 --- a/langs/java.yaml +++ /dev/null @@ -1,158 +0,0 @@ -id: "java" -aliases: - - "javac" -name: "Java" -monacoLang: java - -install: - apt: - - default-jdk - - clang-format - manual: | - install -d "${pkg}/opt/jdt" - - wget https://download.eclipse.org/jdtls/snapshots/jdt-language-server-latest.tar.gz - tar -xf jdt-language-server-latest.tar.gz -C "${pkg}/opt/jdt" - -main: "Main.java" -template: | - public class Main { - public static void main(String[] args) { - System.out.println("Hello, world!"); - } - } - -compile: | - javac Main.java -run: | - java Main - -format: - run: | - clang-format --style="{BasedOnStyle: llvm, IndentWidth: 4}" --assume-filename=Format.java - input: | - public class Main - { - public static void main(String[] args) - { - System.out.println("Hello, world!"); - } - } - -lsp: - setup: | - rm -rf jdt && cp -RT /opt/jdt/config_linux jdt - start: | - java -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dlog.level=ALL -noverify -Xmx1G -jar /opt/jdt/plugins/org.eclipse.equinox.launcher_*.jar -configuration "$PWD/jdt" -data "$PWD" --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED - init: - bundles: - - /opt/jdt/bundles/com.microsoft.java.test.plugin-0.19.0.jar - - /opt/jdt/bundles/com.microsoft.jdtls.ext.core-0.5.1.jar - - /opt/jdt/bundles/dg.jdt.ls.decompiler.cfr-0.0.2-201802221740.jar - - /opt/jdt/bundles/dg.jdt.ls.decompiler.common-0.0.2-201802221740.jar - - /opt/jdt/bundles/dg.jdt.ls.decompiler.fernflower-0.0.2-201802221740.jar - - /opt/jdt/bundles/dg.jdt.ls.decompiler.procyon-0.0.2-201802221740.jar - - /opt/jdt/bundles/io.projectreactor.reactor-core.jar - - /opt/jdt/bundles/java.debug.plugin.jar - - /opt/jdt/bundles/jdt-ls-commons.jar - - /opt/jdt/bundles/jdt-ls-extension.jar - - /opt/jdt/bundles/org.reactivestreams.reactive-streams.jar - extendedClientCapabilities: - advancedExtractRefactoringSupport: true - advancedGenerateAccessorsSupport: true - advancedOrganizeImportsSupport: true - classFileContentsSupport: true - generateConstructorsPromptSupport: true - generateToStringPromptSupport: true - hashCodeEqualsPromptSupport: true - moveRefactoringSupport: true - overrideMethodsPromptSupport: true - progressReportProvider: true - settings: - java: - autobuild: - enabled: true - codeGeneration: - generateComments: false - hashCodeEquals: - useInstanceof: false - useJava7Objects: false - toString: - codeStyle: STRING_CONCATENATION - limitElements: 0 - listArrayContents: true - skipNullValues: false - template: ${object.className} [${member.name()}=${member.value}, ${otherMembers}] - useBlocks: false - completion: - enabled: true - favoriteStaticMembers: - - org.junit.Assert.* - - org.junit.Assume.* - - org.junit.jupiter.api.Assertions.* - - org.junit.jupiter.api.Assumptions.* - - org.junit.jupiter.api.DynamicContainer.* - - org.junit.jupiter.api.DynamicTest.* - - org.mockito.Mockito.* - - org.mockito.ArgumentMatchers.* - - org.mockito.Answers.* - filteredTypes: - - java.awt.* - - com.sun.* - guessMethodArguments: true - importOrder: - - java - - javax - - com - - org - overwrite: true - configuration: - checkProjectSettingsExclusions: true - updateBuildConfiguration: automatic - dependency: - packagePresentation: flat - errors: - incompleteClasspath: - severity: warning - foldingRange: - enabled: true - format: - comments: - enabled: true - enabled: true - onType: - enabled: true - implementationsCodeLens: - enabled: false - import: - exclusions: - - '**/node_modules/**' - - '**/.metadata/**' - - '**/archetype-resources/**' - - '**/META-INF/maven/**' - gradle: - enabled: true - wrapper: - enabled: true - maven: - enabled: true - maven: - downloadSources: false - maxConcurrentBuilds: 1 - progressReports: - enabled: true - referencesCodeLens: - enabled: false - saveActions: - organizeImports: false - selection: - enabled: true - signatureHelp: - enabled: true - trace: - server: "off" - code: "TODO" - item: "TODO" - -skip: - - lsp diff --git a/langs/javascript.yaml b/langs/javascript.yaml deleted file mode 100644 index f1e4623..0000000 --- a/langs/javascript.yaml +++ /dev/null @@ -1,48 +0,0 @@ -id: "javascript" -aliases: - - "node" - - "js" - - "web" - - "jsx" - - "v8" - - "closure" - - "nodejs" -name: "JavaScript" -monacoLang: javascript - -install: - apt: - - nodejs - - yarn - riju: - - prettier - -repl: | - node - -main: "main.js" -template: | - console.log("Hello, world!"); - -run: | - node -e "$(< main.js)" -i - -scope: - code: | - let x = 123 * 234; - -format: - run: | - prettier --no-config --stdin-filepath=format.js - input: | - console.log('Hello, world!'); - -pkg: - install: | - yarn add NAME - - uninstall: | - yarn remove NAME - - search: | - curl -sS 'https://registry.npmjs.org/-/v1/search?text=NAME' | jq -r '.objects | map(.package.name) | .[]' diff --git a/langs/jq.yaml b/langs/jq.yaml deleted file mode 100644 index 30238ab..0000000 --- a/langs/jq.yaml +++ /dev/null @@ -1,30 +0,0 @@ -id: "jq" -name: "jq" - -install: - apt: - - jq - -repl: | - echo 'Reading from stdin...' >&2 - while true; do - jq . - done -input: | - {"foo":"bar"} -output: | - "foo": "bar" - -main: "main.jq" -template: | - "Hello, world!" - -run: | - echo 'Reading from stdin...' >&2 - while true; do - jq "$(< main.jq)" - done -helloInput: | - {} -runReplOutput: | - "Hello, world!" diff --git a/langs/jsf.yaml b/langs/jsf.yaml deleted file mode 100644 index 37e841c..0000000 --- a/langs/jsf.yaml +++ /dev/null @@ -1,145 +0,0 @@ -id: "jsf" -name: "JSF***" - -install: - apt: - - nodejs - -main: "main.js" -template: | - [][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]][([]+[][(![] - +[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[!![]+!![]+!![]]+( - !![]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![] - +[+[]]]+([][[]]+[])[+!![]]+(![]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!! - []]+([][[]]+[])[+[]]+([]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(! - ![]+[])[+[]]])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!! - []+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[+[]]]+(!![]+[])[+!![]]]((!![]+[ - ])[+!![]]+(!![]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+! - ![]]+([][[]]+[])[+!![]]+(![]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![] - ]+(!![]+[])[+[]]])[!![]+!![]+[+[]]]+([]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![ - ]+[])[+!![]]+(!![]+[])[+[]]])[!![]+!![]+!![]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!! - []+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[+[]]]+([][[]]+[])[+!![]]+(![]+[ - ])[!![]+!![]+!![]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(! - ![]+[])[+[]]])[+!![]+[+[]]]+(![]+[])[!![]+!![]]+(!![]+[])[!![]+!![]+!![]])()[(![ - ]+[])[!![]+!![]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![ - ]+[])[+[]]])[+!![]+[+[]]]+(+[]+[![]]+([]+[])[([]+[][(![]+[])[+[]]+(![]+[])[!![]+ - !![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[!![]+!![]+!![]]+(!![]+[][(![]+[])[+[]]+(! - []+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[+[]]]+([][[]]+[])[+!![ - ]]+(![]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([] - +[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[!![]+!![] - +!![]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]] - +(!![]+[])[+[]]])[+!![]+[+[]]]+(!![]+[])[+!![]]])[!![]+!![]+[+[]]]]([][(![]+[])[ - +[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]][([]+[][(![]+[])[+[]]+(! - []+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[!![]+!![]+!![]]+(!![]+[][(![] - +[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[+[]]]+([][ - []]+[])[+!![]]+(![]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+ - [])[+[]]+([]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]] - ])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![ - ]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[+[]]]+(!![]+[])[+!![]]]((!![]+[])[+!![]]+(! - ![]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!![]]+([][[]] - +[])[+!![]]+([]+[])[(![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![ - ]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[+[]]]+([][[]]+[])[+!![]]+(!![]+[])[+[]]+([] - +[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[!![]+!![] - +!![]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]] - ])[+!![]+[+[]]]+(![]+[])[!![]+!![]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+( - ![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[+[]]]+(!![]+[])[+!![]]]()[+!![]+[!![]+!![ - ]]]+(![]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]][([ - ]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[!![]+!![ - ]+!![]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[] - ]])[+!![]+[+[]]]+([][[]]+[])[+!![]]+(![]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![ - ]+[])[+!![]]+([][[]]+[])[+[]]+([]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[ - +!![]]+(!![]+[])[+[]]])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(! - []+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[+[]]]+(!![]+[])[+!![]] - ]((!![]+[])[+!![]]+(!![]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!! - []+[])[+!![]]+([][[]]+[])[+!![]]+(!![]+[])[(![]+[])[!![]+!![]+!![]]+([][[]]+[])[ - +[]]+([][(!![]+[])[!![]+!![]+!![]]+([][[]]+[])[+!![]]+(!![]+[])[+[]]+(!![]+[])[+ - !![]]+([![]]+[][[]])[+!![]+[+[]]]+(!![]+[])[!![]+!![]+!![]]+(![]+[])[!![]+!![]+! - ![]]]()+[])[!![]+!![]]]()[+!![]+[+[]]]+![]+(!![]+[])[(![]+[])[!![]+!![]+!![]]+([ - ][[]]+[])[+[]]+([][(!![]+[])[!![]+!![]+!![]]+([][[]]+[])[+!![]]+(!![]+[])[+[]]+( - !![]+[])[+!![]]+([![]]+[][[]])[+!![]+[+[]]]+(!![]+[])[!![]+!![]+!![]]+(![]+[])[! - ![]+!![]+!![]]]()+[])[!![]+!![]]]()[+!![]+[+[]]])()[([]+[][(![]+[])[+[]]+(![]+[] - )[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[!![]+!![]+!![]]+(!![]+[][(![]+[])[ - +[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[+[]]]+([][[]]+[ - ])[+!![]]+(![]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+ - []]+([]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[!! - []+!![]+!![]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[]) - [+!![]]+(!![]+[])[+[]]])[+!![]+[+[]]]+(!![]+[])[+!![]]](([]+[])[([![]]+[][[]])[+ - !![]+[+[]]]+(!![]+[])[+[]]+(![]+[])[+!![]]+(![]+[])[!![]+!![]]+([![]]+[][[]])[+! - ![]+[+[]]]+([]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[ - ]]])[!![]+!![]+!![]]+(![]+[])[!![]+!![]+!![]]]()))[+!![]+[+[]]]+(+!![])+(+!![])+ - (+[])+([]+[])[(![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[ - +!![]]+(!![]+[])[+[]]])[+!![]+[+[]]]+([][[]]+[])[+!![]]+(!![]+[])[+[]]+([]+[][(! - []+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[!![]+!![]+!![]] - +(!![]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[+!! - []+[+[]]]+(![]+[])[!![]+!![]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[] - )[+!![]]+(!![]+[])[+[]]])[+!![]+[+[]]]+(!![]+[])[+!![]]]()[+!![]+[!![]+!![]]])() - +(!![]+[])[!![]+!![]+!![]]+(![]+[])[!![]+!![]]+(![]+[])[!![]+!![]]+(!![]+[][(![] - +[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[+[]]]+([][ - (![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]][([]+[][(![]+[] - )[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[!![]+!![]+!![]]+(![] - +[])[+!![]]+(![]+[])[!![]+!![]]+(![]+[])[!![]+!![]]](![]+[])+[])[+!![]]+(![]+[][ - (![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[!![]+!![]+[+[ - ]]]+(+(+!![]+[+!![]]+(+!![])+(!![]+!![])))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]] - +(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[+[]]]+([]+[])[([]+[ - ][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[!![]+!![]+! - ![]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]]) - [+!![]+[+[]]]+([][[]]+[])[+!![]]+(![]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[ - ])[+!![]]+([][[]]+[])[+[]]+([]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!! - []]+(!![]+[])[+[]]])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+ - [])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[+[]]]+(!![]+[])[+!![]]][( - [][[]]+[])[+!![]]+(![]+[])[+!![]]+([]+(+[])[([]+[][(![]+[])[+[]]+(![]+[])[!![]+! - ![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[!![]+!![]+!![]]+(!![]+[][(![]+[])[+[]]+(![ - ]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[+[]]]+([][[]]+[])[+!![] - ]+(![]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([]+ - [][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[!![]+!![]+ - !![]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+ - (!![]+[])[+[]]])[+!![]+[+[]]]+(!![]+[])[+!![]]])[+!![]+[+!![]]]+(!![]+[])[!![]+! - ![]+!![]]]](!![]+!![]+!![]+[!![]+!![]+!![]+!![]])+(!![]+[])[+!![]]+(![]+[])[!![] - +!![]]+([][[]]+[])[!![]+!![]]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![ - ]]+(!![]+[])[+[]]][([]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![ - ]+[])[+[]]])[!![]+!![]+!![]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[]) - [+!![]]+(!![]+[])[+[]]])[+!![]+[+[]]]+([][[]]+[])[+!![]]+(![]+[])[!![]+!![]+!![] - ]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([]+[][(![]+[])[+[]]+(![]+[]) - [!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![ - ]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[+ - []]]+(!![]+[])[+!![]]]((!![]+[])[+!![]]+(!![]+[])[!![]+!![]+!![]]+(!![]+[])[+[]] - +([][[]]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+!![]]+([]+[])[(![]+[])[+[]]+(!![ - ]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[+ - []]]+([][[]]+[])[+!![]]+(!![]+[])[+[]]+([]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+ - (![]+[])[+!![]]+(!![]+[])[+[]]])[!![]+!![]+!![]]+(!![]+[][(![]+[])[+[]]+(![]+[]) - [!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[+[]]]+(![]+[])[!![]+!![]]+(! - ![]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+ - [+[]]]+(!![]+[])[+!![]]]()[+!![]+[!![]+!![]]]+(![]+[][(![]+[])[+[]]+(![]+[])[!![ - ]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]][([]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]] - +(![]+[])[+!![]]+(!![]+[])[+[]]])[!![]+!![]+!![]]+(!![]+[][(![]+[])[+[]]+(![]+[] - )[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[+[]]]+([][[]]+[])[+!![]]+(! - []+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([]+[][( - ![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[!![]+!![]+!![] - ]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![ - ]+[])[+[]]])[+!![]+[+[]]]+(!![]+[])[+!![]]]((!![]+[])[+!![]]+(!![]+[])[!![]+!![] - +!![]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+!![]]+(!![] - +[])[(![]+[])[!![]+!![]+!![]]+([][[]]+[])[+[]]+([][(!![]+[])[!![]+!![]+!![]]+([] - [[]]+[])[+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([![]]+[][[]])[+!![]+[+[]]]+(!![ - ]+[])[!![]+!![]+!![]]+(![]+[])[!![]+!![]+!![]]]()+[])[!![]+!![]]]()[+!![]+[+[]]] - +![]+(!![]+[])[(![]+[])[!![]+!![]+!![]]+([][[]]+[])[+[]]+([][(!![]+[])[!![]+!![] - +!![]]+([][[]]+[])[+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([![]]+[][[]])[+!![]+[ - +[]]]+(!![]+[])[!![]+!![]+!![]]+(![]+[])[!![]+!![]+!![]]]()+[])[!![]+!![]]]()[+! - ![]+[+[]]])()[([]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[]) - [+[]]])[!![]+!![]+!![]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![ - ]]+(!![]+[])[+[]]])[+!![]+[+[]]]+([][[]]+[])[+!![]]+(![]+[])[!![]+!![]+!![]]+(!! - []+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([]+[][(![]+[])[+[]]+(![]+[])[!![] - +!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[][ - (![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[+[]]]+ - (!![]+[])[+!![]]](([]+[])[([![]]+[][[]])[+!![]+[+[]]]+(!![]+[])[+[]]+(![]+[])[+! - ![]]+(![]+[])[!![]+!![]]+([![]]+[][[]])[+!![]+[+[]]]+([]+[][(![]+[])[+[]]+(![]+[ - ])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[!![]+!![]+!![]]+(![]+[])[!![]+!![ - ]+!![]]]()))[+!![]+[+[]]]+(!![]+!![]+!![]+!![])+(+!![])+([]+[])[(![]+[])[+[]]+(! - ![]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+ - [+[]]]+([][[]]+[])[+!![]]+(!![]+[])[+[]]+([]+[][(![]+[])[+[]]+(![]+[])[!![]+!![] - ]+(![]+[])[+!![]]+(!![]+[])[+[]]])[!![]+!![]+!![]]+(!![]+[][(![]+[])[+[]]+(![]+[ - ])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[+[]]]+(![]+[])[!![]+!![]]+ - (!![]+[][(![]+[])[+[]]+(![]+[])[!![]+!![]]+(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![ - ]+[+[]]]+(!![]+[])[+!![]]]()[+!![]+[!![]+!![]]])()) - -run: | - sed 's/[^[]()!+]//g' main.js | node diff --git a/langs/julia.yaml b/langs/julia.yaml deleted file mode 100644 index 6072bb9..0000000 --- a/langs/julia.yaml +++ /dev/null @@ -1,40 +0,0 @@ -id: "julia" -aliases: - - "jl" -name: "Julia" - -install: - prepare: - apt: - - julia - apt: - - julia - manual: | - install -d "${pkg}/opt/julia-language-server" - - export JULIA_DEPOT_PATH="${pkg}/opt/julia-language-server" - julia -e 'using Pkg; Pkg.add("LanguageServer")' - -repl: | - julia - -main: "main.jl" -template: | - println("Hello, world!") - -run: | - julia -L main.jl - -scope: - code: | - x = 123 * 234 - -lsp: - start: | - JULIA_DEPOT_PATH=:/opt/julia-language-server julia -e 'using LanguageServer; run(LanguageServerInstance(stdin, stdout))' - config: null - code: "TODO" - item: "TODO" - -skip: - - lsp diff --git a/langs/kalyn.yaml b/langs/kalyn.yaml deleted file mode 100644 index 46793c4..0000000 --- a/langs/kalyn.yaml +++ /dev/null @@ -1,29 +0,0 @@ -id: "kalyn" -name: "Kalyn" - -install: - prepare: - apt: - - haskell-stack - manual: | - install -d "${pkg}/opt/kalyn" - install -d "${pkg}/usr/local/bin" - - git clone https://github.com/raxod502/kalyn.git - pushd kalyn - stack build kalyn - cp "$(stack exec which kalyn)" "${pkg}/usr/local/bin/" - cp -R src-kalyn/Stdlib src-kalyn/Stdlib.kalyn "${pkg}/opt/kalyn/" - popd - -main: "src-kalyn/Main.kalyn" -template: | - (import "/opt/kalyn/Stdlib.kalyn") - - (public def main (IO Empty) - (print "Hello, world!\n")) - -compile: | - kalyn -run: | - out-kalyn/Main diff --git a/langs/kitten.yaml b/langs/kitten.yaml deleted file mode 100644 index 371bc23..0000000 --- a/langs/kitten.yaml +++ /dev/null @@ -1,37 +0,0 @@ -id: "kitten" -aliases: - - "ktn" -name: "Kitten" - -install: - prepare: - apt: - - haskell-stack - manual: | - install -d "${pkg}/opt/kitten" - install -d "${pkg}/usr/local/bin" - - git clone https://github.com/evincarofautumn/kitten.git - pushd kitten - stack setup - stack build - cp "$(stack exec which kitten)" "${pkg}/usr/local/bin/" - cp common.ktn "${pkg}/opt/kitten/" - popd - - pat="$(strings "${pkg}/usr/local/bin/kitten" | grep share | tr -d '\n' | xxd -p | tr -d '\n')" - repl="$(echo -n /opt/kitten | xxd -p | tr -d '\n')" - repl="$(printf "%-$(echo -n "${pat}" | wc -c)s" "${repl}" | sed 's/ /0/g')" - cat "${pkg}/usr/local/bin/kitten" | xxd -p | tr -d '\n' | sed "s/${pat}/${repl}/g" | xxd -p -r | sponge "${pkg}/usr/local/bin/kitten" - -repl: | - kitten -input: | - (123 * 234) say - -main: "main.ktn" -template: | - "Hello, world!" say - -run: | - kitten main.ktn; kitten diff --git a/langs/kotlin.yaml b/langs/kotlin.yaml deleted file mode 100644 index 2483220..0000000 --- a/langs/kotlin.yaml +++ /dev/null @@ -1,38 +0,0 @@ -id: "kotlin" -aliases: - - "kts" - - "kotlinc" -name: "Kotlin" -monacoLang: kotlin - -install: - apt: - - default-jre - manual: | - install -d "${pkg}/opt" - install -d "${pkg}/usr/local/bin" - install -d "${pkg}/usr/local/lib" - - ver="$(latest_release JetBrains/kotlin)" - wget "https://github.com/JetBrains/kotlin/releases/download/${ver}/kotlin-compiler-$(sed 's/^v//' <<< "$ver").zip" -O kotlin.zip - unzip kotlin.zip - cp -RT kotlinc "${pkg}/opt/kotlin" - - ls "${pkg}/opt/kotlin/bin" | while read name; do - ln -s "/opt/kotlin/bin/${name}" "${pkg}/usr/local/bin/" - done - - ls "${pkg}/opt/kotlin/lib" | while read name; do - ln -s "/opt/kotlin/lib/${name}" "${pkg}/usr/local/lib/" - done - -repl: | - JAVA_OPTS="-Duser.home=$PWD" kotlinc - -main: "main.kts" -template: | - println("Hello, world!") - -run: | - JAVA_OPTS="-Duser.home=$PWD" kotlinc -script main.kts - kotlinc diff --git a/langs/ksh.yaml b/langs/ksh.yaml deleted file mode 100644 index 4587395..0000000 --- a/langs/ksh.yaml +++ /dev/null @@ -1,28 +0,0 @@ -id: "ksh" -aliases: - - "kshell" -name: "Ksh" -monacoLang: shell - -install: - apt: - - ksh - -repl: | - SHELL=/usr/bin/ksh HOME="$PWD" ksh -input: | - expr 123 * 234 - -main: ".kshrc" -template: | - echo "Hello, world!" -createEmpty: "" - -run: | - SHELL=/usr/bin/ksh HOME="$PWD" ksh - -scope: - code: | - x="$(expr 123 * 234)" - input: | - echo "$x" diff --git a/langs/lazyk.yaml b/langs/lazyk.yaml deleted file mode 100644 index b952f74..0000000 --- a/langs/lazyk.yaml +++ /dev/null @@ -1,25 +0,0 @@ -id: "lazyk" -name: "Lazy K" - -install: - manual: | - install -d "${pkg}/usr/local/bin" - - git clone https://github.com/irori/lazyk.git - pushd lazyk - make - mv lazyk "${pkg}/usr/local/bin/" - popd - -main: "main.lazy" -template: | - K(S(S(S(S(S(S(SI`S`K(S(S`KS(S`KK(S`KS(S(S`KS(S`K`S(SI`KK)(S`KKK)))`K`K(SI`K0)))) - )`K(S`K`S(S`KS(S`K`SI(S`KK(S`K(S(S(SSS)(SS(SSI(SS0))))S(S`KSK))(SI`K(S`KSK)))))) - (S`KKK)))(SII)`K(SII(SII(S(S`KSK)I))))(S`K`S(S(S(SSS)(SS0))S)(SSSS))(SS(SS0))(S( - SI(SS0))(SS(SS(SS(SS`S(SSS)(SS0))))))(SS(SS(SS(SSSSSS(SS0))))))`S(S(S(SS(SS0))(S - S0))S))`K(SS0))`K(SS(SS(S(SSS)(SS(SS0))))))I(SSSSSS(SS0)))I(S(SI(SS0))(SS(SS(SS( - SS`S(SSS)(SS0))))))(SS(S(S(S(SSS)(SS0))S)(SSSS(SS(SS0)))))(S(SSS)(S(SSS)(SS0)))` - K0) - -run: | - lazyk -u main.lazy diff --git a/langs/less.yaml b/langs/less.yaml deleted file mode 100644 index be199d5..0000000 --- a/langs/less.yaml +++ /dev/null @@ -1,28 +0,0 @@ -id: "less" -aliases: - - "lessc" -name: "Less" -monacoLang: less - -install: - riju: - - prettier - npm: - - less - -main: "main.less" -template: | - body:before { - content: "Hello, world!"; - } - -run: | - lessc main.less - -format: - run: | - prettier --no-config --stdin-filepath=format.less - input: | - body:before { - content: "Hello, world!"; - } diff --git a/langs/limbo.yaml b/langs/limbo.yaml deleted file mode 100644 index 0e1b2d7..0000000 --- a/langs/limbo.yaml +++ /dev/null @@ -1,67 +0,0 @@ -id: "limbo" -aliases: - - "inferno" - - "b" -name: "Limbo" - -install: - prepare: - apt: - - gcc-multilib - - libc6-dev-i386 - - libx11-dev:i386 - - libxext-dev:i386 - apt: - - libx11-6:i386 - - libxext6:i386 - manual: | - install -d "${pkg}/opt/inferno" - install -d "${pkg}/usr/local/bin" - - url="$(curl -sSL http://www.vitanuova.com/inferno/downloads.html | grep -E 'inferno-[0-9]+\.tgz' | grep -Eo 'http://[^"]+')" - wget "${url}" -O inferno.tgz - - sudo mkdir /opt/inferno - sudo chown riju:riju /opt/inferno - tar -xf inferno.tgz -C /opt/inferno --strip-components=1 - chmod -R u+w,a=u,go-w /opt/inferno - - pushd /opt/inferno - sed -i 's/gcc/gcc -m32/g' makemk.sh - sed -i "s#ROOT=.*#ROOT=${PWD}#" mkconfig - sed -i "s#CFLAGS=#CFLAGS=-fcommon#" mkfiles/mkfile-Linux-386 - ./makemk.sh - PATH="$PWD/Linux/386/bin:$PATH" mk install - popd - - shopt -s dotglob - mv /opt/inferno/* "${pkg}/opt/inferno/" - sudo rmdir /opt/inferno - - ln -s "/opt/inferno/Linux/386/bin/emu" "/opt/inferno/Linux/386/bin/limbo" "${pkg}/usr/local/bin/" - -setup: | - ln -s /opt/inferno/* ./ - -main: "riju/main.b" -template: | - implement Cmd; - - include "sys.m"; - include "draw.m"; - - Cmd : module { - init : fn (ctxt : ref Draw->Context, args : list of string); - }; - - init(nil : ref Draw->Context, nil : list of string) - { - sys := load Sys Sys->PATH; - sys->print("Hello, world!\n"); - } - -compile: | - limbo -o riju/main.dis riju/main.b -run: | - emu -r . riju/main.dis -helloStatus: 137 diff --git a/langs/lisaac.yaml b/langs/lisaac.yaml deleted file mode 100644 index 1573303..0000000 --- a/langs/lisaac.yaml +++ /dev/null @@ -1,22 +0,0 @@ -id: "lisaac" -name: "Lisaac" - -install: - apt: - - lisaac - -main: "main.li" -template: | - Section Header - + name := MAIN; - - Section Public - - main <- - ( - "Hello, world!\n".print; - ); - -compile: | - lisaac -gcc -Wno-implicit-function-declaration main.li -run: | - ./main diff --git a/langs/livescript.yaml b/langs/livescript.yaml deleted file mode 100644 index 3bb83fc..0000000 --- a/langs/livescript.yaml +++ /dev/null @@ -1,22 +0,0 @@ -id: "livescript" -aliases: - - "lsc" - - "ls" -name: "LiveScript" - -install: - npm: - - livescript - -repl: | - lsc -input: | - DELAY: 1 - 123 * 234 - -main: "main.ls" -template: | - console.log "Hello, world!" - -run: | - lsc -r ./main.ls diff --git a/langs/llvm.yaml b/langs/llvm.yaml deleted file mode 100644 index 4ff2302..0000000 --- a/langs/llvm.yaml +++ /dev/null @@ -1,24 +0,0 @@ -id: "llvm" -name: "LLVM" -monacoLang: shell - -install: - apt: - - llvm - -main: "main.ll" -template: | - @.str = private unnamed_addr constant [13 x i8] c"Hello, world!" - - declare i32 @puts(i8* nocapture) nounwind - - define i32 @main() { - %cast210 = getelementptr [13 x i8],[13 x i8]* @.str, i64 0, i64 0 - call i32 @puts(i8* %cast210) - ret i32 0 - } - -compile: | - clang -Wno-override-module main.ll -o main -run: | - ./main diff --git a/langs/lolcode.yaml b/langs/lolcode.yaml deleted file mode 100644 index aff6bac..0000000 --- a/langs/lolcode.yaml +++ /dev/null @@ -1,24 +0,0 @@ -id: "lolcode" -aliases: - - "lol" - - "lci" -name: "LOLCODE" - -install: - prepare: - apt: - - cmake - manual: | - git clone https://github.com/justinmeza/lci.git - pushd lci - python3 install.py --prefix="${pkg}/usr/local" - popd - -main: "main.lol" -template: | - HAI 1.2 - VISIBLE "Hello, world!" - KTHXBYE - -run: | - lci main.lol diff --git a/langs/lua.yaml b/langs/lua.yaml deleted file mode 100644 index e33070b..0000000 --- a/langs/lua.yaml +++ /dev/null @@ -1,36 +0,0 @@ -id: "lua" -name: "Lua" -monacoLang: lua - -install: - apt: - - $(grep-aptavail -XF Provides lua -a -XF Version "$(grep-aptavail -XF Provides lua -s Version -n | sort -Vr | head -n1)" -s Package -n | head -n1) - manual: | - install -d "${pkg}/opt/emmylua" - - ver="$(latest_release EmmyLua/EmmyLua-LanguageServer)" - wget "https://github.com/EmmyLua/EmmyLua-LanguageServer/releases/download/${ver}/EmmyLua-LS-all.jar" - cp EmmyLua-LS-all.jar "${pkg}/opt/emmylua/EmmyLua.jar" - -repl: | - lua - -main: "main.lua" -template: | - print("Hello, world!") - -run: | - lua -i main.lua - -scope: - code: | - x = 123 * 234 - -lsp: - start: | - java -cp /opt/emmylua/EmmyLua.jar com.tang.vscode.MainKt - code: "TODO" - item: "TODO" - -skip: - - lsp diff --git a/langs/m4.yaml b/langs/m4.yaml deleted file mode 100644 index 5fc9aee..0000000 --- a/langs/m4.yaml +++ /dev/null @@ -1,22 +0,0 @@ -id: "m4" -name: "m4" - -install: - apt: - - m4 - -repl: | - echo 'Reading from stdin...' >&2; m4 -input: | - eval(123 * 234) - -main: "main.m4" -template: | - errprint(`Hello, world!') - -run: | - echo 'Reading from stdin...' >&2; m4 main.m4 - - -scope: - code: | - define(`x', eval(123 * 234)) diff --git a/langs/make.yaml b/langs/make.yaml deleted file mode 100644 index fa28409..0000000 --- a/langs/make.yaml +++ /dev/null @@ -1,22 +0,0 @@ -id: "make" -aliases: - - "gmake" - - "makefile" - - "gmakefile" - - "gnumakefile" - - "gnumake" - - "bsdmake" -name: "Make" - -install: - apt: - - make - -main: "Makefile" -template: | - .PHONY: all - all: - @echo "Hello, world!" - -run: | - make diff --git a/langs/malbolge.yaml b/langs/malbolge.yaml deleted file mode 100644 index 30e1654..0000000 --- a/langs/malbolge.yaml +++ /dev/null @@ -1,20 +0,0 @@ -id: "malbolge" -aliases: - - "mb" -name: "Malbolge" - -install: - manual: | - install -d "${pkg}/usr/local/bin" - - git clone https://github.com/bipinu/malbolge.git - clang malbolge/malbolge.c -o "${pkg}/usr/local/bin/malbolge" - -main: "main.mb" -template: |2 - (=<`#9]~6ZY32Vx/4Rs+0No-&Jk)"Fh}|Bcy?`=*z]Kw%oG4UUS0/@-ejc(:'8dc - -run: | - malbolge main.mb -hello: | - Hello World! diff --git a/langs/mariadb.yaml b/langs/mariadb.yaml deleted file mode 100644 index d2faee7..0000000 --- a/langs/mariadb.yaml +++ /dev/null @@ -1,56 +0,0 @@ -id: "mariadb" -aliases: - - "maria" -name: "MariaDB" - -install: - apt: - - libaio1 - - libtinfo5 - - mysql-client - riju: - - sqls - # MariaDB has Debian package downloads, but only for LTS versions of - # Ubuntu, so we have to download the release tarball instead. - manual: | - install -d "${pkg}/opt/mariadb" - - ver="$(curl -sSL https://downloads.mariadb.org/ | grep 'href="/mariadb/[0-9]' | grep -Eo '[0-9][^/]+' | sort -rV | head -n1)" - wget "https://downloads.mariadb.org/f/mariadb-${ver}/bintar-linux-systemd-x86_64/mariadb-${ver}-linux-systemd-x86_64.tar.gz/from/http%3A//sfo1.mirrors.digitalocean.com/mariadb/?serve" -O mariadb.tar.gz - tar -xf mariadb.tar.gz -C "${pkg}/opt/mariadb" --strip-components=1 - chmod a=rx,u=rwx "${pkg}/opt/mariadb/lib/plugin/auth_pam_tool_dir" - chmod a=rx,u=rwxs "${pkg}/opt/mariadb/lib/plugin/auth_pam_tool_dir/auth_pam_tool" - -repl: | - rm -rf data - /opt/mariadb/scripts/mariadb-install-db --no-defaults --user="$(id -un)" - (/opt/mariadb/bin/mysqld --no-defaults --datadir="$PWD/data" --socket="$PWD/socket" --skip-networking &) - until [[ -e socket ]]; do - sleep 0.01 - done - mysql --socket=socket -input: | - SELECT 123 * 234; - -main: "main.sql" -template: | - SELECT 'Hello, world!'; - -run: | - set -e - rm -rf data - /opt/mariadb/scripts/mariadb-install-db --no-defaults --user="$(id -un)" - (/opt/mariadb/bin/mysqld --no-defaults --datadir="$PWD/data" --socket="$PWD/socket" --skip-networking &) - until [[ -e socket ]]; do - sleep 0.01 - done - (mysql --socket=socket < main.sql; mysql --socket=socket) - -lsp: - start: | - sqls - code: "TODO" - item: "TODO" - -skip: - - lsp diff --git a/langs/markdown.yaml b/langs/markdown.yaml deleted file mode 100644 index 6c36b8e..0000000 --- a/langs/markdown.yaml +++ /dev/null @@ -1,38 +0,0 @@ -id: "markdown" -aliases: - - "mdown" - - "mkdn" - - "md" - - "mkd" - - "mdwn" - - "mdtxt" - - "mdtext" - - "text" - - "rmd" -name: "Markdown" -monacoLang: markdown - -install: - apt: - - pandoc - riju: - - prettier - -main: "main.md" -template: | - Hello, world! - -compile: | - pandoc main.md -o main.html -run: | - prettier --no-config main.html - -format: - run: | - prettier --no-config --stdin-filepath=format.md - input: | - 1. First - 3. Second - output: | - 1. First - 2. Second diff --git a/langs/mediawiki.yaml b/langs/mediawiki.yaml deleted file mode 100644 index db7a053..0000000 --- a/langs/mediawiki.yaml +++ /dev/null @@ -1,19 +0,0 @@ -id: "mediawiki" -aliases: - - "media" -name: "MediaWiki" - -install: - apt: - - pandoc - riju: - - prettier - -main: "main.txt" -template: | - Hello, world! - -compile: | - pandoc main.txt -f mediawiki -o main.html -run: | - prettier --no-config main.html diff --git a/langs/minizinc.yaml b/langs/minizinc.yaml deleted file mode 100644 index 45bd00e..0000000 --- a/langs/minizinc.yaml +++ /dev/null @@ -1,17 +0,0 @@ -id: "minizinc" -aliases: - - "mzn" -name: "MiniZinc" - -install: - apt: - - minizinc - -main: "main.mzn" -template: | - solve satisfy; - - output ["Hello, world!\n"]; - -run: | - minizinc --solver Gecode main.mzn diff --git a/langs/mips.yaml b/langs/mips.yaml deleted file mode 100644 index 7ab8ddf..0000000 --- a/langs/mips.yaml +++ /dev/null @@ -1,32 +0,0 @@ -id: "mips" -aliases: - - "mips64" -name: "MIPS" -monacoLang: mips - -install: - apt: - - gcc-mips64-linux-gnuabi64 - - qemu-user-static - -main: "main.S" -template: |2 - .text - .global main - main: - li $v0, 5001 - li $a0, 1 - dla $a1, message - li $a2, 14 - syscall - li $v0, 5058 - li $a0, 0 - syscall - .data - message: - .string "Hello, world!\n" - -compile: | - mips64-linux-gnuabi64-gcc main.S -o main -static -run: | - qemu-mips64-static main diff --git a/langs/miranda.yaml b/langs/miranda.yaml deleted file mode 100644 index ea8e892..0000000 --- a/langs/miranda.yaml +++ /dev/null @@ -1,59 +0,0 @@ -id: "miranda" -name: "Miranda" - -info: - year: 1983 - desc: "Pure, non-strict, polymorphic, higher order functional programming language designed by David Turner in 1983-6" - ext: m - web: - wiki: "https://en.wikipedia.org/wiki/Miranda_(programming_language)" - home: "https://www.cs.kent.ac.uk/people/staff/dat/miranda/" - source: "https://www.cs.kent.ac.uk/people/staff/dat/miranda/downloads/" - category: pure - mode: - - compiled - - interpreted - platform: [] - syntax: haskell - typing: static - paradigm: - - declarative - - functional - usage: [] - -install: - apt: - - rlwrap - manual: | - install -d "${pkg}/usr/local/bin" - install -d "${pkg}/usr/local/lib" - install -d "${pkg}/usr/share/man/man1" - - url="$(curl -fsSL https://www.cs.kent.ac.uk/people/staff/dat/miranda/downloads/ | grep 'click.php' | grep -Eo 'https?://[^"]+' | head -n1)" - wget "${url}" -O miranda.tgz - tar -xf miranda.tgz - - pushd miranda - make cleanup - make CC="gcc -w -fcommon" - mv mira "${pkg}/usr/local/bin/" - mv miralib "${pkg}/usr/local/lib/" - mv mira.1 "${pkg}/usr/share/man/man1/" - popd - -repl: | - rlwrap mira - -main: "main.m" -template: | - main = [Stdout "Hello, world!"] - -run: | - echo "[ Type 'main' to run code ]" - rlwrap mira main.m -helloInput: | - main - -scope: - code: | - x = 123 * 234 diff --git a/langs/mongodb.yaml b/langs/mongodb.yaml deleted file mode 100644 index d7a86de..0000000 --- a/langs/mongodb.yaml +++ /dev/null @@ -1,59 +0,0 @@ -id: "mongodb" -aliases: - - "mongo" - - "mongod" - - "webscale" -name: "MongoDB" - -install: - # The MongoDB package is only available for LTS releases of Ubuntu, - # so we grab it from focal. - prepare: - aptRepo: - - "deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main universe" - manual: | - sudo --preserve-env=DEBIAN_FRONTEND apt-get update - - for name in mongodb mongodb-clients mongodb-server mongodb-server-core; do - apt-get download "${name}" - mv "${name}"_*.deb "${name}.deb" - done - deb: - - mongodb.deb - - mongodb-clients.deb - - mongodb-server.deb - - mongodb-server-core.deb - depends: - strip: - - mongodb-clients - - mongodb-server - - mongodb-server-core - -repl: | - while ps -u "$(id -un)" -o comm | grep -q mongod; do - sleep 0.01 - done - rm -rf data - mkdir data - (mongod --dbpath=data --unixSocketPrefix="$PWD" --bind_ip=, &) - until mongo --host "$PWD/mongodb-27017.sock" --eval ' ' &>/dev/null; do - sleep 0.01 - done - mongo --host "$PWD/mongodb-27017.sock" - -main: "main.js" -template: | - print("Hello, world!") - -run: | - while ps -u "$(id -un)" -o comm | grep -q mongod; do - ps -u "$(id -un)" -o pid,comm | cat - sleep 0.01 - done - rm -rf data - mkdir data - (mongod --dbpath=data --unixSocketPrefix="$PWD" --bind_ip=, &) - until mongo --host "$PWD/mongodb-27017.sock" --eval ' ' &>/dev/null; do - sleep 0.01 - done - mongo --host "$PWD/mongodb-27017.sock" --shell main.js diff --git a/langs/mumps.yaml b/langs/mumps.yaml deleted file mode 100644 index a1c6073..0000000 --- a/langs/mumps.yaml +++ /dev/null @@ -1,20 +0,0 @@ -id: "mumps" -aliases: - - "mlang" - - "gtm" - - "fisgtm" -name: "MUMPS" - -install: - apt: - - fis-gtm - -main: "main.m" -template: | - main() - write "Hello, world!",! - quit - -run: | - gtm_dist=(/usr/lib/x86_64-linux-gnu/fis-gtm/V*_x86_64) - gtm_dist="${gtm_dist[@]}" "${gtm_dist[@]}/utf8/mumps" -r main main.m diff --git a/langs/mysql.yaml b/langs/mysql.yaml deleted file mode 100644 index 74f0dd9..0000000 --- a/langs/mysql.yaml +++ /dev/null @@ -1,45 +0,0 @@ -id: "mysql" -aliases: - - "my" -name: "MySQL" - -install: - apt: - - mysql-server - - mysql-client - riju: - - sqls - -repl: | - rm -rf data - mysqld --no-defaults -h "$PWD/data" --initialize-insecure - (mysqld --no-defaults -h "$PWD/data" --socket="$PWD/socket" --pid-file="$PWD/pid-file" --mysqlx=OFF --skip-networking &) - until [[ -e socket ]]; do - sleep 0.01 - done - mysql --socket="$PWD/socket" -u root -input: | - SELECT 123 * 234; - -main: "main.sql" -template: | - SELECT 'Hello, world!'; - -run: | - set -e - rm -rf data - mysqld --no-defaults -h "$PWD/data" --initialize-insecure - (mysqld --no-defaults -h "$PWD/data" --socket="$PWD/socket" --pid-file="$PWD/pid-file" --mysqlx=OFF --skip-networking &) - until [[ -e socket ]]; do - sleep 0.01 - done - (mysql --socket="$PWD/socket" -u root < main.sql; mysql --socket="$PWD/socket" -u root) - -lsp: - start: | - sqls - code: "TODO" - item: "TODO" - -skip: - - lsp diff --git a/langs/neko.yaml b/langs/neko.yaml deleted file mode 100644 index 9b92eb1..0000000 --- a/langs/neko.yaml +++ /dev/null @@ -1,17 +0,0 @@ -id: "neko" -aliases: - - "nekoc" -name: "Neko" - -install: - apt: - - neko - -main: "main.neko" -template: | - $print("Hello, world!\n"); - -compile: | - nekoc main.neko -run: | - neko main diff --git a/langs/nelua.yaml b/langs/nelua.yaml deleted file mode 100644 index bcaa86c..0000000 --- a/langs/nelua.yaml +++ /dev/null @@ -1,35 +0,0 @@ -id: "nelua" -name: "Nelua" -monacoLang: lua - -info: - year: 2019 - desc: "Systems programming language for performance sensitive applications" - ext: - - nelua - web: - home: "https://nelua.io/" - source: "https://github.com/edubart/nelua-lang" - category: general - mode: compiled - platform: lua - syntax: lua - typing: static - paradigm: - - imperative - usage: [] - -install: - manual: | - git clone https://github.com/edubart/nelua-lang.git - - pushd nelua-lang - make install PREFIX="${pkg}/usr/local" - popd - -main: "main.nelua" -template: | - print 'Hello, world!' - -run: | - nelua main.nelua diff --git a/langs/nickle.yaml b/langs/nickle.yaml deleted file mode 100644 index eb2f26a..0000000 --- a/langs/nickle.yaml +++ /dev/null @@ -1,23 +0,0 @@ -id: "nickle" -name: "Nickle" - -install: - apt: - - nickle - -repl: | - nickle - -main: "main.nickle" -template: | - printf("Hello, world!\n"); - -run: | - nickle main.nickle; echo "Type 'load \"main.nickle\"' at the repl prompt to bring variables into scope" >&2; nickle - -scope: - code: | - x = 123 * 234; - input: | - load "main.nickle" - x diff --git a/langs/nim.yaml b/langs/nim.yaml deleted file mode 100644 index 98a0165..0000000 --- a/langs/nim.yaml +++ /dev/null @@ -1,15 +0,0 @@ -id: "nim" -name: "Nim" - -install: - apt: - - nim - -main: "main.nim" -template: | - echo "Hello, world!" - -compile: | - nim compile main.nim -run: | - ./main diff --git a/langs/oberon.yaml b/langs/oberon.yaml deleted file mode 100644 index 0c5e864..0000000 --- a/langs/oberon.yaml +++ /dev/null @@ -1,36 +0,0 @@ -id: "oberon" -aliases: - - "obn" -name: "Oberon" - -install: - prepare: - apt: - - libgc-dev - apt: - - libgc-dev - manual: | - path="$(curl -sSL https://miasap.se/obnc/ | grep -F obnc_ | grep -Eo 'obnc_[^"]+' | grep -v win | head -n1)" - wget "https://miasap.se/obnc/downloads/${path}" -O obnc.tar.gz - mkdir obnc - tar -xf obnc.tar.gz -C obnc --strip-components=1 - pushd obnc - ./build - ./install --destdir="${pkg}" - popd - -main: "Main.obn" -template: | - MODULE Main; - - IMPORT Out; - - BEGIN - Out.String("Hello, world!"); - Out.Ln; - END Main. - -compile: | - obnc Main.obn -o main -run: | - ./main diff --git a/langs/objectivec.yaml b/langs/objectivec.yaml deleted file mode 100644 index 4d97523..0000000 --- a/langs/objectivec.yaml +++ /dev/null @@ -1,54 +0,0 @@ -id: "objectivec" -aliases: - - "objc" - - "gnustep" - - "obj-c" - - "objective-c" -name: "Objective-C" -monacoLang: objective-c - -install: - apt: - - gnustep-devel - - clang-format - - clangd - -main: "main.m" -template: | - #import - - int main() { - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - NSLog(@"Hello, world!"); - [pool drain]; - return 0; - } - -compile: | - gcc $(gnustep-config --objc-flags) main.m $(gnustep-config --base-libs) -o main -run: | - ./main - -format: - run: | - clang-format --assume-filename=format.m - input: | - #import - - int main() { - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - NSLog(@"Hello, world!"); - [pool drain]; - return 0; - } - -lsp: - setup: | - (gnustep-config --objc-flags && gnustep-config --base-libs) | sed -E 's/\s+/\n/g' > compile_flags.txt - start: | - clangd - code: "TODO" - item: "TODO" - -skip: - - lsp diff --git a/langs/objectivecpp.yaml b/langs/objectivecpp.yaml deleted file mode 100644 index 95f75d2..0000000 --- a/langs/objectivecpp.yaml +++ /dev/null @@ -1,58 +0,0 @@ -id: "objectivecpp" -aliases: - - "objc++" - - "objcpp" - - "objectivec++" - - "objectivecplusplus" - - "obj-c++" - - "obj-cpp" - - "objective-c++" - - "objective-cplusplus" -name: "Objective-C++" - -install: - apt: - - gnustep-devel - - gobjc++ - - clang-format - - clangd - -main: "main.mm" -template: | - #import - - int main() { - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - NSLog(@"Hello, world!"); - [pool drain]; - return 0; - } - -compile: | - gcc $(gnustep-config --objc-flags) main.mm $(gnustep-config --base-libs) -o main -run: | - ./main - -format: - run: | - clang-format --assume-filename=format.m - input: | - #import - - int main() { - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - NSLog(@"Hello, world!"); - [pool drain]; - return 0; - } - -lsp: - setup: | - (gnustep-config --objc-flags && gnustep-config --base-libs) | sed -E 's/\s+/\n/g' > compile_flags.txt - start: | - clangd - code: "TODO" - item: "TODO" - -skip: - - lsp diff --git a/langs/ocaml.yaml b/langs/ocaml.yaml deleted file mode 100644 index 4864a31..0000000 --- a/langs/ocaml.yaml +++ /dev/null @@ -1,45 +0,0 @@ -id: "ocaml" -name: "OCaml" - -install: - apt: - - ocaml-nox - opam: - - ocamlformat - - ocaml-lsp-server - -repl: | - ocaml -input: | - 123 * 234 ;; - -main: "main.ml" -template: | - ;; - print_string "Hello, world!\n" - -run: | - ocaml -init main.ml - -scope: - code: | - ;; - let x = 123 * 234 - input: | - x ;; - -format: - run: | - touch .ocamlformat; ocamlformat --name=format.ml - - input: | - print_string "Hello, world!\n";; - -lsp: - start: | - ocamllsp - lang: "ocaml" - code: "TODO" - item: "TODO" - -skip: - - lsp diff --git a/langs/octave.yaml b/langs/octave.yaml deleted file mode 100644 index 48bdae1..0000000 --- a/langs/octave.yaml +++ /dev/null @@ -1,24 +0,0 @@ -id: "octave" -aliases: - - "matlab" - - "m" - - "mathworks" -name: "Octave" - -install: - apt: - - octave - -repl: | - octave - -main: "main.m" -template: | - disp("Hello, world!") - -run: | - octave --persist main.m - -scope: - code: | - x = 123 * 234 diff --git a/langs/odin.yaml b/langs/odin.yaml deleted file mode 100644 index bff0c76..0000000 --- a/langs/odin.yaml +++ /dev/null @@ -1,49 +0,0 @@ -id: "odin" -name: "Odin" - -info: - year: 2016 - desc: "Alternative to C with goals of simplicity, high performance, built for modern systems, and joy of programming" - ext: - - odin - web: - home: "https://odin-lang.org/" - source: "https://github.com/odin-lang/Odin" - category: general - mode: compiled - platform: [] - syntax: lua - typing: static - paradigm: - - imperative - usage: [] - -install: - apt: - - libllvm11 - manual: | - install -d "${pkg}/opt" - install -d "${pkg}/usr/local/bin" - - ver="$(latest_release odin-lang/Odin)" - wget "https://github.com/odin-lang/Odin/releases/download/${ver}/odin-ubuntu-amd64-${ver}.zip" -O odin.zip - unzip odin.zip - - mv -T ubuntu_artifacts "${pkg}/opt/odin" - chmod +x "${pkg}/opt/odin/odin" - ln -s /opt/odin/odin "${pkg}/usr/local/bin/" - -main: "main.odin" -template: | - package main - - import "core:fmt" - - main :: proc() { - fmt.printf("Hello, world!\n"); - } - -compile: | - odin build main.odin -run: | - ./main diff --git a/langs/omgrofl.yaml b/langs/omgrofl.yaml deleted file mode 100644 index 375fff1..0000000 --- a/langs/omgrofl.yaml +++ /dev/null @@ -1,45 +0,0 @@ -id: "omgrofl" -aliases: - - "omg" - - "rofl" -name: "Omgrofl" - -install: - apt: - - default-jre - manual: | - install -d "${pkg}/opt/omgrofl" - - ver="$(latest_release OlegSmelov/omgrofl-interpreter)" - wget "https://github.com/OlegSmelov/omgrofl-interpreter/releases/download/${ver}/Omgrofl.jar" -O "${pkg}/opt/omgrofl/omgrofl.jar" - -main: "main.omgrofl" -template: | - lol iz 72 - rofl lol - lol iz 101 - rofl lol - lol iz 108 - rofl lol - rofl lol - lool iz 111 - rofl lool - loool iz 44 - rofl loool - loool iz 32 - rofl loool - loool iz 119 - rofl loool - rofl lool - lool iz 114 - rofl lool - rofl lol - lol iz 100 - rofl lol - lol iz 33 - rofl lol - lol iz 10 - rofl lol - -run: | - java -jar /opt/omgrofl/omgrofl.jar main.omgrofl diff --git a/langs/ook.yaml b/langs/ook.yaml deleted file mode 100644 index 0eb0b68..0000000 --- a/langs/ook.yaml +++ /dev/null @@ -1,43 +0,0 @@ -id: "ook" -name: "Ook" - -install: - prepare: - apt: - - autoconf - - libtool - - libgmp-dev - manual: | - git clone https://git.code.sf.net/p/esco/code esco - pushd esco - autoreconf -fi - ./configure --prefix="${pkg}/usr/local" - make - make install - popd - -main: "main.ook" -template: | - Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. - Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. - Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. - Ook! Ook. Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. - Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? - Ook! Ook! Ook? Ook! Ook? Ook. Ook. Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook. - Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook! Ook. Ook. Ook. Ook. Ook. - Ook. Ook. Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. - Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. - Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook! Ook. - Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. - Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. - Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. - Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook. - Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook. - Ook! Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook. - Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! - Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook. Ook! Ook. - -run: | - esco -q main.ook -hello: | - Hello World! diff --git a/langs/openscad.yaml b/langs/openscad.yaml deleted file mode 100644 index 4df40fa..0000000 --- a/langs/openscad.yaml +++ /dev/null @@ -1,16 +0,0 @@ -id: "openscad" -name: "OpenSCAD" - -install: - apt: - - openscad - -main: "main.scad" -template: | - echo("Hello, world!"); - -compile: | - openscad main.scad -o main.stl -run: | - cat main.stl -helloStatus: 1 diff --git a/langs/org.yaml b/langs/org.yaml deleted file mode 100644 index 276de61..0000000 --- a/langs/org.yaml +++ /dev/null @@ -1,19 +0,0 @@ -id: "org" -aliases: - - "orgmode" -name: "Org" - -install: - apt: - - pandoc - riju: - - prettier - -main: "main.org" -template: | - Hello, world! - -compile: | - pandoc main.org -o main.html -run: | - prettier --no-config main.html diff --git a/langs/oz.yaml b/langs/oz.yaml deleted file mode 100644 index 2b57b2c..0000000 --- a/langs/oz.yaml +++ /dev/null @@ -1,28 +0,0 @@ -id: "oz" -aliases: - - "mozart" - - "mozart2" -name: "Oz" - -install: - manual: | - ver="$(latest_release mozart/mozart2 | sed 's/^v//')" - wget "https://github.com/mozart/mozart2/releases/download/v${ver}/mozart2-${ver}-x86_64-linux.deb" -O mozart.deb - deb: - - mozart.deb - -main: "main.oz" -template: | - functor - import - Application - System - define - {System.showInfo 'Hello, world!'} - {Application.exit 0} - end - -compile: | - ozc -c main.oz -run: | - ozengine main.ozf diff --git a/langs/parigp.yaml b/langs/parigp.yaml deleted file mode 100644 index 62a8f3a..0000000 --- a/langs/parigp.yaml +++ /dev/null @@ -1,22 +0,0 @@ -id: "parigp" -aliases: - - "gp" -name: "PARI/GP" - -install: - apt: - - pari-gp - -repl: | - gp - -main: "main.gp" -template: | - print("Hello, world!") - -run: | - gp main.gp - -scope: - code: | - x = 123 * 234 diff --git a/langs/parser3.yaml b/langs/parser3.yaml deleted file mode 100644 index d8fd779..0000000 --- a/langs/parser3.yaml +++ /dev/null @@ -1,16 +0,0 @@ -id: "parser3" -aliases: - - "parser" - - "p" -name: "Parser3" - -install: - apt: - - parser3-cgi - -main: "main.p" -template: | - $console:line[Hello, world!] - -run: | - parser3 main.p diff --git a/langs/pascal.yaml b/langs/pascal.yaml deleted file mode 100644 index 9bc72aa..0000000 --- a/langs/pascal.yaml +++ /dev/null @@ -1,22 +0,0 @@ -id: "pascal" -aliases: - - "pas" - - "fpc" -name: "Pascal" -monacoLang: pascal - -install: - apt: - - fpc - -main: "main.pas" -template: | - program Main; - begin - writeln('Hello, world!'); - end. - -compile: | - fpc main.pas -run: | - ./main diff --git a/langs/pawn.yaml b/langs/pawn.yaml deleted file mode 100644 index 3a6f2a0..0000000 --- a/langs/pawn.yaml +++ /dev/null @@ -1,34 +0,0 @@ -id: "pawn" -aliases: - - "pawncc" - - "pawnrun" -name: "PAWN" - -install: - prepare: - apt: - - cmake - manual: | - install -d "${pkg}/opt/pawn" - install -d "${pkg}/usr/local/bin" - - git clone https://github.com/compuphase/pawn.git - pushd pawn - cmake . - make - cp pawncc pawnrun "${pkg}/usr/local/bin/" - cp -R include "${pkg}/opt/pawn/" - popd - -main: "main.pawn" -template: | - #include - - main() { - print("Hello, world!\n"); - } - -compile: | - pawncc main.pawn -i/opt/pawn/include -run: | - pawnrun main.amx diff --git a/langs/perl.yaml b/langs/perl.yaml deleted file mode 100644 index 52399d9..0000000 --- a/langs/perl.yaml +++ /dev/null @@ -1,35 +0,0 @@ -id: "perl" -aliases: - - "pl" - - "repl" -name: "Perl" -monacoLang: perl - -install: - apt: - - perl - cpan: - - Devel::REPL - - Perl::Tidy - -repl: | - re.pl - -main: "main.pl" -template: | - print("Hello, world!\n"); - -run: | - re.pl --rcfile ./main.pl - -scope: - code: | - my $x = 123 * 234; - input: | - $x - -format: - run: | - perltidy - input: | - print ("Hello, world!\n"); diff --git a/langs/php.yaml b/langs/php.yaml deleted file mode 100644 index 92c5bad..0000000 --- a/langs/php.yaml +++ /dev/null @@ -1,40 +0,0 @@ -id: "php" -aliases: - - "phpcli" -name: "PHP" -monacoLang: php - -install: - apt: - - php - npm: - - intelephense - -repl: | - php -a -input: | - print 123 * 234; - -main: "main.php" -template: | - > data/postgresql.conf - /usr/lib/postgresql/*/bin/pg_ctl -D data -w start - psql -h "$PWD/data" postgres -input: | - SELECT 123 * 234; - -main: "main.sql" -template: | - SELECT 'Hello, world!'; - -run: | - set -e - - rm -rf data - /usr/lib/postgresql/*/bin/initdb -D data - (echo "listen_addresses = ''"; echo "unix_socket_directories = '.'") >> data/postgresql.conf - /usr/lib/postgresql/*/bin/pg_ctl -D data -w start - - set +e - psql -h "$PWD/data" postgres -f main.sql - psql -h "$PWD/data" postgres - -lsp: - start: | - sqls - code: "TODO" - item: "TODO" - -skip: - - lsp diff --git a/langs/postscript.yaml b/langs/postscript.yaml deleted file mode 100644 index 189b710..0000000 --- a/langs/postscript.yaml +++ /dev/null @@ -1,29 +0,0 @@ -id: "postscript" -aliases: - - "ps" - - "gs" - - "ghostscript" -name: "PostScript" - -install: - apt: - - ghostscript - - rlwrap - -repl: | - rlwrap gs -input: | - 123 234 mul = - -main: "main.ps" -template: | - (Hello, world!) = - -run: | - rlwrap gs main.ps - -scope: - code: | - 123 234 mul - input: | - = diff --git a/langs/powershell.yaml b/langs/powershell.yaml deleted file mode 100644 index 915be28..0000000 --- a/langs/powershell.yaml +++ /dev/null @@ -1,51 +0,0 @@ -id: "powershell" -aliases: - - "pwsh" - - "ps1" -name: "PowerShell" -monacoLang: powershell - -install: - manual: | - install -d "${pkg}/opt/powershell" - install -d "${pkg}/usr/local/bin" - - ver="$(latest_release PowerShell/PowerShell | sed 's/^v//')" - wget "https://github.com/PowerShell/PowerShell/releases/download/v${ver}/powershell-${ver}-linux-x64.tar.gz" -O powershell.tar.gz - tar -xf powershell.tar.gz -C "${pkg}/opt/powershell" - ln -s /opt/powershell/pwsh "${pkg}/usr/local/bin/" - - ver="$(latest_release PowerShell/PowerShellEditorServices)" - wget "https://github.com/PowerShell/PowerShellEditorServices/releases/download/${ver}/PowerShellEditorServices.zip" - unzip PowerShellEditorServices.zip - cp -RT PowerShellEditorServices "${pkg}/opt/powershell-editor-services" - -repl: | - SHELL=/usr/bin/pwsh pwsh -input: | - expr 123 "*" 234 - -main: "main.ps1" -template: | - Write-Host "Hello, world!" - -run: | - SHELL=/usr/bin/pwsh pwsh -NoExit main.ps1 - -scope: - code: | - Set-Variable x "$(expr 123 "*" 234)" - input: | - echo $x - -lsp: - start: | - pwsh -NoLogo -NoProfile -Command "/opt/powershell-editor-services/PowerShellEditorServices/Start-EditorServices.ps1 -BundledModulesPath /opt/powershell-editor-services -LogPath '$PWD/.powershell-editor-services/lsp.log' -SessionDetailsPath '$PWD/.powershell-editor-services/session.json' -FeatureFlags @() -AdditionalModules @() -HostName Riju -HostProfileId 'riju' -HostVersion 0.0 -Stdio -LogLevel Normal" - code: "TODO" - item: "TODO" - -skip: - - repl - - runrepl - - scope - - lsp diff --git a/langs/prolog.yaml b/langs/prolog.yaml deleted file mode 100644 index 1d5b653..0000000 --- a/langs/prolog.yaml +++ /dev/null @@ -1,27 +0,0 @@ -id: "prolog" -name: "Prolog" - -install: - apt: - - swi-prolog - -repl: | - prolog -input: | - X is 123 * 234. - -main: "main.pl" -template: | - :- initialization main. - - main :- - write("Hello, world!"), nl. - -run: | - prolog main.pl - -scope: - code: | - x(X) :- X is 123 * 234. - input: | - x(X). diff --git a/langs/promela.yaml b/langs/promela.yaml deleted file mode 100644 index d832579..0000000 --- a/langs/promela.yaml +++ /dev/null @@ -1,18 +0,0 @@ -id: "promela" -aliases: - - "spin" - - "pml" -name: "PROMELA" - -install: - apt: - - spin - -main: "main.pml" -template: | - active proctype main() { - printf("Hello, world!\n"); - } - -run: | - spin main.pml diff --git a/langs/pseint.yaml b/langs/pseint.yaml deleted file mode 100644 index cb8e2b7..0000000 --- a/langs/pseint.yaml +++ /dev/null @@ -1,23 +0,0 @@ -id: "pseint" -aliases: - - "psc" -name: "PSeInt" - -install: - manual: | - install -d "${pkg}/usr/local/bin" - - wget "$(curl -sSL "http://pseint.sourceforge.net/index.php?page=descargas.php&os=lnx" | grep -Eo 'http://[^"]+l64[^"]+\.tgz\?download')" -O pseint.tgz - tar -xf pseint.tgz - cp pseint/bin/pseint "${pkg}/usr/local/bin/" - -main: "main.psc" -template: | - Proceso Main - Escribir "¡Hola, mundo!"; - FinProceso - -run: | - pseint --nouser main.psc -hello: | - ¡Hola, mundo! diff --git a/langs/pug.yaml b/langs/pug.yaml deleted file mode 100644 index 71298c5..0000000 --- a/langs/pug.yaml +++ /dev/null @@ -1,20 +0,0 @@ -id: "pug" -name: "Pug" -monacoLang: pug - -install: - riju: - - prettier - npm: - - pug-cli - -main: "main.pug" -template: | - html - body - p Hello, world! - -compile: | - pug main.pug -run: | - prettier --no-config main.html diff --git a/langs/purescript.yaml b/langs/purescript.yaml deleted file mode 100644 index 535b738..0000000 --- a/langs/purescript.yaml +++ /dev/null @@ -1,72 +0,0 @@ -id: "purescript" -aliases: - - "purs" - - "pure" -name: "PureScript" - -install: - prepare: - apt: - - libtinfo5 - npm: - - purescript - - spago - apt: - - libtinfo5 - npm: - - purescript - - spago - manual: | - install -d "${pkg}/opt/purescript/skel-home" - install -d "${pkg}/opt/purescript/skel-src" - - spago init -C - rm -rf .gitignore test - sed -i 's#, "test/\*\*/\*\.purs"##' spago.dhall - - cat <<"EOF" > src/Main.purs - module Main where - - import Prelude - - import Effect (Effect) - import Effect.Console (log) - - main :: Effect Unit - main = log "Hello, world!" - EOF - - spago build - spago repl < /dev/null - - rm -rf src - - shopt -s dotglob - cp -R --preserve=timestamps * "${pkg}/opt/purescript/skel-src/" - cp -R --preserve=timestamps "${HOME}/.cache" "${pkg}/opt/purescript/skel-home/" - -setup: | - shopt -s dotglob - cp -R --preserve=timestamps /opt/purescript/skel-home/* "${HOME}/" - cp -R --preserve=timestamps /opt/purescript/skel-src/* "${PWD}/" - -repl: | - spago repl - -main: "src/Main.purs" -template: | - module Main where - - import Prelude - - import Effect (Effect) - import Effect.Console (log) - - main :: Effect Unit - main = do - log "Hello, world!" - -run: | - if spago build -n; then spago run -n; (echo 'import Prelude'; echo 'import Main') > .purs-repl; spago repl; else echo 'import Prelude' > .purs-repl; spago repl -d; fi - -timeoutFactor: 2 diff --git a/langs/python.yaml b/langs/python.yaml deleted file mode 100644 index 6a63fc1..0000000 --- a/langs/python.yaml +++ /dev/null @@ -1,92 +0,0 @@ -id: "python" -aliases: - - "python3" - - "python2" - - "py" -name: "Python" -monacoLang: python - -info: - impl: "CPython" - version: "Python 3" - year: 1990 - desc: "Interpreted, high-level, general-purpose programming language" - ext: - - py - - pyi - - pyc - - pyd - - pyo - - pyw - - pyz - web: - wiki: "https://en.wikipedia.org/wiki/Python_(programming_language)" - home: "https://www.python.org/" - source: "https://github.com/python/cpython" - category: general - mode: interpreted - platform: python - syntax: - - python - - whitespace - typing: dynamic - paradigm: - - functional - - imperative - - oo - usage: popular - -install: - apt: - - python3 - - python3-pip - - black - manual: | - install -d "${pkg}/opt/mspyls" - install -d "${pkg}/usr/local/bin" - - url="$(curl -fsSL "https://pvsc.blob.core.windows.net/python-language-server-stable?restype=container&comp=list&prefix=Python-Language-Server-linux-x64" | grep -Eo 'https://[^<]+\.nupkg' | tail -n1)" - wget "${url}" - unzip -d "${pkg}/opt/mspyls" Python-Language-Server-linux-x64.*.nupkg - chmod +x "${pkg}/opt/mspyls/Microsoft.Python.LanguageServer" - ln -s "/opt/mspyls/Microsoft.Python.LanguageServer" "${pkg}/usr/local/bin/Microsoft.Python.LanguageServer" - -repl: | - python3 -u - -main: "main.py" -template: | - print("Hello, world!") - -run: | - python3 -u -i main.py - -scope: - code: | - x = 123 * 234 - -format: - run: | - black - - input: | - print('Hello, world!') - -pkg: - install: | - pip3 install --user NAME - - uninstall: | - pip3 uninstall NAME - - search: | - python3 -c 'import json; from xmlrpc import client; print(json.dumps(client.ServerProxy("https://pypi.org/pypi").search({"name": "NAME"})))' | jq -r 'map(.name) | .[]' - -lsp: - start: | - Microsoft.Python.LanguageServer - init: - interpreter: - properties: - InterpreterPath: /usr/bin/python3 - code: "import func" - item: "functools" diff --git a/langs/qalb.yaml b/langs/qalb.yaml deleted file mode 100644 index 611d24e..0000000 --- a/langs/qalb.yaml +++ /dev/null @@ -1,59 +0,0 @@ -id: "qalb" -aliases: - - "قلب" -name: "قلب" - -install: - scripts: - qalb: | - #!/usr/bin/env node - - const fs = require("fs"); - const repl = require("repl"); - - const args = process.argv.slice(2); - if (args.length > 1) { - console.error("usage: repl.js [FILE]"); - process.exit(1); - } - - const program = args.length === 1 ? fs.readFileSync(args[0], "utf-8") : null; - - eval(fs.readFileSync("/opt/qalb/qlb.js", "utf-8")); - eval(fs.readFileSync("/opt/qalb/parser.js", "utf-8")); - eval(fs.readFileSync("/opt/qalb/primitives.js", "utf-8")); - - Qlb.init({console}); - - if (program !== null) { - Qlb.execute(program); - } - - repl.start({prompt: "قلب> ", eval: (cmd, context, filename, callback) => callback(null, Qlb.execute(cmd))}); - manual: | - install -d "${pkg}/opt/qalb" - - git clone https://github.com/nasser/---.git qalb - pushd qalb - cp public/qlb/*.js "${pkg}/opt/qalb/" - popd - -repl: | - qalb -input: | - (ضرب ١٢٣ ٢٣٤) - -main: "main.qalb" -template: | - (قول "مرحبا يا عالم") - -run: | - qalb main.qalb -hello: | - مرحبا يا عالم - -scope: - code: | - (حدد خ (ضرب ١٢٣ ٢٣٤)) - input: | - خ diff --git a/langs/qsharp.yaml b/langs/qsharp.yaml deleted file mode 100644 index 98f7a42..0000000 --- a/langs/qsharp.yaml +++ /dev/null @@ -1,62 +0,0 @@ -id: "qsharp" -aliases: - - "q" - - "qs" -name: "Q#" - -install: - # Apparently, the Q# project template is hardcoded to use version - # 3.x of the .NET SDK. Not sure why. - prepare: &install-dotnet - preface: | - wget "https://packages.microsoft.com/config/ubuntu/${ubuntu_ver}/packages-microsoft-prod.deb" - sudo --preserve-env=DEBIAN_FRONTEND apt-get install ./packages-microsoft-prod.deb - sudo --preserve-env=DEBIAN_FRONTEND apt-get update - apt: - - $(grep-aptavail -wF Package "dotnet-sdk-3\.[0-9.]+" -s Package -n | sort -Vr | head -n1) - <<: *install-dotnet - # We should cache the .dotnet directory to avoid a .NET banner being - # printed, and we should cache the main directory because there is a - # generated main.csproj file that is needed by .NET. Finally we - # should cache the .nuget directory as well as the build artifacts - # inside main to avoid a 30s initial compile time. - # - # We could optimize further but I don't feel like it right now. - manual: | - install -d "${pkg}/opt/qsharp/skel-home" - install -d "${pkg}/opt/qsharp/skel-src" - - dotnet new -i Microsoft.Quantum.ProjectTemplates - dotnet new console -lang Q# -o main - dotnet run --project main - - shopt -s dotglob - cp -R main "${pkg}/opt/qsharp/skel-src/" - cp -R "${HOME}/.dotnet" "${HOME}/.nuget" "${pkg}/opt/qsharp/skel-home/" - rm "${pkg}/opt/qsharp/skel-src/main/Program.qs" - chmod -R a=u,go-w "${pkg}/opt/qsharp" - manualInstall: | - wget "https://packages.microsoft.com/config/ubuntu/${ubuntu_ver}/packages-microsoft-prod.deb" - sudo --preserve-env=DEBIAN_FRONTEND apt-get update - sudo --preserve-env=DEBIAN_FRONTEND apt-get install ./packages-microsoft-prod.deb - -setup: | - shopt -s dotglob - cp -R /opt/qsharp/skel-src/* ./ - cp -R /opt/qsharp/skel-home/* "${HOME}/" - -main: "main/Main.qs" -template: | - namespace main { - - open Microsoft.Quantum.Canon; - open Microsoft.Quantum.Intrinsic; - - @EntryPoint() - operation Main() : Unit { - Message("Hello, world!"); - } - } - -run: | - dotnet run --project main diff --git a/langs/r.yaml b/langs/r.yaml deleted file mode 100644 index 472bf96..0000000 --- a/langs/r.yaml +++ /dev/null @@ -1,27 +0,0 @@ -id: "r" -aliases: - - "rlang" -name: "R" -monacoLang: r - -install: - aptKey: - - "E298A3A825C0D65DFD57CBB651716619E084DAB9" - aptRepo: - - "deb [arch=amd64] https://cloud.r-project.org/bin/linux/ubuntu ${ubuntu_name}-$(curl -fsSL https://cran.r-project.org/bin/linux/ubuntu/ | grep -Eo 'cran[0-9]+' | head -n1)/" - apt: - - r-base - -repl: | - HOME="$PWD" R - -main: ".Rprofile" -template: | - print("Hello, world!") - -run: | - HOME="$PWD" R --no-save - -scope: - code: | - x = 123 * 234 diff --git a/langs/racket.yaml b/langs/racket.yaml deleted file mode 100644 index 09f068b..0000000 --- a/langs/racket.yaml +++ /dev/null @@ -1,28 +0,0 @@ -id: "racket" -aliases: - - "rkt" -name: "Racket" - -install: - apt: - - racket - -repl: | - racket -input: | - (* 123 234) - -main: "main.rkt" -template: | - #lang racket/base - (display "Hello, world!\n") - -run: | - racket -i -e '(enter! "main.rkt") (display "[ type (enter! \"main.rkt\") to access local variables ]\n")' - -scope: - code: | - (define x (* 123 234)) - input: | - (enter! "main.rkt") - x diff --git a/langs/rapira.yaml b/langs/rapira.yaml deleted file mode 100644 index efccac4..0000000 --- a/langs/rapira.yaml +++ /dev/null @@ -1,24 +0,0 @@ -id: "rapira" -aliases: - - "rap" - - "rerap" - - "rerap2" - - "рапира" -name: "Рапира" - -install: - manual: | - install -d "${pkg}/usr/local/bin" - - git clone https://github.com/freeduke33/rerap2.git - pushd rerap2 - make - cp rapira "${pkg}/usr/local/bin/" - popd - -main: "main.rap" -template: | - вывод: "Hello, world!" - -run: | - rapira main.rap diff --git a/langs/ratfor.yaml b/langs/ratfor.yaml deleted file mode 100644 index 18bd71b..0000000 --- a/langs/ratfor.yaml +++ /dev/null @@ -1,20 +0,0 @@ -id: "ratfor" -aliases: - - "rationalfortran" -name: "Ratfor" - -install: - apt: - - ratfor - - gfortran - -main: "main.r" -template: | - PRINT *, 'Hello, world!' - END - -compile: | - ratfor main.r -o main.f - gfortran main.f -o main -run: | - ./main diff --git a/langs/rc.yaml b/langs/rc.yaml deleted file mode 100644 index da83195..0000000 --- a/langs/rc.yaml +++ /dev/null @@ -1,20 +0,0 @@ -id: "rc" -aliases: - - "runcommands" -name: "rc" - -install: - apt: - - rc - -repl: | - rc -input: | - expr 123 '*' 234 - -main: "main.rc" -template: | - echo Hello, world! - -run: | - rc main.rc; rc diff --git a/langs/reasonml.yaml b/langs/reasonml.yaml deleted file mode 100644 index 3f39bda..0000000 --- a/langs/reasonml.yaml +++ /dev/null @@ -1,60 +0,0 @@ -id: "reasonml" -aliases: - - "re" - - "reason" - - "bsc" - - "buckle" - - "bucklescript" -name: "ReasonML" - -install: - prepare: - npm: - - bs-platform - npm: - - bs-platform - opam: - - name: reason - binaries: - - refmt - manual: | - install -d "${pkg}/opt/reasonml/skel" - install -d "${pkg}/usr/local/bin" - - ver="$(latest_release jaredly/reason-language-server)" - wget "https://github.com/jaredly/reason-language-server/releases/download/${ver}/rls-linux.zip" - unzip rls-linux.zip - cp rls-linux/reason-language-server "${pkg}/usr/local/bin/" - - pushd "${pkg}/opt/reasonml/skel" - bsb -init . - cat bsconfig.json | jq '.name = "riju-project"' | sponge bsconfig.json - npm install - popd - -setup: | - cp -a /opt/reasonml/skel/* ./ - -main: "main.re" -template: | - print_string("Hello, world!\n"); - -compile: | - bsc main.re > main.js -run: | - NODE_PATH=/usr/lib/node_modules node main.js - -format: - run: | - refmt - input: | - print_string("Hello, world!\n") - -lsp: - start: | - reason-language-server - code: "TODO" - item: "TODO" - -skip: - - lsp diff --git a/langs/rebol.yaml b/langs/rebol.yaml deleted file mode 100644 index 8539fcc..0000000 --- a/langs/rebol.yaml +++ /dev/null @@ -1,25 +0,0 @@ -id: "rebol" -name: "REBOL" - -install: - manual: | - install -d "${pkg}/usr/local/bin" - - file="$(curl -sSL http://www.rebol.com/downloads.html | sed '0,/x86-64/d' | grep -Eo 'downloads/[^"]+' | head -n1)" - wget "http://www.rebol.com/${file}" -O rebol.tar.gz - tar -xf rebol.tar.gz - cp rebol-core/rebol "${pkg}/usr/local/bin/" - -repl: | - rebol - -main: "main.r" -template: | - REBOL [Title: "Main"] - print "Hello, world!" - -run: | - rebol main.r; rebol -runReplInput: | - DELAY: 1 - 123 * 234 diff --git a/langs/red.yaml b/langs/red.yaml deleted file mode 100644 index 8c69509..0000000 --- a/langs/red.yaml +++ /dev/null @@ -1,36 +0,0 @@ -id: "red" -name: "Red" - -install: - apt: - - libcurl4:i386 - manual: | - install -d "${pkg}/opt/red/skel" - install -d "${pkg}/usr/local/bin" - - path="$(curl -fsSL https://static.red-lang.org/download.html | grep -Eo '/dl/linux/[^"]+' | head -n1)" - wget "https://static.red-lang.org${path}" -O red - chmod +x red - cp red "${pkg}/usr/local/bin/" - - ./red <<< quit - cp -R "$HOME/.red" "${pkg}/opt/red/skel/" - -setup: | - shopt -s dotglob; cp -R /opt/red/skel/* "${HOME}/" - -# https://github.com/red/red/issues/543#issuecomment-25404212 -repl: | - "$(which red)" -input: | - DELAY: 1 - 123 * 234 - -main: "main.red" -template: | - Red [Title: "Main"] - - print "Hello, world!" - -run: | - "$(which red)" main.red; "$(which red)" diff --git a/langs/redis.yaml b/langs/redis.yaml deleted file mode 100644 index 883ab45..0000000 --- a/langs/redis.yaml +++ /dev/null @@ -1,20 +0,0 @@ -id: "redis" -name: "Redis" -monacoLang: redis - -install: - apt: - - redis - -repl: | - rm -f socket; (redis-server --port 0 --unixsocket socket &); until [[ -e socket ]]; do sleep 0.01; done; redis-cli -s socket -input: | - DELAY: 3 - EVAL "return 123 * 234" 0 - -main: "main.redis" -template: | - ECHO "Hello, world!" - -run: | - rm -f socket; (redis-server --port 0 --unixsocket socket &); until [[ -e socket ]]; do sleep 0.01; done; redis-cli -s socket < main.redis; redis-cli -s socket diff --git a/langs/restructuredtext.yaml b/langs/restructuredtext.yaml deleted file mode 100644 index bd0d329..0000000 --- a/langs/restructuredtext.yaml +++ /dev/null @@ -1,20 +0,0 @@ -id: "restructuredtext" -aliases: - - "rst" -name: "reStructuredText" -monacoLang: restructuredtext - -install: - apt: - - pandoc - riju: - - prettier - -main: "main.rst" -template: | - Hello, world! - -compile: | - pandoc main.rst -o main.html -run: | - prettier --no-config main.html diff --git a/langs/rexx.yaml b/langs/rexx.yaml deleted file mode 100644 index 3e1a467..0000000 --- a/langs/rexx.yaml +++ /dev/null @@ -1,16 +0,0 @@ -id: "rexx" -aliases: - - "regina" - - "reginarexx" -name: "REXX" - -install: - apt: - - regina-rexx - -main: "main.rexx" -template: | - say "Hello, world!" - -run: | - rexx main.rexx diff --git a/langs/riscv.yaml b/langs/riscv.yaml deleted file mode 100644 index 8b6d280..0000000 --- a/langs/riscv.yaml +++ /dev/null @@ -1,31 +0,0 @@ -id: "riscv" -aliases: - - "risc" -name: "RISC-V" - -install: - apt: - - gcc-riscv64-linux-gnu - - qemu-user-static - -main: "main.S" -template: |2 - .text - .global main - main: - addi a7, x0, 64 - addi a0, x0, 1 - la a1, message - addi a2, x0, 14 - ecall - addi a7, x0, 93 - addi a0, x0, 0 - ecall - .data - message: - .string "Hello, world!\n" - -compile: | - riscv64-linux-gnu-gcc main.S -o main -static -run: | - qemu-riscv64-static main diff --git a/langs/roff.yaml b/langs/roff.yaml deleted file mode 100644 index c1115cb..0000000 --- a/langs/roff.yaml +++ /dev/null @@ -1,33 +0,0 @@ -id: "roff" -aliases: - - "groff" - - "nroff" - - "troff" - - "1" - - "2" - - "3" - - "4" - - "5" - - "6" - - "7" - - "8" - - "9" - - "man" - - "manual" -name: "roff" - -install: - apt: - - pandoc - riju: - - prettier - -main: "main.roff" -template: | - .PP - Hello, world! - -compile: | - pandoc main.roff -f man -o main.html -run: | - prettier --no-config main.html diff --git a/langs/sagemath.yaml b/langs/sagemath.yaml deleted file mode 100644 index 71bf6a3..0000000 --- a/langs/sagemath.yaml +++ /dev/null @@ -1,46 +0,0 @@ -id: "sagemath" -aliases: - - "sage" -name: "SageMath" - -install: - prepare: - apt: - - python2 - apt: - - libpng16-16 - - libfreetype6 - manual: | - install -d "${pkg}/opt/sagemath" - install -d "${pkg}/usr/local/bin" - - file="$(curl -fsSL https://mirrors.mit.edu/sage/linux/64bit/index.html | grep -Eo 'sage-[^"]+\.tar\.bz2' | grep Ubuntu | sort -rV | head -n1)" - wget "https://mirrors.mit.edu/sage/linux/64bit/${file}" -O sage.tar.bz2 - - sudo mkdir /opt/sagemath - sudo chown riju:riju /opt/sagemath - tar -xf sage.tar.bz2 -C /opt/sagemath --strip-components=1 - - python2 /opt/sagemath/relocate-once.py - find /opt/sagemath -name __pycache__ -exec rm -rf '{}' ';' -prune - - shopt -s dotglob - mv /opt/sagemath/* "${pkg}/opt/sagemath/" - sudo rmdir /opt/sagemath - - ln -s /opt/sagemath/sage "${pkg}/usr/local/bin/" - -repl: | - HOME="$PWD" sage - -main: ".sage/init.sage" -template: | - print("Hello, world!") -createEmpty: "" - -run: | - HOME="$PWD" sage - -scope: - code: | - x = 123 * 234 diff --git a/langs/sass.yaml b/langs/sass.yaml deleted file mode 100644 index cb22fce..0000000 --- a/langs/sass.yaml +++ /dev/null @@ -1,14 +0,0 @@ -id: "sass" -name: "Sass" - -install: - riju: - - sass - -main: "main.sass" -template: | - body:before - content: "Hello, world!" - -run: | - sass main.sass diff --git a/langs/scala.yaml b/langs/scala.yaml deleted file mode 100644 index 08b7f1f..0000000 --- a/langs/scala.yaml +++ /dev/null @@ -1,20 +0,0 @@ -id: "scala" -name: "Scala" - -install: - apt: - - scala - -repl: | - scala - -main: "main.scala" -template: | - println("Hello, world!") - -run: | - scala -i main.scala - -scope: - code: | - val x = 123 * 234 diff --git a/langs/scheme.yaml b/langs/scheme.yaml deleted file mode 100644 index 93533b1..0000000 --- a/langs/scheme.yaml +++ /dev/null @@ -1,27 +0,0 @@ -id: "scheme" -aliases: - - "scm" - - "mitscheme" -name: "Scheme" -monacoLang: scheme - -install: - apt: - - mit-scheme - -repl: | - mit-scheme -input: | - (* 123 234) - -main: "main.scm" -template: | - (display "Hello, world!") - (newline) - -run: | - mit-scheme --load main.scm - -scope: - code: | - (define x (* 123 234)) diff --git a/langs/scilab.yaml b/langs/scilab.yaml deleted file mode 100644 index 3cea5b1..0000000 --- a/langs/scilab.yaml +++ /dev/null @@ -1,28 +0,0 @@ -id: "scilab" -aliases: - - "sci" -name: "Scilab" - -install: - apt: - - scilab - -repl: | - scilab-cli -input: | - DELAY: 1 - 123 * 234 - -main: "main.sci" -template: | - disp("Hello, world!") - -run: | - scilab-cli -f main.sci - -scope: - code: | - x = 123 * 234 - input: | - DELAY: 1 - x diff --git a/langs/scss.yaml b/langs/scss.yaml deleted file mode 100644 index 9e38b7f..0000000 --- a/langs/scss.yaml +++ /dev/null @@ -1,25 +0,0 @@ -id: "scss" -name: "SCSS" -monacoLang: scss - -install: - riju: - - sass - - prettier - -main: "main.scss" -template: | - body:before { - content: "Hello, world!"; - } - -run: | - sass main.scss - -format: - run: | - prettier --no-config --stdin-filepath=format.scss - input: | - body:before { - content: "Hello, world!"; - } diff --git a/langs/sed.yaml b/langs/sed.yaml deleted file mode 100644 index b4e20c1..0000000 --- a/langs/sed.yaml +++ /dev/null @@ -1,19 +0,0 @@ -id: "sed" -aliases: - - "gsed" -name: "Sed" - -install: - apt: - - sed - -main: "main.sed" -template: | - s/.*/Hello, world!/ - -run: | - echo 'Reading from stdin...' >&2; sed -f main.sed -helloInput: | - - DELAY: 1 - EOF diff --git a/langs/setl.yaml b/langs/setl.yaml deleted file mode 100644 index 7d87d6c..0000000 --- a/langs/setl.yaml +++ /dev/null @@ -1,16 +0,0 @@ -id: "setl" -name: "SETL" - -install: - manual: | - install -d "${pkg}/usr/local/bin" - - wget https://setl.org/setl/bin/Linux-x86-64bit/setlbin.tgz - tar -xf setlbin.tgz -C "${pkg}/usr/local/bin" - -main: "main.setl" -template: | - print("Hello, world!"); - -run: | - setl main.setl diff --git a/langs/sh.yaml b/langs/sh.yaml deleted file mode 100644 index 4e11665..0000000 --- a/langs/sh.yaml +++ /dev/null @@ -1,33 +0,0 @@ -id: "sh" -aliases: - - "shell" - - "posix" - - "posixsh" - - "ash" - - "dash" - - "posh" -name: "Sh" -monacoLang: shell - -install: - apt: - - posh - -repl: | - SHELL=/usr/bin/sh HOME="$PWD" posh -l -input: | - expr 123 \* 234 - -main: ".profile" -template: | - echo "Hello, world!" -createEmpty: "" - -run: | - SHELL=/usr/bin/sh HOME="$PWD" posh -l - -scope: - code: | - x="$(expr 123 \* 234)" - input: | - echo "$x" diff --git a/langs/shakespeare.yaml b/langs/shakespeare.yaml deleted file mode 100644 index 9523ba4..0000000 --- a/langs/shakespeare.yaml +++ /dev/null @@ -1,118 +0,0 @@ -id: "shakespeare" -aliases: - - "spl" -name: "Shakespeare" - -install: - pip: - - shakespearelang - -repl: | - shakespeare console -input: | - Hamlet, a placeholder. - done - stage -output: | - Off stage - -main: "main.spl" -template: | - The Infamous Hello World Program. - - Romeo, a young man with a remarkable patience. - Juliet, a likewise young woman of remarkable grace. - Ophelia, a remarkable woman much in dispute with Hamlet. - Hamlet, the flatterer of Andersen Insulting A/S. - - - Act I: Hamlet's insults and flattery. - - Scene I: The insulting of Romeo. - - [Enter Hamlet and Romeo] - - Hamlet: - You lying stupid fatherless big smelly half-witted coward! - You are as stupid as the difference between a handsome rich brave - hero and thyself! Speak your mind! - - You are as brave as the sum of your fat little stuffed misused dusty - old rotten codpiece and a beautiful fair warm peaceful sunny summer's - day. You are as healthy as the difference between the sum of the - sweetest reddest rose and my father and yourself! Speak your mind! - - You are as cowardly as the sum of yourself and the difference - between a big mighty proud kingdom and a horse. Speak your mind. - - Speak your mind! - - [Exit Romeo] - - Scene II: The praising of Juliet. - - [Enter Juliet] - - Hamlet: - Thou art as sweet as the sum of the sum of Romeo and his horse and his - black cat! Speak thy mind! - - [Exit Juliet] - - Scene III: The praising of Ophelia. - - [Enter Ophelia] - - Hamlet: - Thou art as lovely as the product of a large rural town and my amazing - bottomless embroidered purse. Speak thy mind! - - Thou art as loving as the product of the bluest clearest sweetest sky - and the sum of a squirrel and a white horse. Thou art as beautiful as - the difference between Juliet and thyself. Speak thy mind! - - [Exeunt Ophelia and Hamlet] - - - Act II: Behind Hamlet's back. - - Scene I: Romeo and Juliet's conversation. - - [Enter Romeo and Juliet] - - Romeo: - Speak your mind. You are as worried as the sum of yourself and the - difference between my small smooth hamster and my nose. Speak your - mind! - - Juliet: - Speak YOUR mind! You are as bad as Hamlet! You are as small as the - difference between the square of the difference between my little pony - and your big hairy hound and the cube of your sorry little - codpiece. Speak your mind! - - [Exit Romeo] - - Scene II: Juliet and Ophelia's conversation. - - [Enter Ophelia] - - Juliet: - Thou art as good as the quotient between Romeo and the sum of a small - furry animal and a leech. Speak your mind! - - Ophelia: - Thou art as disgusting as the quotient between Romeo and twice the - difference between a mistletoe and an oozing infected blister! Speak - your mind! - - [Exeunt] -suffix: | - [A pause] - -run: | - shakespeare debug main.spl -hello: | - Hello World! -runReplInput: | - stage diff --git a/langs/slang.yaml b/langs/slang.yaml deleted file mode 100644 index fee1c7f..0000000 --- a/langs/slang.yaml +++ /dev/null @@ -1,25 +0,0 @@ -id: "slang" -aliases: - - "s" - - "sl" -name: "S-Lang" - -install: - apt: - - slsh - -repl: | - slsh -input: | - 123 * 234; - -main: "main.sl" -template: | - message("Hello, world!"); - -run: | - slsh -i main.sl - -scope: - code: | - x = 123 * 234; diff --git a/langs/slick.yaml b/langs/slick.yaml deleted file mode 100644 index eed7538..0000000 --- a/langs/slick.yaml +++ /dev/null @@ -1,35 +0,0 @@ -id: "slick" -name: "Slick" - -install: - prepare: - apt: - - libgmp-dev - opam: - - dune - manual: | - install -d "${pkg}/usr/local/bin" - - git clone https://github.com/kwshi/slick.git - pushd slick - deps="$(dune external-lib-deps src --display=quiet | grep -F - | sed 's/- //; s/\..*//')" - opam init -n --disable-sandboxing - opam switch create . - opam install --switch . ${deps} menhir -y - opam exec --switch . dune build - cp _build/default/src/exe/main.exe "${pkg}/usr/local/bin/slick" - popd - -repl: | - slick -input: | - DELAY: 1 - 123 * 234 - -main: "main.sl" -template: | - def main: - print "Hello, world!" - -run: | - slick main.sl; slick diff --git a/langs/smalltalk.yaml b/langs/smalltalk.yaml deleted file mode 100644 index d113047..0000000 --- a/langs/smalltalk.yaml +++ /dev/null @@ -1,19 +0,0 @@ -id: "smalltalk" -aliases: - - "gst" - - "st" -name: "Smalltalk" - -install: - apt: - - gnu-smalltalk - -repl: | - gst - -main: "main.st" -template: | - 'Hello, world!' displayNl ! - -run: | - gst main.st; gst diff --git a/langs/snobol.yaml b/langs/snobol.yaml deleted file mode 100644 index 3e1d63e..0000000 --- a/langs/snobol.yaml +++ /dev/null @@ -1,36 +0,0 @@ -id: "snobol" -aliases: - - "snobol4" - - "spitbol" - - "sno" -name: "SNOBOL" - -install: - prepare: - apt: - - m4 - manual: | - install -d "${pkg}/usr/local/bin" - - file="$(curl -sSL ftp://ftp.snobol4.org/snobol/ | grep -Eo 'snobol4-.*\.tar\.gz' | sort -rV | head -n1)" - wget "ftp://ftp.snobol4.org/snobol/${file}" -O snobol.tar.gz - mkdir snobol - tar -xf snobol.tar.gz -C snobol --strip-components=1 - pushd snobol - make snobol4 - cp snobol4 "${pkg}/usr/local/bin/" - popd - -repl: | - snobol4 -input: |2 - OUTPUT = 123 * 234 - END - -main: "main.sno" -template: |2 - OUTPUT = "Hello, world!" - END - -run: | - snobol4 main.sno; snobol4 diff --git a/langs/sqlite.yaml b/langs/sqlite.yaml deleted file mode 100644 index 03d0f06..0000000 --- a/langs/sqlite.yaml +++ /dev/null @@ -1,41 +0,0 @@ -id: "sqlite" -aliases: - - "sql" - - "db" - - "sqlite3" -name: "SQLite" -monacoLang: sql - -install: - apt: - - sqlite - riju: - - sqls - files: - "/opt/sqlite/sqls.yml": | - connections: - - driver: sqlite3 - dataSourceName: db.sqlite3 - -repl: | - rm -f db.sqlite3 - sqlite3 db.sqlite3 -input: | - SELECT 123 * 234; - -main: "main.sql" -template: | - SELECT 'Hello, world!'; - -run: | - rm -f db.sqlite3 - sqlite3 db.sqlite3 -cmd "$(< main.sql)" - -lsp: - start: | - sqls -config /opt/sqlite/sqls.yml - code: "TODO" - item: "TODO" - -skip: - - lsp diff --git a/langs/squirrel.yaml b/langs/squirrel.yaml deleted file mode 100644 index ab90dc0..0000000 --- a/langs/squirrel.yaml +++ /dev/null @@ -1,21 +0,0 @@ -id: "squirrel" -aliases: - - "nut" - - "cnut" -name: "Squirrel" - -install: - apt: - - squirrel3 - -repl: | - squirrel -input: | - print(123 * 234) - -main: "main.nut" -template: | - print("Hello, world!\n") - -run: | - squirrel main.nut; squirrel diff --git a/langs/standardml.yaml b/langs/standardml.yaml deleted file mode 100644 index 7089fbc..0000000 --- a/langs/standardml.yaml +++ /dev/null @@ -1,28 +0,0 @@ -id: "standardml" -aliases: - - "sml" - - "ml" -name: "Standard ML" - -install: - apt: - - smlnj - - rlwrap - -repl: | - rlwrap sml -input: | - 123 * 234; - -main: "main.sml" -template: | - print "Hello, world!\n"; - -run: | - rlwrap sml main.sml - -scope: - code: | - val x = 123 * 234; - input: | - x; diff --git a/langs/subleq.yaml b/langs/subleq.yaml deleted file mode 100644 index 74810b6..0000000 --- a/langs/subleq.yaml +++ /dev/null @@ -1,39 +0,0 @@ -id: "subleq" -aliases: - - "sq" - - "asq" -name: "Subleq" - -install: - manual: | - install -d "${pkg}/usr/local/bin" - - git clone https://github.com/davidar/subleq.git - pushd subleq/src - make sq - cp sq "${pkg}/usr/local/bin/" - popd - -main: "main.sq" -template: | - 12 12 3 - 36 37 6 - 37 12 9 - 37 37 12 - 0 -1 15 - 38 36 18 - 12 12 21 - 53 37 24 - 37 12 27 - 37 37 30 - 36 12 -1 - 37 37 0 - 39 0 -1 - 72 101 108 - 108 111 44 - 32 119 111 - 114 108 100 - 33 10 53 - -run: | - sq main.sq diff --git a/langs/swift.yaml b/langs/swift.yaml deleted file mode 100644 index 8ad5c07..0000000 --- a/langs/swift.yaml +++ /dev/null @@ -1,35 +0,0 @@ -id: "swift" -aliases: - - "swiftc" -name: "Swift" -monacoLang: swift - -install: - apt: - - libpython2.7 - manual: | - install -d "${pkg}/opt/swift" - install -d "${pkg}/usr/local/bin" - - ver="$(latest_release apple/swift | grep -Eo '[0-9.]+')" - wget "https://swift.org/builds/swift-${ver}-release/ubuntu2004/swift-${ver}-RELEASE/swift-${ver}-RELEASE-ubuntu20.04.tar.gz" -O swift.tar.gz - tar -xf swift.tar.gz -C "${pkg}/opt/swift" --strip-components=2 - ln -s /opt/swift/bin/swiftc /opt/swift/bin/sourcekit-lsp "${pkg}/usr/local/bin/" - -main: "main.swift" -template: | - print("Hello, world!") - -compile: | - swiftc main.swift -run: | - ./main - -lsp: - start: | - sourcekit-lsp - code: "TODO" - item: "TODO" - -skip: - - lsp diff --git a/langs/tabloid.yaml b/langs/tabloid.yaml deleted file mode 100644 index 246ebb0..0000000 --- a/langs/tabloid.yaml +++ /dev/null @@ -1,44 +0,0 @@ -id: "tabloid" -name: "Tabloid" - -install: - scripts: - tabloid: | - #!/usr/bin/env node - - const fs = require("fs"); - - const args = process.argv.slice(2); - if (args.length !== 1) { - console.error("usage: run.js FILE"); - process.exit(1); - } - - const lang = require("/opt/tabloid/lang"); - - const program = fs.readFileSync(args[0], "utf-8"); - const tokens = lang.tokenize(program); - const parser = new lang.Parser(tokens); - const ast = parser.parse(); - const runtime = { print: (s) => console.log(s.toString().toUpperCase() + "!") }; - const env = new lang.Environment(runtime); - env.run(ast); - manual: | - install -d "${pkg}/opt/tabloid" - - pushd "${pkg}/opt/tabloid" - wget https://github.com/thesephist/tabloid/raw/master/static/js/lang.js - cat <<"EOF" >> lang.js - module.exports = { tokenize, Parser, Environment }; - EOF - popd - -main: "main.tabloid" -template: | - YOU WON'T WANT TO MISS "Hello, world" - PLEASE LIKE AND SUBSCRIBE - -run: | - tabloid main.tabloid -hello: | - HELLO, WORLD! diff --git a/langs/tcl.yaml b/langs/tcl.yaml deleted file mode 100644 index 9a61d85..0000000 --- a/langs/tcl.yaml +++ /dev/null @@ -1,29 +0,0 @@ -id: "tcl" -aliases: - - "tclsh" - - "tclshrc" -name: "Tcl" -monacoLang: tcl - -install: - apt: - - tcl - -repl: | - HOME="$PWD" tclsh -input: | - expr 123 * 234 - -main: ".tclshrc" -template: | - puts {Hello, world!} -createEmpty: "" - -run: | - HOME="$PWD" tclsh - -scope: - code: | - set x [expr 123 * 234] - input: | - echo $x diff --git a/langs/tcsh.yaml b/langs/tcsh.yaml deleted file mode 100644 index 1355297..0000000 --- a/langs/tcsh.yaml +++ /dev/null @@ -1,30 +0,0 @@ -id: "tcsh" -aliases: - - "tcshell" - - "tcshrc" - - "csh" -name: "Tcsh" -monacoLang: shell - -install: - apt: - - tcsh - -repl: | - SHELL=/usr/bin/tcsh HOME="$PWD" tcsh -input: | - expr 123 \* 234 - -main: ".tcshrc" -template: | - echo "Hello, world!" -createEmpty: "" - -run: | - SHELL=/usr/bin/tcsh HOME="$PWD" tcsh - -scope: - code: | - set x=`expr 123 \* 234` - input: | - echo "$x" diff --git a/langs/teco.yaml b/langs/teco.yaml deleted file mode 100644 index 3c827db..0000000 --- a/langs/teco.yaml +++ /dev/null @@ -1,46 +0,0 @@ -id: "teco" -aliases: - - "mung" -name: "TECO" - -install: - scripts: - teco-encode: | - #!/usr/bin/env -S python3 -u - - import re - import sys - - for line in sys.stdin: - line = re.sub(r"\^(.)", lambda m: chr(ord(m.group(1)) ^ 0b1000000), line) - line = line.replace("$", chr(27)) - print(line, end="") - manual: | - install -d "${pkg}/usr/local/bin" - - git clone https://github.com/blakemcbride/TECOC.git - pushd TECOC/src - make -f makefile.linux - cp tecoc "${pkg}/usr/local/bin/tecoc" - ln -s /usr/local/bin/tecoc "${pkg}/usr/local/bin/teco" - ln -s /usr/local/bin/tecoc "${pkg}/usr/local/bin/mung" - popd - -repl: | - teco -input: "123*234=\x1b\x1b" - -main: "main.txt" -template: | - IHello, world! - $HT$$ - -compile: | - cat main.txt | teco-encode > main.teco -run: | - mung main.teco - -scope: - code: | - 123*234UX$$ - input: "QX=\x1b\x1b" diff --git a/langs/tex.yaml b/langs/tex.yaml deleted file mode 100644 index e329833..0000000 --- a/langs/tex.yaml +++ /dev/null @@ -1,63 +0,0 @@ -id: "tex" -aliases: - - "latex" - - "xetex" - - "plaintex" -name: "TeX" - -install: - prepare: - apt: - # Lua 5.4 is the most recent version but seemingly it's not - # supported by luarocks. - - lua5.3 - - liblua5.3 - - luarocks - apt: - - lua5.3 - - texlive-binaries - manual: | - install -d "${pkg}/usr/local/bin" - - luarocks --tree="${pkg}/opt/digestif" install digestif - - cat < "${pkg}/usr/local/bin/digestif" - #!/usr/bin/env bash - - $(luarocks --tree=/opt/digestif path) - exec /opt/digestif/bin/digestif "\$@" - EOF - chmod +x "${pkg}/usr/local/bin/digestif" - -repl: | - tex -input: | - \newcount\x - \advance\x by 123 - \multiply\x by 234 - \message{\the\x} - -main: "main.tex" -template: | - \message{Hello, world!} - -run: | - tex main.tex - -scope: - code: | - \newcount\x - \advance\x by 123 - \multiply\x by 234 - input: | - \message{\the\x} - -lsp: - start: | - digestif - lang: "tex" - code: "TODO" - item: "TODO" - -skip: - - lsp diff --git a/langs/textile.yaml b/langs/textile.yaml deleted file mode 100644 index 63fd5ce..0000000 --- a/langs/textile.yaml +++ /dev/null @@ -1,17 +0,0 @@ -id: "textile" -name: "Textile" - -install: - apt: - - pandoc - riju: - - prettier - -main: "main.textile" -template: | - Hello, world! - -compile: | - pandoc main.textile -o main.html -run: | - prettier --no-config main.html diff --git a/langs/thue.yaml b/langs/thue.yaml deleted file mode 100644 index 077e70a..0000000 --- a/langs/thue.yaml +++ /dev/null @@ -1,22 +0,0 @@ -id: "thue" -name: "Thue" - -install: - manual: | - install -d "${pkg}/usr/local/bin" - - wget "$(curl -sSL https://catseye.tc/distribution/Thue_distribution | grep -Eo 'https://catseye.tc/distfiles/thue-[^"]+\.zip' | head -n1)" -O thue.zip - unzip thue.zip - pushd thue-* - ./build.sh - cp bin/thue "${pkg}/usr/local/bin/" - popd - -main: "main.thue" -template: | - a::=~Hello, world! - ::= - a - -run: | - thue main.thue diff --git a/langs/tikiwiki.yaml b/langs/tikiwiki.yaml deleted file mode 100644 index 3a15bfa..0000000 --- a/langs/tikiwiki.yaml +++ /dev/null @@ -1,19 +0,0 @@ -id: "tikiwiki" -aliases: - - "tiki" -name: "Tiki Wiki" - -install: - apt: - - pandoc - riju: - - prettier - -main: "main.txt" -template: | - Hello, world! - -compile: | - pandoc main.txt -f tikiwiki -o main.html -run: | - prettier --no-config main.html diff --git a/langs/toml.yaml b/langs/toml.yaml deleted file mode 100644 index a0f4db2..0000000 --- a/langs/toml.yaml +++ /dev/null @@ -1,17 +0,0 @@ -id: "toml" -aliases: - - "tom" -name: "TOML" - -install: - riju: - - yj - -main: "main.toml" -template: | - output = "Hello, world!" - -compile: | - cat main.toml | yj -tj > main.json -run: | - cat main.json | jq . diff --git a/langs/twiki.yaml b/langs/twiki.yaml deleted file mode 100644 index 191aa35..0000000 --- a/langs/twiki.yaml +++ /dev/null @@ -1,17 +0,0 @@ -id: "twiki" -name: "TWiki" - -install: - apt: - - pandoc - riju: - - prettier - -main: "main.txt" -template: | - Hello, world! - -compile: | - pandoc main.txt -f twiki -o main.html -run: | - prettier --no-config main.html diff --git a/langs/typescript.yaml b/langs/typescript.yaml deleted file mode 100644 index 8eecf37..0000000 --- a/langs/typescript.yaml +++ /dev/null @@ -1,34 +0,0 @@ -id: "typescript" -aliases: - - "ts" - - "tsnode" - - "tsc" -name: "TypeScript" -monacoLang: typescript - -install: - riju: - - prettier - npm: - - typescript - - ts-node - -repl: | - ts-node - -main: "main.ts" -template: | - console.log("Hello, world!"); - -run: | - ts-node -i -e "$(< main.ts)" - -scope: - code: | - let x = 123 * 234; - -format: - run: | - prettier --no-config --stdin-filepath=format.ts - input: | - console.log('Hello, world!'); diff --git a/langs/unison.yaml b/langs/unison.yaml deleted file mode 100644 index a48dd64..0000000 --- a/langs/unison.yaml +++ /dev/null @@ -1,73 +0,0 @@ -id: "unison" -aliases: - - "ucm" -name: "Unison" - -install: - prepare: - apt: - - haskell-stack - manual: | - mkdir -p "${pkg}/opt/unison/skel" - install -d "${pkg}/usr/local/bin" - - git clone https://github.com/unisonweb/unison.git - pushd unison - stack build - cp "$(stack exec which unison)" "${pkg}/usr/local/bin/" - popd - - pushd "${pkg}/opt/unison/skel" - "${pkg}/usr/local/bin/unison" -codebase . init - LESS="+q" "${pkg}/usr/local/bin/unison" -codebase . <<< 'pull https://github.com/unisonweb/base:.trunk .base' - popd - -setup: | - shopt -s dotglob - cp -R /opt/unison/skel/* ./ - -repl: | - unison -codebase . -input: | - DELAY: 10 - find : [a] -> [a] -output: | - base.List.reverse - -# runProg implementation courtesy of Robert Offner from Unison Slack! -main: "main.u" -template: | - use io - - runProg: '{IO, Exception} a -> '{IO} () - runProg f = 'let - printErr err = match err with - Failure _ errMsg _ -> handle putBytes (stdHandle StdErr) (toUtf8 errMsg) with cases - {raise _ -> _} -> () - {_} -> () - match catch f with - Left err -> printErr err - Right _ -> () - - main: '{IO} () - main = runProg 'let - printLine "Hello, world!" -createEmpty: "" - -run: | - unison -codebase . run.file main.u main - echo "Type 'load main.u' at the repl prompt to bring variables into scope." - unison -codebase . - -scope: - code: | - x = 123 * 234 - input: | - DELAY: 5 - load main.u - DELAY: 5 - add x - DELAY: 5 - display x - -timeoutFactor: 2 diff --git a/langs/unlambda.yaml b/langs/unlambda.yaml deleted file mode 100644 index 0c6c301..0000000 --- a/langs/unlambda.yaml +++ /dev/null @@ -1,47 +0,0 @@ -id: "unlambda" -aliases: - - "unl" -name: "Unlambda" - -install: - apt: - - unlambda - scripts: - unlambda-repl: | - #!/usr/bin/env python3 - import argparse - import readline - import subprocess - - parser = argparse.ArgumentParser() - parser.add_argument("file", nargs="?") - args = parser.parse_args() - - if args.file: - with open(args.file) as f: - subprocess.run(["unlambda"], input=f.read(), encoding="utf-8") - while True: - try: - code = input("λ> ") - except KeyboardInterrupt: - print("^C") - continue - except EOFError: - print("^D") - break - if not code: - continue - subprocess.run(["unlambda"], input=code, encoding="utf-8") - -repl: | - unlambda-repl -input: | - `.2`.8`.7`.8`.2i - -main: "main.unl" -template: | - `. - `.!`.d`.l`.r`.o`.w`. `.,`.o`.l`.l`.e`.Hi - -run: | - unlambda-repl main.unl diff --git a/langs/vala.yaml b/langs/vala.yaml deleted file mode 100644 index 4329f51..0000000 --- a/langs/vala.yaml +++ /dev/null @@ -1,19 +0,0 @@ -id: "vala" -aliases: - - "valac" -name: "Vala" - -install: - apt: - - valac - -main: "main.vala" -template: | - void main () { - print("Hello, world!\n"); - } - -compile: | - valac main.vala -run: | - ./main diff --git a/langs/velato.yaml b/langs/velato.yaml deleted file mode 100644 index 39d063a..0000000 --- a/langs/velato.yaml +++ /dev/null @@ -1,245 +0,0 @@ -id: "velato" -aliases: - - "vlt" -name: "Velato" - -install: - apt: - - mono-runtime - manual: | - install -d "${pkg}/opt/velato" - install -d "${pkg}/usr/local/bin" - - file="$(curl -fsSL http://velato.net/ | grep -Eo 'Velato[0-9_]+.zip')" - wget "http://velato.net/Content/Velato/${file}" -O velato.zip - unzip -d "${pkg}/opt/velato" velato.zip - - wget http://www.archduke.org/midi/asc2mid.c - clang asc2mid.c -o "${pkg}/usr/local/bin/asc2mid" - -main: "main.asc" -template: | - format=1 tracks=2 division=2880 - - BA 1 CR 0 TR 0 CH 16 Tempo 100 - BA 1 CR 0 TR 1 CH 1 NT C-- 4/5 von=101 voff=0 - BA 1 CR 0 TR 1 CH 1 NT A 4/5 voff=0 - BA 1 CR 0 TR 1 CH 1 NT G- 4/5 voff=0 - BA 1 CR 0 TR 1 CH 1 NT E- 4/5 voff=0 - - BA 2 CR 0 TR 1 CH 1 NT F- 4/5 voff=0 - BA 2 CR 0 TR 1 CH 1 NT A- 4/5 voff=0 - BA 2 CR 0 TR 1 CH 1 NT Eb 4/5 voff=0 - - BA 3 CR 1/2 TR 1 CH 1 NT G- 3+7/20 voff=0 - BA 3 CR 1/2 TR 1 CH 1 NT C 3+7/20 voff=0 - - BA 5 CR 0 TR 1 CH 1 NT C- 1/5 voff=0 - BA 5 CR 1/4 TR 1 CH 1 NT D 1/5 voff=0 - BA 5 CR 1/2 TR 1 CH 1 NT F 1/5 voff=0 - BA 5 CR 3/4 TR 1 CH 1 NT F-- 2/5 voff=0 - BA 5 CR 3/4 TR 1 CH 1 NT D 2/5 voff=0 - BA 5 CR 3/4 TR 1 CH 1 NT C- 2/5 voff=0 - BA 5 CR 3/4 TR 1 CH 1 NT A- 2/5 voff=0 - - BA 6 CR 1/4 TR 1 CH 1 NT Bb 4/5 voff=0 - BA 6 CR 1/4 TR 1 CH 1 NT G-- 4/5 voff=0 - BA 6 CR 1/4 TR 1 CH 1 NT F#- 4/5 voff=0 - - BA 7 CR 3/4 TR 1 CH 1 NT G- 3+7/20 voff=0 - BA 7 CR 3/4 TR 1 CH 1 NT C 3+7/20 voff=0 - - BA 9 CR 1/4 TR 1 CH 1 NT F- 1/5 voff=0 - BA 9 CR 1/2 TR 1 CH 1 NT G 1/5 voff=0 - BA 9 CR 3/4 TR 1 CH 1 NT Bb 1/5 voff=0 - - BA 10 CR 0 TR 1 CH 1 NT Bb-- 2/5 voff=0 - BA 10 CR 0 TR 1 CH 1 NT G 2/5 voff=0 - BA 10 CR 0 TR 1 CH 1 NT F- 2/5 voff=0 - BA 10 CR 0 TR 1 CH 1 NT D- 2/5 voff=0 - BA 10 CR 1/2 TR 1 CH 1 NT Eb 4/5 voff=0 - BA 10 CR 1/2 TR 1 CH 1 NT C- 4/5 voff=0 - BA 10 CR 1/2 TR 1 CH 1 NT B- 4/5 voff=0 - - BA 11 CR 1/2 TR 1 CH 1 NT G# 2/5 voff=0 - - BA 12 CR 0 TR 1 CH 1 NT F 4/5 voff=0 - BA 12 CR 0 TR 1 CH 1 NT Bb 4/5 voff=0 - - BA 13 CR 0 TR 1 CH 1 NT Bb- 2/5 voff=0 - BA 13 CR 1/2 TR 1 CH 1 NT Bb-- 1/5 voff=0 - BA 13 CR 3/4 TR 1 CH 1 NT G 1/5 voff=0 - - BA 14 CR 0 TR 1 CH 1 NT F- 1/5 voff=0 - BA 14 CR 1/4 TR 1 CH 1 NT D- 1/5 voff=0 - BA 14 CR 1/2 TR 1 CH 1 NT Eb 4/5 voff=0 - BA 14 CR 1/2 TR 1 CH 1 NT C- 4/5 voff=0 - BA 14 CR 1/2 TR 1 CH 1 NT B- 4/5 voff=0 - - BA 15 CR 1/2 TR 1 CH 1 NT G# 2/5 voff=0 - - BA 16 CR 0 TR 1 CH 1 NT F 4/5 voff=0 - BA 16 CR 0 TR 1 CH 1 NT Bb 4/5 voff=0 - - BA 17 CR 0 TR 1 CH 1 NT Bb- 4/5 voff=0 - - BA 18 CR 0 TR 1 CH 1 NT Bb- 2/5 voff=0 - BA 18 CR 1/2 TR 1 CH 1 NT C- 4/5 voff=0 - BA 18 CR 1/2 TR 1 CH 1 NT C 4/5 voff=0 - - BA 19 CR 1/2 TR 1 CH 1 NT C-- 3+2/5 voff=0 - BA 19 CR 1/2 TR 1 CH 1 NT A 3+2/5 voff=0 - BA 19 CR 1/2 TR 1 CH 1 NT G- 3+2/5 voff=0 - BA 19 CR 1/2 TR 1 CH 1 NT E- 3+2/5 voff=0 - - BA 21 CR 0 TR 1 CH 1 NT F- 4/5 voff=0 - BA 21 CR 0 TR 1 CH 1 NT D 4/5 voff=0 - - BA 22 CR 0 TR 1 CH 1 NT D 2/5 voff=0 - BA 22 CR 1/2 TR 1 CH 1 NT D 2/5 voff=0 - BA 22 CR 1/2 TR 1 CH 1 NT G- 2/5 voff=0 - BA 22 CR 1/2 TR 1 CH 1 NT C 2/5 voff=0 - - BA 23 CR 0 TR 1 CH 1 NT C-- 2/5 voff=0 - BA 23 CR 1/2 TR 1 CH 1 NT A 1+3/5 voff=0 - BA 23 CR 1/2 TR 1 CH 1 NT G- 1+3/5 voff=0 - - BA 25 CR 1/2 TR 1 CH 1 NT E 2/5 voff=0 - BA 25 CR 1/2 TR 1 CH 1 NT F- 2+7/10 voff=0 - BA 25 CR 1/2 TR 1 CH 1 NT F-- 2+7/10 voff=0 - - BA 27 CR 0 TR 1 CH 1 NT F 3+7/10 voff=0 - BA 27 CR 0 TR 1 CH 1 NT G- 5+9/20 voff=0 - BA 27 CR 0 TR 1 CH 1 NT C 5+9/20 voff=0 - - BA 30 CR 0 TR 1 CH 1 NT C- 1/5 voff=0 - BA 30 CR 1/4 TR 1 CH 1 NT D 1/5 voff=0 - BA 30 CR 1/2 TR 1 CH 1 NT F 1/5 voff=0 - BA 30 CR 3/4 TR 1 CH 1 NT F 4/5 voff=0 - - BA 31 CR 3/4 TR 1 CH 1 NT F- 2/5 voff=0 - - BA 32 CR 1/4 TR 1 CH 1 NT F-- 2/5 voff=0 - BA 32 CR 1/4 TR 1 CH 1 NT D 2/5 voff=0 - BA 32 CR 1/4 TR 1 CH 1 NT C- 2/5 voff=0 - BA 32 CR 1/4 TR 1 CH 1 NT A- 2/5 voff=0 - BA 32 CR 3/4 TR 1 CH 1 NT Bb 4/5 voff=0 - - BA 33 CR 3/4 TR 1 CH 1 NT A 2/5 voff=0 - - BA 34 CR 1/4 TR 1 CH 1 NT G#- 3+7/20 voff=0 - BA 34 CR 1/4 TR 1 CH 1 NT C 3+7/20 voff=0 - - BA 35 CR 3/4 TR 1 CH 1 NT F- 1/5 voff=0 - - BA 36 CR 0 TR 1 CH 1 NT G 1/5 voff=0 - BA 36 CR 1/4 TR 1 CH 1 NT Bb 1/5 voff=0 - BA 36 CR 1/2 TR 1 CH 1 NT Bb-- 2/5 voff=0 - BA 36 CR 1/2 TR 1 CH 1 NT G 2/5 voff=0 - BA 36 CR 1/2 TR 1 CH 1 NT F- 2/5 voff=0 - BA 36 CR 1/2 TR 1 CH 1 NT D- 2/5 voff=0 - - BA 37 CR 0 TR 1 CH 1 NT Eb 4/5 voff=0 - BA 37 CR 0 TR 1 CH 1 NT G# 4/5 voff=0 - - BA 38 CR 0 TR 1 CH 1 NT G 2/5 voff=0 - BA 38 CR 1/2 TR 1 CH 1 NT F 4/5 voff=0 - BA 38 CR 1/2 TR 1 CH 1 NT Bb 4/5 voff=0 - - BA 39 CR 1/2 TR 1 CH 1 NT Bb- 2/5 voff=0 - - BA 40 CR 0 TR 1 CH 1 NT Bb- 2/5 voff=0 - BA 40 CR 1/2 TR 1 CH 1 NT C- 4/5 voff=0 - BA 40 CR 1/2 TR 1 CH 1 NT C 4/5 voff=0 - - BA 41 CR 1/2 TR 1 CH 1 NT C-- 3+2/5 voff=0 - BA 41 CR 1/2 TR 1 CH 1 NT A 3+2/5 voff=0 - BA 41 CR 1/2 TR 1 CH 1 NT G- 3+2/5 voff=0 - BA 41 CR 1/2 TR 1 CH 1 NT E- 3+2/5 voff=0 - - BA 43 CR 0 TR 1 CH 1 NT F- 4/5 voff=0 - BA 43 CR 0 TR 1 CH 1 NT D 4/5 voff=0 - - BA 44 CR 0 TR 1 CH 1 NT D 2/5 voff=0 - BA 44 CR 1/2 TR 1 CH 1 NT D 4/5 voff=0 - BA 44 CR 1/2 TR 1 CH 1 NT G- 2/5 voff=0 - BA 44 CR 1/2 TR 1 CH 1 NT C 4/5 voff=0 - - BA 45 CR 1/2 TR 1 CH 1 NT C-- 3+2/5 voff=0 - BA 45 CR 1/2 TR 1 CH 1 NT A 3+2/5 voff=0 - BA 45 CR 1/2 TR 1 CH 1 NT G- 3+2/5 voff=0 - BA 45 CR 1/2 TR 1 CH 1 NT E- 3+2/5 voff=0 - - BA 47 CR 0 TR 1 CH 1 NT F- 4/5 voff=0 - BA 47 CR 0 TR 1 CH 1 NT D 4/5 voff=0 - - BA 48 CR 0 TR 1 CH 1 NT D 2/5 voff=0 - BA 48 CR 1/2 TR 1 CH 1 NT F 4/5 voff=0 - BA 48 CR 1/2 TR 1 CH 1 NT G 4/5 voff=0 - BA 48 CR 1/2 TR 1 CH 1 NT C- 4/5 voff=0 - - BA 49 CR 1/2 TR 1 CH 1 NT C- 1/5 voff=0 - BA 49 CR 3/4 TR 1 CH 1 NT D 1/5 voff=0 - - BA 50 CR 0 TR 1 CH 1 NT Bb 1/5 voff=0 - BA 50 CR 1/4 TR 1 CH 1 NT Bb 2/5 voff=0 - BA 50 CR 3/4 TR 1 CH 1 NT Bb- 4/5 voff=0 - - BA 51 CR 3/4 TR 1 CH 1 NT Bb 4/5 voff=0 - - BA 52 CR 3/4 TR 1 CH 1 NT Bb-- 2/5 voff=0 - BA 52 CR 3/4 TR 1 CH 1 NT G 2/5 voff=0 - BA 52 CR 3/4 TR 1 CH 1 NT F- 2/5 voff=0 - BA 52 CR 3/4 TR 1 CH 1 NT D- 2/5 voff=0 - - BA 53 CR 1/4 TR 1 CH 1 NT Eb 2/5 voff=0 - BA 53 CR 1/4 TR 1 CH 1 NT C- 2/5 voff=0 - BA 53 CR 1/4 TR 1 CH 1 NT B 2/5 voff=0 - BA 53 CR 3/4 TR 1 CH 1 NT G#- 4/5 voff=0 - - BA 54 CR 3/4 TR 1 CH 1 NT F- 4/5 voff=0 - BA 54 CR 3/4 TR 1 CH 1 NT Bb- 4/5 voff=0 - - BA 55 CR 3/4 TR 1 CH 1 NT Bb- 2/5 voff=0 - - BA 56 CR 1/4 TR 1 CH 1 NT Bb- 4/5 voff=0 - - BA 57 CR 1/4 TR 1 CH 1 NT Bb-- 2/5 voff=0 - BA 57 CR 1/4 TR 1 CH 1 NT G 2/5 voff=0 - BA 57 CR 1/4 TR 1 CH 1 NT F- 2/5 voff=0 - BA 57 CR 1/4 TR 1 CH 1 NT D- 2/5 voff=0 - BA 57 CR 3/4 TR 1 CH 1 NT Eb 2/5 voff=0 - BA 57 CR 3/4 TR 1 CH 1 NT C- 2/5 voff=0 - BA 57 CR 3/4 TR 1 CH 1 NT B- 2/5 voff=0 - - BA 58 CR 1/4 TR 1 CH 1 NT B 2/5 voff=0 - BA 58 CR 3/4 TR 1 CH 1 NT F 4/5 voff=0 - BA 58 CR 3/4 TR 1 CH 1 NT Bb 4/5 voff=0 - - BA 59 CR 3/4 TR 1 CH 1 NT Bb- 2/5 voff=0 - - BA 60 CR 1/4 TR 1 CH 1 NT Bb- 2/5 voff=0 - BA 60 CR 3/4 TR 1 CH 1 NT C- 4/5 voff=0 - BA 60 CR 3/4 TR 1 CH 1 NT C 4/5 voff=0 - - BA 61 CR 3/4 TR 1 CH 1 NT C-- 3+19/20 voff=0 - BA 61 CR 3/4 TR 1 CH 1 NT A 3+19/20 voff=0 - BA 61 CR 3/4 TR 1 CH 1 NT G- 3+19/20 voff=0 - - BA 63 CR 1/4 TR 1 CH 1 NT E- 1/5 voff=0 - BA 63 CR 1/2 TR 1 CH 1 NT F- 1/5 voff=0 - BA 63 CR 3/4 TR 1 CH 1 NT E- 1+11/20 voff=0 - - BA 64 CR 1/2 TR 1 CH 1 NT E 3+1/5 voff=0 - BA 64 CR 1/2 TR 1 CH 1 NT G- 1+1/5 voff=0 - BA 64 CR 1/2 TR 1 CH 1 NT C 3+1/5 voff=0 - - BA 67 CR 7/10 TR 1 CH 16 End of track - -compile: | - asc2mid main.asc > main.mid - mono /opt/velato/Vlt.exe /s main.mid -run: | - mono main.exe -hello: | - Hello, World! diff --git a/langs/verilog.yaml b/langs/verilog.yaml deleted file mode 100644 index cfd6eb7..0000000 --- a/langs/verilog.yaml +++ /dev/null @@ -1,25 +0,0 @@ -id: "verilog" -aliases: - - "systemverilog" - - "iverilog" - - "v" -name: "Verilog" - -install: - apt: - - iverilog - -main: "main.v" -template: | - module main; - - initial begin - $display("Hello, world!"); - end - - endmodule - -compile: | - iverilog main.v -o main -run: | - ./main diff --git a/langs/vimscript.yaml b/langs/vimscript.yaml deleted file mode 100644 index d0aa5f1..0000000 --- a/langs/vimscript.yaml +++ /dev/null @@ -1,38 +0,0 @@ -id: "vimscript" -aliases: - - "vim" - - "viml" -name: "Vimscript" - -install: - apt: - - vim - npm: - - vim-language-server - -repl: | - vim -input: | - :echo 123 * 234 - -main: "main.vim" -template: | - :echo "Hello, world!" - -run: | - vim -c "$(< main.vim)" - -scope: - code: | - :let x = 123 * 234 - input: | - :echo x - -lsp: - start: | - vim-language-server --stdio - code: "TODO" - item: "TODO" - -skip: - - lsp diff --git a/langs/vimwiki.yaml b/langs/vimwiki.yaml deleted file mode 100644 index 038643a..0000000 --- a/langs/vimwiki.yaml +++ /dev/null @@ -1,17 +0,0 @@ -id: "vimwiki" -name: "Vimwiki" - -install: - apt: - - pandoc - riju: - - prettier - -main: "main.txt" -template: | - Hello, world! - -compile: | - pandoc main.txt -f vimwiki -o main.html -run: | - prettier --no-config main.html diff --git a/langs/visualbasic.yaml b/langs/visualbasic.yaml deleted file mode 100644 index 9d8b19e..0000000 --- a/langs/visualbasic.yaml +++ /dev/null @@ -1,26 +0,0 @@ -id: "visualbasic" -aliases: - - "vbasic" - - "vb" - - "vbnc" - - "vba" -name: "Visual Basic" -monacoLang: vb - -install: - apt: - - mono-vbnc - - mono-runtime - -main: "main.vb" -template: | - Module Main - Sub Main(args As String()) - Console.WriteLine("Hello, world!") - End Sub - End Module - -compile: | - vbnc main.vb -run: | - mono main.exe diff --git a/langs/whitespace.yaml b/langs/whitespace.yaml deleted file mode 100644 index 996e242..0000000 --- a/langs/whitespace.yaml +++ /dev/null @@ -1,16 +0,0 @@ -id: "whitespace" -aliases: - - "ws" -name: "Whitespace" - -install: - pip: - - whitespace - -main: "main.ws" -template: "Hello, world \t \t \n\t\n \t\t \t \t\n\t\n \t\t \t\t \n\t\n \t\t \t\t \n\t\n \t\t \t\t\t\t\n\t\n \t \t\t \n\t\n \t \n\t\n \t\t\t \t\t\t\n\t\n \t\t \t\t\t\t\n\t\n \t\t\t \t \n\t\n \t\t \t\t \n\t\n \t\t \t \n\t\n \n\n" - -run: | - whitespace main.ws -hello: | - Hello, world diff --git a/langs/wolframlanguage.yaml b/langs/wolframlanguage.yaml deleted file mode 100644 index 9c7de96..0000000 --- a/langs/wolframlanguage.yaml +++ /dev/null @@ -1,28 +0,0 @@ -id: "wolframlanguage" -aliases: - - "wolfram" - - "mathematica" - - "mathics" - - "wolframmathematica" - - "wls" - - "expreduce" - - "symja" -name: "Wolfram Language" - -install: - pip: - - Mathics3 - -repl: | - mathics - -main: "main.wls" -template: | - Print["Hello, world!"] - -run: | - mathics --persist main.wls - -scope: - code: | - x = 123 * 234 diff --git a/langs/x86.yaml b/langs/x86.yaml deleted file mode 100644 index 240c5f8..0000000 --- a/langs/x86.yaml +++ /dev/null @@ -1,29 +0,0 @@ -id: "x86" -aliases: - - "s" - - "asm" - - "assembly" - - "x86-64" -name: "x86" - -main: "main.S" -template: |2 - .text - .globl main - main: - movq $1, %rax - movq $1, %rdi - leaq message(%rip), %rsi - movq $14, %rdx - syscall - movq $60, %rax - movq $0, %rdi - syscall - .data - message: - .string "Hello, world!\n" - -compile: | - clang main.S -o main -run: | - ./main diff --git a/langs/xslt.yaml b/langs/xslt.yaml deleted file mode 100644 index f47d57f..0000000 --- a/langs/xslt.yaml +++ /dev/null @@ -1,28 +0,0 @@ -id: "xslt" -aliases: - - "xsltproc" - - "xsl" -name: "XSLT" - -install: - apt: - - xsltproc - -main: "main.xsl" -template: | - -
- - - - - - Hello, world! -
- -compile: | - xsltproc main.xsl -o main -run: | - cat main diff --git a/langs/yaml.yaml b/langs/yaml.yaml deleted file mode 100644 index cc9dd4e..0000000 --- a/langs/yaml.yaml +++ /dev/null @@ -1,27 +0,0 @@ -id: "yaml" -aliases: - - "yml" -name: "YAML" -monacoLang: yaml - -install: - apt: - - jq - riju: - - prettier - - yj - -main: "main.yaml" -template: | - output: "Hello, world!" - -compile: | - cat main.yaml | yj -yj > main.json -run: | - cat main.json | jq . - -format: - run: | - prettier --no-config --stdin-filepath=format.yaml - input: | - output: 'Hello, world!' diff --git a/langs/yoptascript.yaml b/langs/yoptascript.yaml deleted file mode 100644 index 8ab7daa..0000000 --- a/langs/yoptascript.yaml +++ /dev/null @@ -1,63 +0,0 @@ -id: "yoptascript" -aliases: - - "yopta" -name: "YoptaScript" - -info: - year: 2016 - desc: "The world's first scripting programming language for gopniks and real boys" - ext: yopta - web: - home: "https://yopta.space/" - source: "https://github.com/samgozman/YoptaScript" - category: general - mode: interpreted - platform: nodejs - syntax: c - typing: dynamic - paradigm: - - functional - - imperative - - oo - usage: [] - -install: - npm: - - yopta - scripts: - yopta: | - #!/usr/bin/env -S NODE_PATH=/opt/yopta/lib/node_modules node - const fs = require("fs"); - const repl = require("repl"); - - const args = process.argv.slice(2); - if (args.length > 1) { - console.error("usage: yopta [FILE]"); - process.exit(1); - } - - const program = args.length === 1 ? fs.readFileSync(args[0], "utf-8") : null; - - require("yopta"); - - if (program !== null) { - eval(yopta(program)); - } - - repl.start({prompt: "yopta> ", eval: (cmd, context, filename, callback) => callback(null, eval(yopta(cmd)))}); - -repl: | - yopta - -main: "main.yopta" -template: | - красноглазое.чмо("Привет мир!") нах -hello: | - Привет мир! - -run: | - yopta main.yopta - -scope: - code: | - x = 123 * 234 diff --git a/langs/yorick.yaml b/langs/yorick.yaml deleted file mode 100644 index 8cfb1fe..0000000 --- a/langs/yorick.yaml +++ /dev/null @@ -1,27 +0,0 @@ -id: "yorick" -name: "Yorick" - -install: - apt: - - yorick - - rlwrap - -repl: | - rlwrap yorick - -main: "main.i" -template: | - write, "Hello, world!" - -run: | - echo "Type '#include \"main.i\"' to run the code." - rlwrap yorick -helloInput: | - #include "main.i" - -scope: - code: | - x = 123 * 234 - input: | - #include "main.i" - x diff --git a/langs/zig.yaml b/langs/zig.yaml deleted file mode 100644 index 8afde55..0000000 --- a/langs/zig.yaml +++ /dev/null @@ -1,44 +0,0 @@ -id: "zig" -name: "Zig" - -info: - year: 2016 - desc: "General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software" - ext: - - zig - web: - wiki: "https://en.wikipedia.org/wiki/Zig_(programming_language)" - home: "https://ziglang.org/" - source: "https://github.com/ziglang/zig" - category: general - mode: compiled - platform: [] - syntax: lua - typing: static - paradigm: - - imperative - usage: [] - -install: - prepare: - apt: - - squashfs-tools - manual: | - install -d "${pkg}/opt" - install -d "${pkg}/usr/local/bin" - - url="$(curl -fsSL -H "X-Ubuntu-Series: 16" "https://api.snapcraft.io/api/v1/snaps/details/zig?channel=beta" | jq .download_url -r)" - wget "${url}" -O zip.snap - unsquashfs -d "${pkg}/opt/zig" zip.snap - ln -s /opt/zig/zig "${pkg}/usr/local/bin/" - -main: main.zig -template: | - const std = @import("std"); - - pub fn main() anyerror!void { - std.log.info("Hello, world!", .{}); - } - -run: | - zig run main.zig diff --git a/langs/zoem.yaml b/langs/zoem.yaml deleted file mode 100644 index f4c1410..0000000 --- a/langs/zoem.yaml +++ /dev/null @@ -1,21 +0,0 @@ -id: "zoem" -aliases: - - "azm" -name: "Zoem" - -install: - apt: - - zoem - -repl: | - zoem -input: | - \let{123 * 234} - . - -main: "main.azm" -template: | - \inform{Hello, world!} - -run: | - zoem -I main.azm; zoem diff --git a/langs/zot.yaml b/langs/zot.yaml deleted file mode 100644 index e1a9dc6..0000000 --- a/langs/zot.yaml +++ /dev/null @@ -1,48 +0,0 @@ -id: "zot" -name: "Zot" - -install: - prepare: - apt: - - qt5-qmake - - qtscript5-dev - apt: - - libqt5script5 - manual: | - install -d "${pkg}/usr/local/bin" - - git clone https://github.com/manyoso/zot.git - pushd zot - ./build.sh - cp build/bin/zot "${pkg}/usr/local/bin/" - popd - -main: "main.zot" -template: | - 111101010100111010101001001101010010010011101010100111010101 - 001101010010101010011101010100110101001101010100110101001010 - 101001110101010011101010100110101001010101001110101010011010 - 100110101010011010100101010100111010101001101010011010101001 - 101010011010101001110101010011101010100111010101001110101010 - 010011010100100110101001001101010010011010100101010011101010 - 100110101001101010100110101001101010100110101001010100111010 - 101001110101010011010100101010100111010101001101010011010101 - 001101010010101010011101010100110101001101010100111010101001 - 101010010101010010101001110101010011010100101010011101010100 - 111010101001101010010101010011101010100110101001010100111010 - 101001101010010101010010101001101010011101010100110101001101 - 010100100101010011010100101010011101010100110101001101010100 - 110101001101010100110101001010100111010101001110101010011010 - 100101010100111010101001101010011010101001101010010101010011 - 101010100110101001101010100111010101001101010010101010010101 - 001110101010011010100101010011101010100111010101001101010010 - 101010011101010100110101001010100111010101001101010010101010 - 010101001101010011101010100110101001101010100100101010011010 - 100101010011101010100110101001010100101010001010000100001000 - 010011000110110010011101111011011101110000001000011010011110 - 11000110110001101101010011000010010 - -run: | - zot --file main.zot -hello: | - 0100100001100101011011000110110001101111001011000010000001110111011011110111001001101100011001000010000100001010 diff --git a/langs/zsh.yaml b/langs/zsh.yaml deleted file mode 100644 index 4c2970f..0000000 --- a/langs/zsh.yaml +++ /dev/null @@ -1,30 +0,0 @@ -id: "zsh" -aliases: - - "zshell" - - "zshrc" -name: "Zsh" -monacoLang: shell - -install: - apt: - - zsh - - zsh-doc - -repl: | - SHELL=/usr/bin/zsh HOME="$PWD" zsh -input: | - expr 123 \* 234 - -main: ".zshrc" -template: | - echo "Hello, world!" -createEmpty: "" - -run: | - SHELL=/usr/bin/zsh HOME="$PWD" zsh - -scope: - code: | - x="$(expr 123 \* 234)" - input: | - echo "$x" diff --git a/tf/iam.tf b/tf/iam.tf index ef526e2..d492624 100644 --- a/tf/iam.tf +++ b/tf/iam.tf @@ -295,4 +295,4 @@ resource "aws_iam_user_policy_attachment" "grafana_cloudwatch" { resource "aws_iam_access_key" "grafana" { user = aws_iam_user.grafana.name -} +} \ No newline at end of file