El Miércoles, 18 de Febrero de 2009, Eric Brown escribió:

> > As you see I use two leaving actions (%) in "user". It works but
> > I've no idea
> > about if it *should* really work. Any problem with it?
>
> That is specifically supposed to work according to the ragel 6.3 PDF
> manual.

Yes, I was reading about it right now :)


> About your original question -- calling one action from another -- I
> don't think there is a way. Would be interesting if there was. Of
> course actions can call other methods and if you use the "access" and
> "variable" directives to put cs, p, pe, etc. in your object, you can
> put your comment code in a method.

Well, using leaving action (%) twice is an ellegant workaround for me :)

Thanks a lot.

-- 
Iñaki Baz Castillo

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

Reply via email to