Created
May 11, 2012 19:58
-
-
Save fogus/2662079 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load('./cljjs.js') | |
// USING EXISTING PARSER | |
clj.read_string("#queue [1 2 3]") | |
//=> #queue [1 2 3] | |
// REGISTERING NEW PARSER | |
clj.register_tag_parser('date', function(d) { return (new Date(Date.parse(d))) }) | |
clj.read_string("#date \"December 2, 1975\"") | |
//=> Tue Dec 02 1975 00:00:00 GMT-0500 (EST) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment