antlr / antlr4

ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.

Home Page:http://antlr.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to tell antlr c++ generator to create library export tokens?

Zeks opened this issue · comments

commented

So that instead of class ReportGrammarLexer it will generate class EXPORT_TOKEN ReportGrammarLexer ?
It's possible to do it with sed, but I remember grpc generator having an option like that so I am wondering if I am missing something.

You can specify your own macro. Read the C++ target documentation for details.