From 15628f0e0d362f1900984a687aec73228fd9cfba Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Sun, 4 Oct 2020 11:31:53 -0700 Subject: [PATCH] [#24] New language: Pawn --- backend/src/langs.ts | 13 +++++++++++++ scripts/docker-install-phase6.bash | 11 +++++++++++ 2 files changed, 24 insertions(+) diff --git a/backend/src/langs.ts b/backend/src/langs.ts index 8f425b3..428bd13 100644 --- a/backend/src/langs.ts +++ b/backend/src/langs.ts @@ -2516,6 +2516,19 @@ end begin writeln('Hello, world!'); end. +`, + }, + pawn: { + aliases: ["pawncc", "pawnrun"], + name: "PAWN", + main: "main.pawn", + compile: "pawncc main.pawn -i/opt/pawn/include", + run: "pawnrun main.amx", + template: `#include + +main() { + print("Hello, world!\\n"); +} `, }, perl: { diff --git a/scripts/docker-install-phase6.bash b/scripts/docker-install-phase6.bash index f0859ce..5344257 100755 --- a/scripts/docker-install-phase6.bash +++ b/scripts/docker-install-phase6.bash @@ -125,6 +125,17 @@ mv bin/esco /usr/local/bin/ popd >/dev/null rm -rf esco +# PAWN +git clone https://github.com/compuphase/pawn.git +pushd pawn >/dev/null +cmake . +make +mv pawncc pawnrun /usr/local/bin/ +mkdir /opt/pawn +mv include /opt/pawn/ +popd >/dev/null +rm -rf pawn + # Rapira git clone https://github.com/freeduke33/rerap2.git pushd rerap2 >/dev/null