[ragel-users] leaving actions?

Adrian Thurston thurston at complang.org
Fri Nov 28 03:22:35 UTC 2008


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




More information about the ragel-users mailing list