[antlr-interest] How to write a grammar to handle something similar to xml CDATA section?

Jack Pan Jack.Pan at Lewtan.com
Wed Apr 1 12:12:02 PDT 2009


Hi,

I have a language that can embed code snippet. For example the language can look like this:

InvokeExternal("name"){
        // the following code snippet will be send out
        If(continue){
                DoSomething("test");
        }
}

The idea is to treat everything inside the InvokeExternal("name"){ } construct as plain text and not to parse it.

Any suggestions?

Thanks,

Jack


This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden



More information about the antlr-interest mailing list