https://github.com/abo-abo/xlx
XML <-> LISP converter
https://github.com/abo-abo/xlx
lisp xml
Last synced: 3 months ago
JSON representation
XML <-> LISP converter
- Host: GitHub
- URL: https://github.com/abo-abo/xlx
- Owner: abo-abo
- Created: 2018-01-26T18:01:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-26T18:09:35.000Z (over 7 years ago)
- Last Synced: 2025-01-12T17:38:32.263Z (4 months ago)
- Topics: lisp, xml
- Language: Common Lisp
- Size: 17.6 KB
- Stars: 11
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
* Description
This is a demo of a XML->LISP->XML converter.Generate a LISP file from a XML file:
#+begin_src sh
./xlx.lisp res/config.xml out.lisp
#+end_srcGenerate a XML file from a LISP file:
#+begin_src sh
./xlx.lisp out.lisp out.xml
#+end_srcCheck for diffs:
#+begin_src sh
diff -s res/config.xml out.xml
#+end_src* Using Cookbook.py
Install pycook:
#+begin_src sh
pip install pycook
#+end_srcInstall Quicklisp:
#+begin_src sh
cook install_quicklisp
#+end_srcRun the test case:
#+begin_src sh
cook run
#+end_src* Possible Emacs integration
When visiting an XML file, ~M-x~ =xlx-mode= will:
- generate a new buffer in =lisp-mode= with the transformed contents
- overwrite the original file each time ~C-x C-s~ is done in the LISP buffer.