[ragel-users] leaving actions?
Larry Edelstein
ribs at acm.org
Fri Nov 28 03:39:08 UTC 2008
Nope. That was the problem. Thanks!
On Thu, Nov 27, 2008 at 7:22 PM, Adrian Thurston <thurston at complang.org>wrote:
> Did you set eof = pe to trigger the EOF actions?
>
> -Adrian
>
> Larry Edelstein wrote:
> > 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
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > 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/20081127/a415eba0/attachment-0001.html>
More information about the ragel-users
mailing list