[#24] New language: Pawn

This commit is contained in:
Radon Rosborough 2020-10-04 11:31:53 -07:00
parent 40785b8ac2
commit 15628f0e0d
2 changed files with 24 additions and 0 deletions

View File

@ -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 <core>
main() {
print("Hello, world!\\n");
}
`,
},
perl: {

View File

@ -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