(Java + ANTLR4) Control whether to skip a pattern?

19 views
Skip to first unread message

Olivia Nelson

unread,
Oct 31, 2017, 1:55:34 AM10/31/17
to antlr-discussion
I have a syntax like the following

COMMENT: '#' ~([\n\r])*  -> skip;

I'd like to add an option on whether to skip the `COMMENT` part, is that possible?

I'm using Java
Reply all
Reply to author
Forward
0 new messages