lua-users home
lua-l archive

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

Here's a little challenge for y'all: Can good ol' LPeg parse the 4 critical chunks of a PNG?

I was told PNG is a regular language, in the sense that you can validate any PNG chunk with a VERY VERY VERY LONG regex.

Well, LPeg is better than regular, so it might be able to do it better than regex. Can LPeg beat regex at PNG validation?

Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.