rochus-keller / EbnfStudio

EbnfStudio can be used to edit and analyze EBNF grammars.
GNU General Public License v2.0
62 stars 10 forks source link

Token.h missing in generated parsers #7

Open comp-sec-eng opened 2 months ago

comp-sec-eng commented 2 months ago

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 commented 2 months ago

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.