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
[email protected]
http://www.complang.org/mailman/listinfo/ragel-users

_______________________________________________
ragel-users mailing list
[email protected]
http://www.complang.org/mailman/listinfo/ragel-users

Reply via email to