Michael Bedward wrote:
2009/2/20 Jim Idle wrote:
  
COMMENT : '#'
                         (
                              ( 'ABCD')=> 'ABCD'
                            | ~('\r' | '\n')* NEWLINE
                         )
                         { $channel = HIDDEN; }
                      ;

NEWLINE     : '\r' ('\n')? | '\n';

    

Mmmm... I tried that one after seeing Joe's previous message, but
doesn't it have the same problem ?  ie. it will eats a line:
    #ABCD foo
...as a comment ?  Does for me in ANTLRWorks.  I must be missing something...
  

Shouldn't do - you are using the debug mode and not the interpreting mode?

Jim

--~--~---------~--~----~------------~-------~--~----~
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

Reply via email to