Hi,
I want to comment out the code beginning with "cuda", but ignore the 
"cuda" appearing in the middle.
For example ,comment out:
cudaType c = new cudaType();
but enable
function(cudaType c);
What I do is like,
CUDAComment
        :
                ("cuda" ( ~('\n') )* 
{setPreprocessingDirective(getText(),Pragma.comment);})
                        {
 
                        _ttype = Token.SKIP;
                        }
        ;

But it will comment the code with "cuda" in the middle. How to know the 
positon of "cuda"?

Best,

Yixun

List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to