[ragel-users] Last action not executing with Ruby-generated code

Iñaki Baz Castillo ibc at aliax.net
Fri Mar 13 21:07:53 UTC 2009


El Viernes, 13 de Marzo de 2009, Jason Garber escribió:
> Since Ragel makes it so easy to generate code in several languages,
> I'm adding a pure-ruby parser to RedCloth (it already has C and Java
> extensions).  My only problem is that the actions of the last pattern
> matched by the scanner don't happen.  It is happening in both my
> block-level scanner and my inline scanner and it's different patters/
> actions that fail to execute, but always at the end of the string.

Add '\0' to the Ruby string you want to parse.



-- 
Iñaki Baz Castillo




More information about the ragel-users mailing list