Closed enedil closed 3 years ago
Thanks for reporting and the PR, @enedil! Is this also a problem with the C++ backends?
Thanks for reporting and the PR, @enedil! Is this also a problem with the C++ backends?
It doesn't, since Parser.H
includes vector
and string
, which transitively usually include lots of other standard headers. But that is not guaranteed. I can make this addition as well. Latest forced push also fixes the C++ version.
Thanks @enedil, this is now fixed on master
.
In the C backend, none of the generated headers include any header from standard library. This is wrong, as
Parser.h
usesFILE*
, which is defined instdio.h
. Thus,stdio.h
should be also included.BNFC version that I use: 2.9.1. OS: Fedora 34 BNFC distribution:
stack