Skip to content

Commit 9804b3d

Browse files
committed
Merge pull request #57 from cormullion/master
Added definition and example for newLISP
2 parents 2d060e9 + 2750693 commit 9804b3d

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Currently supports:
1313
* Python
1414
* Ruby
1515
* F#
16+
* newLISP
1617

1718
You only have to add a few lines in a PR to support another.
1819

examples/the-day-so-far.lsp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/newlisp
2+
3+
(format "the day is %2.0f%% done" (div (time-of-day) (* 24 60 60 10)))

lib/grammars.coffee

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,8 @@ module.exports =
4545
'F#':
4646
command: "fsharpi"
4747
"File Based": (filename) -> ['--exec', filename]
48+
49+
newLISP:
50+
command: "newlisp"
51+
"Selection Based": (code) -> ['-e', code]
52+
"File Based": (filename) -> [filename]

0 commit comments

Comments
 (0)