lua-users home
lua-l archive

Re: Lpeg 0.12: "grammar has too many rules"

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


It was thus said that the Great Petite Abeille once stated:
> 
> On Sep 20, 2013, at 6:32 AM, Sean Conner <sean@conman.org> wrote:
> 
> >> [1] https://github.com/spc476/LPeg-Parsers/blob/master/email.lua
> 
> Very nice. Thanks for sharing.
> 
> One minor thing though: merge_addr can fail if there is no domain in an address:
 Oh, wait, you could mean that I don't match an address sans domain. Well,
the parser is based on RFC-5322, (obsoletes RFC-2822 and RFC-822). I tried
adding support for the older formats, but the parse time shot up alarmingly
(sub-hundredth of a second for the current version, multiple seconds with
the obsolete parsing code).
 -spc

AltStyle によって変換されたページ (->オリジナル) /