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
> [email protected]
> http://www.complang.org/mailman/listinfo/ragel-users

_______________________________________________
ragel-users mailing list
[email protected]
http://www.complang.org/mailman/listinfo/ragel-users

Reply via email to