[ragel-users] State chart style and entering actions

Shawn Hoover shawn at bighugh.com
Fri Sep 16 20:08:00 UTC 2011


On Wed, Sep 14, 2011 at 1:34 AM, Adrian Thurston <thurston at complang.org>wrote:

> Hi Shawn, does this work for you?
>
> A = (
>   start: A: (
>
>       IDLE -> A |
>       POLL @poll OPEN -> A |
>       POLL @poll CLOSED -> B
>   ),
>   B: (IDLE -> B | EXIT -> final)
> ) >a_entry;
>
> m := START A;
>
> -Adrian


Hi Adrian,

I didn't do a great job of translating my much larger state chart into the
small example, so there are a few complications in the way of directly
following your suggestion. However, this gives me some things to think about
for how to better factor my machines. Thanks for the help!

Shawn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20110916/d7fd911d/attachment-0001.html>
-------------- next part --------------
_______________________________________________
ragel-users mailing list
ragel-users at complang.org
http://www.complang.org/mailman/listinfo/ragel-users


More information about the ragel-users mailing list