[ragel-users] Re: Newbie question: an extended comma or tab separated (CSV/TSV) Ragel scanner

Andrew Garner muza... at gmail.com
Mon Jun 30 01:50:28 UTC 2008


On Sun, Jun 29, 2008 at 8:24 AM, Heiko <heiko.pael... at gmail.com> wrote:

> Do you have any idea why my implementation swallows one character
> after a newline \n, but not after \r?


What version of Ragel are you using? You probably want to use pattern =>
action; in your scanner for the multiline/newline matching rather than @{}
transitions to get longest match behavior.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20080629/39854fe5/attachment-0001.html>


More information about the ragel-users mailing list