|
Home
REALIZE for AutoCAD (G-Code export) Friends' sites: Alex Bill Jeff John Michael Email the author: |
Michael, who's on a LISP kick, asked (rhetorically?) today why we don't use LISP s-expressions instead of XML for data files. Then you can read and manipulate them however you want with no particular trouble. Good question.
A silly proof of concept: (HTML (HEAD (TITLE "Hello world")) (BODY (BLINK ("SPAN STYLE=\"color:red\"" "Testing.") "Still blinking."))) into: <HTML> <HEAD> <TITLE> Hello world </TITLE> </HEAD> <BODY> <BLINK> <SPAN STYLE="color:red"> Testing. </SPAN> Still blinking. </BLINK> </BODY> </HTML> Files attached to this page:
Useful? Depends whether you want to use LISP, I suppose. It seems like a clean alternative to python's pickle, C++'s boost serialization, etc. |