Perfect. Thanks for the example and the excellent Ragel!<div><br></div><div><div class="gmail_quote">On Tue, Nov 9, 2010 at 7:25 PM, Adrian Thurston <span dir="ltr"><<a href="mailto:adrian.thurston@esentire.com">adrian.thurston@esentire.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">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.<br>

<br>
%%{<br>
    machine foo;<br>
<br>
    action e1 {}<br>
    action e2 {}<br>
<br>
    global1 = 0 .. 20 >!e1;<br>
    global2 = 10 .. 30 >!e2;<br>
<br>
    local1 = 0 .. 20 >^e1;<br>
    local2 = 10 .. 30 >^e2;<br>
<br>
    main := ( global1 | global2 ) ' ' ( local1 | local2 );<br>
}%%<div><div></div><div class="h5"><br>
<br>
<br>
On 10-11-09 02:52 PM, Shawn Hoover wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
Can anyone provide examples contrasting the behavior of local and global<br>
error actions? All the examples I've found so far only use global error<br>
actions, and the difference is not quite sinking in for me from reading<br>
the manual.<br>
<br>
Thanks,<br>
Shawn<br>
<br>
<br>
<br></div></div>
_______________________________________________<br>
ragel-users mailing list<br>
<a href="mailto:ragel-users@complang.org" target="_blank">ragel-users@complang.org</a><br>
<a href="http://www.complang.org/mailman/listinfo/ragel-users" target="_blank">http://www.complang.org/mailman/listinfo/ragel-users</a><br>
</blockquote>
<br>
_______________________________________________<br>
ragel-users mailing list<br>
<a href="mailto:ragel-users@complang.org" target="_blank">ragel-users@complang.org</a><br>
<a href="http://www.complang.org/mailman/listinfo/ragel-users" target="_blank">http://www.complang.org/mailman/listinfo/ragel-users</a><br>
</blockquote></div><br></div>