diff --git a/README.md b/README.md index 00725d0f..cc6f1da8 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ Currently supports: * Python * Ruby * F# + * newLISP You only have to add a few lines in a PR to support another. diff --git a/examples/the-day-so-far.lsp b/examples/the-day-so-far.lsp new file mode 100644 index 00000000..aee64451 --- /dev/null +++ b/examples/the-day-so-far.lsp @@ -0,0 +1,3 @@ +#!/usr/bin/newlisp + +(format "the day is %2.0f%% done" (div (time-of-day) (* 24 60 60 10))) diff --git a/lib/grammars.coffee b/lib/grammars.coffee index ef76837a..0430468f 100644 --- a/lib/grammars.coffee +++ b/lib/grammars.coffee @@ -45,3 +45,8 @@ module.exports = 'F#': command: "fsharpi" "File Based": (filename) -> ['--exec', filename] + + newLISP: + command: "newlisp" + "Selection Based": (code) -> ['-e', code] + "File Based": (filename) -> [filename]