This commit is contained in:
Souji 2019-03-13 07:22:58 +01:00 committed by 1Computer1
parent b3a464c8d6
commit 81ce8fcf87
4 changed files with 23 additions and 0 deletions

View file

@ -68,6 +68,7 @@ One of the following languages is set in `lang`.
- `hs` Haskell (GHC 8.6.3)
- `pas` Pascal (FPC 3.0.4)
- `go` Go (Go 1.12)
- `fs` F# (FSharp 4.5)
## Options
@ -88,3 +89,6 @@ For Pascal:
For Go:
- None
For F#:
- None

5
docker/fsharp/Dockerfile Normal file
View file

@ -0,0 +1,5 @@
FROM fsharp
LABEL author="1Computer1"
COPY run.sh /var/run/
WORKDIR /var/ws

2
docker/fsharp/run.sh Normal file
View file

@ -0,0 +1,2 @@
echo "$1" > program.fsx
fsharpi --optimize- --exec program.fsx

12
src/languages/fsharp.js Normal file
View file

@ -0,0 +1,12 @@
const Language = require('../struct/Language');
class FSharp extends Language {
constructor() {
super('fsharp', {
highlight: 'fs',
aliases: ['fsharp', 'f#', 'fs']
});
}
}
module.exports = FSharp;