change tokenstream during parsing

14 views
Skip to first unread message

Yuqi Li

unread,
Jul 20, 2017, 5:16:46 AM7/20/17
to antlr-discussion
Recently, I'm trying to parse usql language using antlr4. I want to call some function which can check whether I need to change the current token or not (maybe it's end of an expression, so I need to add end_lexer to tokenstream) during parsing grammar. Can I do things like this?

Thanks a lot
Reply all
Reply to author
Forward
0 new messages