hy/eg/yo-dawg.hy

11 lines
305 B
Hy
Raw Normal View History

2012-12-19 05:16:18 +01:00
; 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})))