Monday, January 2, 2012

S-expression syntax for associations

I have created a syntax for map structures compatible with Lisp. This notation treats the first element of a list as its key and the rest of the list as its value.
(% (np 2)
   (fp (numerator 10)
       (denominator 20)))
In order to evaluate a expression in the map you will need to use the unquote function.

No comments:

Post a Comment