Skip to content

Instantly share code, notes, and snippets.

@pbalduino
Created January 28, 2015 20:20
Show Gist options
  • Select an option

  • Save pbalduino/ca924a6abcfbf913e2a0 to your computer and use it in GitHub Desktop.

Select an option

Save pbalduino/ca924a6abcfbf913e2a0 to your computer and use it in GitHub Desktop.
User defined macro reader
(dispatch-reader-macro \X xml-reader)
#X"
<compras>
<item>
<batata>
<preco>1.23</preco>
</batata>
</item>
</compras>"
; {:content [{:content [{:content [{:content ["1.23"], :attrs nil,
; :tag :preco}], :attrs nil, :tag :batata}], :attrs nil, :tag :item}]
; , :attrs nil, :tag :compras}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment