[#24] New language: Beanshell

This commit is contained in:
Radon Rosborough 2020-09-27 19:45:20 -07:00
parent 69723f203a
commit 8d50ff1234
2 changed files with 18 additions and 0 deletions

View File

@ -305,6 +305,21 @@ end
run: "bc main.bc",
template: `"Hello, world!
"
`,
},
beanshell: {
aliases: ["bsh"],
name: "Beanshell",
repl: `CLASSPATH=/usr/share/java/jline.jar:/usr/share/java/bsh.jar java -Duser.home="$PWD" jline.ConsoleRunner bsh.Interpreter`,
input: `print(123 * 234);`,
main: ".bshrc",
createEmpty: ``,
run: `CLASSPATH=/usr/share/java/jline.jar:/usr/share/java/bsh.jar java -Duser.home="$PWD" jline.ConsoleRunner bsh.Interpreter`,
scope: {
code: `x = 123 * 234;`,
input: `print(x);`,
},
template: `print("Hello, world!");
`,
},
beatnik: {

View File

@ -64,6 +64,9 @@ yasm
# bc
bc
# Beanshell
bsh
# BrainF
beef