[ragel-users] Last action not executing with Ruby-generated code
Adrian Thurston
thurston at complang.org
Wed Mar 18 03:20:28 UTC 2009
This happens because, by the nature of your patterns, one char of
lookahead is required to determine when a match occurs. The '\0'
provides that. Alternatively, you can set eof = pe on the last block and
the final token will be flushed.
-Adrian
Jason Garber wrote:
> Thank you. That worked perfectly.
>
> On Mar 13, 2009, at 5:07 PM, Iñaki Baz Castillo wrote:
>
>> Add '\0' to the Ruby string you want to parse.
>> --
>> Iñaki Baz Castillo
>
>
> _______________________________________________
> ragel-users mailing list
> ragel-users at complang.org
> http://www.complang.org/mailman/listinfo/ragel-users
More information about the ragel-users
mailing list