From a9bc503e4fe59c11f9d73c1056efc6cd17d3fe2e Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Sun, 19 Jul 2020 14:15:53 -0600 Subject: [PATCH] New language: Ceylon --- backend/src/langs.ts | 9 +++++++++ scripts/docker-install-phase3a.bash | 3 +++ scripts/docker-install-phase5.bash | 5 +++++ 3 files changed, 17 insertions(+) diff --git a/backend/src/langs.ts b/backend/src/langs.ts index e70451e..8d92728 100644 --- a/backend/src/langs.ts +++ b/backend/src/langs.ts @@ -309,6 +309,15 @@ int main() { printf("Hello, world!\\n"); return 0; } +`, + }, + ceylon: { + name: "Ceylon", + main: "source/main.ceylon", + run: `PATH="/usr/lib/jvm/java-8-openjdk-amd64/bin:$PATH" ceylon run --compile=force default`, + template: `shared void run() { + print("Hello, world!"); +} `, }, chef: { diff --git a/scripts/docker-install-phase3a.bash b/scripts/docker-install-phase3a.bash index 8a46343..03d0e47 100755 --- a/scripts/docker-install-phase3a.bash +++ b/scripts/docker-install-phase3a.bash @@ -44,6 +44,9 @@ clangd # C# mono-mcs +# Ceylon +openjdk-8-jdk-headless + # Clojure clojure diff --git a/scripts/docker-install-phase5.bash b/scripts/docker-install-phase5.bash index 4d2c780..5baf9ad 100755 --- a/scripts/docker-install-phase5.bash +++ b/scripts/docker-install-phase5.bash @@ -36,6 +36,11 @@ wget -nv ftp://ftp.gnu.org/gnu/apl/apl_1.8-1_amd64.deb dpkg -i apl_*_amd64.deb rm apl_*_amd64.deb +# Ceylon +wget -nv https://ceylon-lang.org/download/dist/1_3_3_deb -O ceylon.deb +dpkg -i ceylon.deb +rm ceylon.deb + # Clojure wget -nv https://github.com/snoe/clojure-lsp/releases/download/release-20200629T153107/clojure-lsp chmod +x clojure-lsp