[ragel-users] Figuring out/referring to FSM states (cs values) outside of action{} blox
Rashid Karimov
rashid.karimov at gmail.com
Wed Nov 18 19:26:06 UTC 2009
Adrian,
thank you for prompt response, I understand it now :)
In my case, there's a subset of states that I want to act on, outside of
action code, without driving through the FSM code proper. Will follow
your advice and expose that subset via non-ragel state variable and act
on that !
TY
Rashid
On Wed, Nov 18, 2009 at 11:38 AM, Adrian Thurston <
adrian.thurston at esentire.com> wrote:
> The problem with doing this in Ragel is that any particular named
> machine definition may correspond to more than one state in the compiled
> output. Therefore, a variable to be used outside of the machine would
> actually have to be a set of states.
>
> For this reason, Ragel does not automate the process. Instead, what you
> should do is use actions to maintain a state variable that has meaning
> outside the FSM.
>
> -Adrian
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20091118/ae2d6ea6/attachment-0001.html>
More information about the ragel-users
mailing list