I tried to make use of the TokenMakerMaker to get a first idea of how TokenMakers look alike for RSTA.
One problem I encountered is that the TMM seems not to handle $ in all cases. I tried to define a function, which in our syntax is introduced by a $-sign, but the generation process fails because the Matcher does a special treatment for $-signs identifying RegEx groups. I tried escaping using \$, but it did not work. Escaping worked in the multi comment definition, though.
In the end, I think, TMM does not suffice for our templating language, which is non-C, non-XML. On the other hand, it is quite XML-like, as, e.g., operations have begin- and end-"tags". As we have a Flex-definition already, is there any (nice) way to convert such an existing definition to a TokenMaker?