Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Zeks opened this issue Feb 7, 2024 · 1 comment
Open

Comments

@Zeks
Copy link

Zeks commented Feb 7, 2024

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.

@mike-lischke
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants