News for hackers. Stuff that matters.
Re:Parsing JSON is a Minefield by _delirium on Sunday April 22, 2018 @03:30PM (#16898040)
I like TeX for producing documents. But I'd take XML over TeX if I had to parse the markup myself, outside of the TeX toolchain. Any nontrivial TeX document is built out of a pile of macros, so you need to implement a TeX-compatible macro expander to parse it. And at least with XML there are solid libraries, while the state of TeX-parsing libraries outside of TeX itself is pretty poor. I think Haskell is the only language with a reasonably good implementation, thanks to the efforts of the pandoc folks.
Re:Parsing JSON is a Minefield by jstimpfle on Sunday April 22, 2018 @03:59PM (#16898216)
It doesn't need to be Tex-compatible. My point was just that the syntax is lighter weight and might be preferable for some applications.
Re:Parsing JSON is a Minefield by ygra on Sunday April 22, 2018 @09:30PM (#16899853)
RTF is essentially the same syntax, sans the option to define your own markup. Only barely human readable when produced by a word processor, though, but generated TeX is awful as well.