[ragel-users] interleaving two machines

Adrian Thurston thurston at complang.org
Wed Oct 22 14:58:37 UTC 2008


I think this has been requested before, or something similar to it. Is
this a language of your making, or some existing language? I'm
interested in an example use.

-Adrian

Robert Lemmen wrote:
> hi folks,
> 
> i need a way to combine two machines in an interleaved way, so optimally
> i would have an operator ?? that if used like this:
> 
> 'abcd' ?? 'AB'
> 
> would match:
> 
> abcdAB
> ABabcd
> aABbcd
> abAcBd
> 
> i have so far not managed to construct such a machine without
> explicitely stating all the ordering possibilities, which get a bit
> cumbersome as the two machines get longer...
> 
> thanks  robert
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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