From: Kazutoshi S. <k_s...@f2...> - 2010-03-02 17:04:41
|
Bertalan Fodor (LilyPondTool) wrote: > I just found that the parser allows recursive delegation. Is this > intentional? Because relying on this I could solve my problem with this > rule: (snip) > If this is intentional, it is way cool! While I don't know if this is intentional or not, I know this technique is used in C mode (for example, to handle preprocessing directives) and in ruby mode (to switch quoted literals and normal code back and forth). Thus I believe it's OK to solve your problem this way. Using this technique heavily, I think a mode can parse any single pass language completely. -- k_satoda |