[ragel-users] can ragel tell me the type of final state?

Adrian Thurston thurston at complang.org
Fri Aug 28 00:21:55 UTC 2009


Ya, there is no language support for this at present. You'll have to use 
actions.

I think it would be good if one could embed properties into states and 
then query whether or not the property is set at runtime. It would have 
a number of applications, including this.

Adrian

Brian Palmer wrote:
> Hi, I have a use case where I need to differentiate between final  
> states with outgoing transitions, and final states without outgoing  
> transitions. In other words, I need to whether there is the  
> possibility of further input being parsed, even if cs >= first_final.  
> Can ragel tell me which kind of state cs is? Or will I need to track  
> this externally with an action? I suspect the latter since I couldn't  
> find anything in the docs, but thought I'd ask.
> 
> thanks,
> 
> -- Brian Palmer
> 
> _______________________________________________
> 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