[ragel-users] Exit action
Eric Brown
yogieric at mac.com
Mon Feb 15 11:07:05 PST 2010
If I have two ORed machines, is there a leaving action I can get when a machine is finally exiting?
For example, I believe this is a simplified form of my parser:
host = [A-Za-z0-9\-.]+;
mailto = (/mailto:/i sender_chars+ '@' (host %mailto_end)) $mailto;
mail := (any | mailto)*;
The %mailto_end will get executed on every single character of host. I just want it to pick up the last character of host. Is there a way?
Cheers,
Eric
More information about the ragel-users
mailing list