[ragel-users] leaving actions?
Larry Edelstein
ribs at acm.org
Fri Nov 28 03:20:36 UTC 2008
I'm confused about leaving actions.
If my machine looks like
main := 'something' %A;
And I run it with the input 'something', why doesn't it run action A?
In the docs:
"If a
final state of the machine is still
final when compilation is
complete then the leaving action
is also embedded as an EOF action. Therefore, leaving the machine is
defi
ned as either leaving on
a character or as state machine acceptance."
In the example I've described, the machine is accepted, but the action isn't
triggered at EOF. What am I missing?
-larry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20081127/0e7dc728/attachment-0001.html>
More information about the ragel-users
mailing list