lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Thanks to Roberto for your great library, I didn't know about PEG before!

To get a feeling for lpeg I started to write a XML-Parser.
It is not finished, UTF8 and entity decoding are not jet supported and for sure it will not parse any XML correctly.

The source is a bit large so i puted it on my web server.

lpegxml.lua:
http://variable.at/luawin/lpegxml.lua

Colored HTML version:
http://variable.at/luawin/lpegxml.html

I would welcome any comments on how I did, possible error corrections and optimization hints!

BR,
Michael Wolf