Work in progress… I hope to deliver something operational at the end of this weekend or sometime in the next week. The "not-so-temporary" name is u-pretty-c.lua and u-pretty-c.mkiv according to Hans's recommandations: "Now, additional pretty printers can be plugged in as well (there is a register function for that) and can have names not starting with v-. Even better, they can be regular user modules, so in your case u-pretty-ra-xml.tex or so will do." FYI, the port of the previously submitted pret-xml.lua (now u-pretty-ra-xml, based on the new pp structure) is in progress… u-pretty-ra-xml is, in my POV, too complicated to be used as a decent use case to rewrite the wiki page related to Pretty Printing but u-pretty-c will certainly be a good candidate… Renaud Le 03/12/2010 22:38, Hans Hagen a écrit :
On 3-12-2010 10:31, Peter Münster wrote:
On Fri, Dec 03 2010, Renaud AUBIN wrote:
I can either help or port if needed…
Yes, that would be really great!! Thank you! In the meantime, I'll work with an older version. (no time to learn lpeg now...)
fyi: the name should be more explicit, like v-c-variant-xxx or so as the can be multiple solutions; the shorter v-*.lua and v-parsed-*.lua names are reserved for core lexers (on my agenda is to do some c lexing as part of cweb lexing) .
Hans