Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
tcr committed Dec 1, 2011
1 parent 550fa73 commit 83954c2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 33 deletions.
28 changes: 28 additions & 0 deletions README.md
@@ -0,0 +1,28 @@
# Syrup, a syntactically-light LISP

Syrup is whitespace-significant. Function calls are made as so:

defn: test []
print: "Cool language"

Where a colon following an atom indicates all subsequent arguments
are part of the list. This parse tree is equivalent to (in Clojure):

(defn test [] (print "Cool language"))

Parentheses are for disambiguation, and are insignificant:

calc-fib: (n - 1) b (a + b)

Commas are allowed, but not required in lists of arguments/literals.
Array/list syntax is like JavaScript array literals:

[5 6 7 8]

Arrays can't be invoked, as the above the above is equivalent to

list: 5 6 7 8

Quoting is `. Infix notation is supported for arithmetic operations:

(+: 5 6) is equal to (5 + 6)
33 changes: 0 additions & 33 deletions syrup.coffee
@@ -1,38 +1,5 @@
util = require('util')

###
Syrup, a syntactically-light LISP
Syrup is whitespace-significant. Function calls are made as so:
defn: test []
print: "Cool language"
Where a colon following an atom indicates all subsequent arguments
are part of the list. This parse tree is equivalent to:
(defn test [] (print "Cool language"))
Parentheses are for disambiguation, and are insignificant:
calc-fib: (n - 1) b (a + b)
Commas are allowed, but not required in lists of arguments/literals.
Array/list syntax is like JavaScript array literals:
[5 6 7 8]
Arrays can't be invoked, as the above the above is equivalent to
list: 5 6 7 8
Quoting is `. Infix notation is supported for arithmetic operations:
(+: 5 6) is equal to (5 + 6)
###


# Anonymous functions

Expand Down

0 comments on commit 83954c2

Please sign in to comment.