New language: Factor
This commit is contained in:
parent
0f63d82389
commit
7aadfaa421
|
@ -384,6 +384,19 @@ output = "Hello, world!"
|
|||
|
||||
main() ->
|
||||
io:fwrite("Hello, world!\\n").
|
||||
`,
|
||||
},
|
||||
factor: {
|
||||
aliases: ["fact"],
|
||||
name: "Factor",
|
||||
monacoLang: "plaintext",
|
||||
repl: "factor-lang",
|
||||
main: ".factor-rc",
|
||||
createEmpty: true,
|
||||
run: "factor-lang",
|
||||
template: `USE: io
|
||||
|
||||
"Hello, world!" print
|
||||
`,
|
||||
},
|
||||
fish: {
|
||||
|
|
|
@ -55,6 +55,13 @@ wget -nv https://s3.amazonaws.com/rebar3/rebar3
|
|||
chmod +x rebar3
|
||||
mv rebar3 /usr/bin/rebar3
|
||||
|
||||
# Factor
|
||||
wget -nv https://downloads.factorcode.org/releases/0.98/factor-linux-x86-64-0.98.tar.gz
|
||||
tar -xf factor-linux-x86-64-*.tar.gz
|
||||
mv -T factor /opt/factor
|
||||
ln -s /opt/factor/factor /usr/bin/factor-lang
|
||||
rm factor-linux-x86-64-*.tar.gz
|
||||
|
||||
# Go
|
||||
export GO111MODULE=on
|
||||
export GOPATH="$PWD/go"
|
||||
|
|
Loading…
Reference in New Issue