[ragel-users] Re: State Chart Finishing Actions?

Adrian Thurston thurs... at cs.queensu.ca
Tue Apr 29 00:53:51 UTC 2008


Hi Bob, you can use priorities to do this.

(
   'a' |
   'b' |
   'c' |
   ...
) @1 |
(
   any @0
)

Though there really should be a guarded union operator that does this.

-Adrian

Bob Paddock wrote:
> 
> 
> On 4/15/08, *Adrian Thurston* <thurs... at cs.queensu.ca
> <mailto:thurs... at cs.queensu.ca>> wrote:
> 
> 
>     I think what you want instead of any* is [^>]. 
> 
>  
> [^>] worked fine when I have a few states.
> Is there a better way to do it if you have say
> forty states that would be valid?
>  
> 
> > 



More information about the ragel-users mailing list