[antlr-interest] Multiline comments in ANTLR grammar
    Gavin Lambert 
    antlr at mirality.co.nz
       
    Wed Mar  7 12:45:49 PST 2012
    
    
  
At 02:01 8/03/2012, Ivan Brezina wrote:
 >I spotted curious issue, there must not be any multiline 
comment
 >between the grammar name and the options clause.
/** comments are treated specially (they're JavaDoc comments, and 
ANTLR tries to attach them to the generated methods).  As such, 
they're only really valid in a place where ANTLR is about to 
generate a method or class.  Before rules and grammar declarations 
are just such places; before a members block is not.
If you want to put in an arbitrary comment, use /* instead of /**.
    
    
More information about the antlr-interest
mailing list