[ragel-users] How to call an 'action' from other 'action' ?

Iñaki Baz Castillo ibc at aliax.net
Wed Feb 18 22:29:37 UTC 2009

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

More information about the ragel-users mailing list