HI All
I am facing a problem, while I try to instrument a source file which is
having comment.
I am using the below source for checking the grammar.
// Single-line comments
SL_COMMENT
: "//" (~('\r'|'\n'))* {$setType(Token.SKIP);}
;
Once the grammar is checked, it skips this line and the instrumented code
the comments are not seen in the instrumented file
Can you please let me know to retain the comments in the instrumented file
For example (Before instrumentation the file looks as below)
//Test java
//Test the java source code
import java.io.*;
class A
{
public static void main(String args[])
{
System.out.println("Vasanthi");
}
}
After instrumentation the file looks as below. Hence comment is lost..
import java.io.*;
import instrumentor.agent.java.PrfAgent;
class A
{
public static void main(String args[])
{
PrfAgent.writeToLog(2);
System.out.println("Vasanthi");
PrfAgent.writeToLog(-2);
}
}
Can you please let me know how to retain the comment in the instrumented
file.
Please reply
Thanks and regards
Vasanthi A
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address