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

Token.h missing in generated parsers #7

Open
comp-sec-eng opened this issue Apr 27, 2024 · 1 comment
Open

Token.h missing in generated parsers #7

comp-sec-eng opened this issue Apr 27, 2024 · 1 comment

Comments

@comp-sec-eng
Copy link

The C++ parser cannot be compiled as Token.h is missing in the generated output files. But is included as a header in the generated files. Any fixes..

@rochus-keller
Copy link
Owner

Have a look how it is done e.g. here: https://github.com/rochus-keller/ActiveOberon/. The Ao.ebnf has this declaration: %namespace ::= 'Ao' which causes a prefix for the expected file names, such as Token.h. The latter has be provided by the implementation; you can e.g. take the one from ActiveOberon and modify it according to your needs.

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