From fca2739298778ad9db42837430e1758ba6083395 Mon Sep 17 00:00:00 2001 From: cormullion Date: Fri, 7 Mar 2014 15:56:21 +0000 Subject: [PATCH 1/2] added definition and example for newLISP added definition and example for newLISP --- examples/the-day-so-far.lsp | 3 +++ lib/grammars.coffee | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 examples/the-day-so-far.lsp 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] From 275069300fb40a83d62089c90292ead96180a8ea Mon Sep 17 00:00:00 2001 From: cormullion Date: Fri, 7 Mar 2014 16:15:22 +0000 Subject: [PATCH 2/2] added newLISP to README.md added newLISP to README.md --- README.md | 1 + 1 file changed, 1 insertion(+) 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.