New language: Factor

This commit is contained in:
Radon Rosborough 2020-07-11 11:31:49 -06:00
parent 0f63d82389
commit 7aadfaa421
2 changed files with 20 additions and 0 deletions

View File

@ -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: {

View File

@ -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"