adding lexer thingers

This commit is contained in:
Paul Tagliamonte 2012-12-18 23:16:18 -05:00
parent dc00027361
commit d4ed65ff63

10
eg/yo-dawg.hy Normal file
View File

@ -0,0 +1,10 @@
; vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2 filetype=lisp
; Copyright (c) Paul Tagliamonte, in sofar as any of this is at all
; copyrightable.
(import ["json"])
(print "I'll eval s-expressions you input")
(loop (print
(kwapply (json.dumps
(lex (read))) {"sort_keys" true "indent" 4})))