[antlr-interest] adding extra keyword to java languages

tdknghi <nk.truong at student.qut.edu.au> nk.truong at student.qut.edu.au
Sat Jan 25 17:45:17 PST 2003


  Hi all,

I would like to modify the java grammar so that it will parse the 
following java program.

   public class A
   {
       public static void main(String[] args)
       {
           System.out.println("a");
           <gap>System.out.println("a gap");</gap>

       }
   }   
Do you have any idea how to do that? May you let me know.

Thanks.

Regards,
MiMi


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list