[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lpeg/re documentation bug
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 22 Apr 2008 18:00:46 -0300
> Today I noticed that the CVS decoder example at
> http://www.inf.puc-rio.br/~roberto/lpeg/re.html is not correct.
>
> [...]
>
> A correct one looks like this:
>
> record = re.compile[[
> record <- ( <field> (',' <field>)* ) -> {} ( [%nl] / !.)
> field <- <escaped> / <nonescaped>
> nonescaped <- { [^,"%nl]* }
> escaped <- '"' {~ ([^"] / '""' -> '"')* ~} '"'
> ]]
You are right. Thanks for the feedback.
-- Roberto