Update compilers; rename things for consistency

This commit is contained in:
1computer1 2019-03-13 01:32:27 -04:00
parent 646a7981fc
commit 4b73ece01c
8 changed files with 12 additions and 24 deletions

View file

@ -59,9 +59,9 @@ console.log(new Foo().bar);
One of the following languages is set in `lang`. One of the following languages is set in `lang`.
- `js` JavaScript (Node 10.14.2) - `js` JavaScript (Node 11.11.0)
- `py` Python (CPython 3.6.8, CPython 2.7.15) - `py` Python (CPython 3.7.2, CPython 2.7.16)
- `hs` Haskell (GHC 8.4.3) - `hs` Haskell (GHC 8.6.3)
- `pas` Pascal (FPC 3.0.4) - `pas` Pascal (FPC 3.0.4)
- `go` Go (Go 1.12) - `go` Go (Go 1.12)

View file

@ -1,8 +1,5 @@
FROM alpine FROM haskell
LABEL author="1Computer1" LABEL author="1Computer1"
RUN apk update
RUN apk add build-base ghc
COPY run.sh /var/run/ COPY run.sh /var/run/
WORKDIR /var/ws WORKDIR /var/ws

View file

@ -1,8 +1,5 @@
FROM alpine FROM node:alpine
LABEL author="1Computer1" LABEL author="1Computer1"
RUN apk update
RUN apk add nodejs
COPY run.sh /var/run/ COPY run.sh /var/run/
WORKDIR /var/ws WORKDIR /var/ws

View file

@ -1,8 +1,5 @@
FROM alpine FROM python:2-alpine
LABEL author="1Computer1" LABEL author="1Computer1"
RUN apk update
RUN apk add build-base python2
COPY run.sh /var/run/ COPY run.sh /var/run/
WORKDIR /var/ws WORKDIR /var/ws

View file

@ -1,8 +1,5 @@
FROM alpine FROM python:3-alpine
LABEL author="1Computer1" LABEL author="1Computer1"
RUN apk update
RUN apk add python3
COPY run.sh /var/run/ COPY run.sh /var/run/
WORKDIR /var/ws WORKDIR /var/ws

View file

@ -1,2 +1,2 @@
echo "$1" > program.py echo "$1" > program.py
python3 program.py python program.py

View file

@ -2,9 +2,9 @@ const Language = require('../struct/Language');
class JavaScript extends Language { class JavaScript extends Language {
constructor() { constructor() {
super('javaScript', { super('javascript', {
highlight: 'js', highlight: 'js',
aliases: ['javaScript', 'js'], aliases: ['javascript', 'js'],
options: { options: {
harmony: () => '' harmony: () => ''
} }

View file

@ -5,7 +5,7 @@ class Python extends Language {
super('python', { super('python', {
highlight: 'py', highlight: 'py',
aliases: ['python', 'py'], aliases: ['python', 'py'],
loads: ['python', 'python2'], loads: ['python3', 'python2'],
options: { options: {
2: () => '' 2: () => ''
} }
@ -17,7 +17,7 @@ class Python extends Language {
return { id: 'python2', env: {} }; return { id: 'python2', env: {} };
} }
return { id: 'python', env: {} }; return { id: 'python3', env: {} };
} }
} }