[ragel-users] interleaving two machines

Robert Lemmen robertle at semistable.com
Wed Oct 22 13:38:02 UTC 2008


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

-- 
Robert Lemmen                               http://www.semistable.com 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20081022/8ccafc69/attachment-0001.sig>


More information about the ragel-users mailing list