Exceptions are welcome :) But why are you doing this? Just curious.
Actually, in my current project we use JSON to encode parse trees. It's no s-expressions, but it works pretty well.
Actually, in my current project we use JSON to encode parse trees. It's no s-expressions, but it works pretty well.
The Ruby and Python bindings let you choose between JSON and the native hash/array or list/dictionary structures. You can be idiomatic and portable at the same time.