[ragel-users] Local error actions examples

Shawn Hoover shawn at bighugh.com
Wed Nov 10 02:24:19 UTC 2010


Perfect. Thanks for the example and the excellent Ragel!

On Tue, Nov 9, 2010 at 7:25 PM, Adrian Thurston <
adrian.thurston at esentire.com> wrote:

> Graph this machine. The global error actions are executed outside of the
> full 0 .. 30 range. The local e1 action is executed outside of the 0 .. 20
> range. Notice it's executed on 21 .. 30. Similar story for the local e2.
>
> %%{
>    machine foo;
>
>    action e1 {}
>    action e2 {}
>
>    global1 = 0 .. 20 >!e1;
>    global2 = 10 .. 30 >!e2;
>
>    local1 = 0 .. 20 >^e1;
>    local2 = 10 .. 30 >^e2;
>
>    main := ( global1 | global2 ) ' ' ( local1 | local2 );
> }%%
>
>
>
> On 10-11-09 02:52 PM, Shawn Hoover wrote:
>
>> Can anyone provide examples contrasting the behavior of local and global
>> error actions? All the examples I've found so far only use global error
>> actions, and the difference is not quite sinking in for me from reading
>> the manual.
>>
>> Thanks,
>> Shawn
>>
>>
>>
>> _______________________________________________
>> ragel-users mailing list
>> ragel-users at complang.org
>> http://www.complang.org/mailman/listinfo/ragel-users
>>
>
> _______________________________________________
> ragel-users mailing list
> ragel-users at complang.org
> http://www.complang.org/mailman/listinfo/ragel-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20101109/8305cec2/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