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`.
- `js` JavaScript (Node 10.14.2)
- `py` Python (CPython 3.6.8, CPython 2.7.15)
- `hs` Haskell (GHC 8.4.3)
- `js` JavaScript (Node 11.11.0)
- `py` Python (CPython 3.7.2, CPython 2.7.16)
- `hs` Haskell (GHC 8.6.3)
- `pas` Pascal (FPC 3.0.4)
- `go` Go (Go 1.12)

View file

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

View file

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

View file

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

View file

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

View file

@ -1,2 +1,2 @@
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 {
constructor() {
super('javaScript', {
super('javascript', {
highlight: 'js',
aliases: ['javaScript', 'js'],
aliases: ['javascript', 'js'],
options: {
harmony: () => ''
}

View file

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