Add F#
This commit is contained in:
parent
b3a464c8d6
commit
81ce8fcf87
4 changed files with 23 additions and 0 deletions
|
@ -68,6 +68,7 @@ One of the following languages is set in `lang`.
|
||||||
- `hs` Haskell (GHC 8.6.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)
|
||||||
|
- `fs` F# (FSharp 4.5)
|
||||||
|
|
||||||
## Options
|
## Options
|
||||||
|
|
||||||
|
@ -88,3 +89,6 @@ For Pascal:
|
||||||
|
|
||||||
For Go:
|
For Go:
|
||||||
- None
|
- None
|
||||||
|
|
||||||
|
For F#:
|
||||||
|
- None
|
||||||
|
|
5
docker/fsharp/Dockerfile
Normal file
5
docker/fsharp/Dockerfile
Normal 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
2
docker/fsharp/run.sh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
echo "$1" > program.fsx
|
||||||
|
fsharpi --optimize- --exec program.fsx
|
12
src/languages/fsharp.js
Normal file
12
src/languages/fsharp.js
Normal 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;
|
Loading…
Reference in a new issue