BNFC version: 2.9.6.3
Given the following grammar.cf file:
VQuery. Query ::= "hi" ;
comment ";" ;
entrypoints Query ;
running bnfc --cpp -o output-cpp grammar.cf gives a Parser.H file containing the following:
Query* pQuery(FILE *inp);
Query* pQuery(const char *str);
where the second function should be called psQuery rather than pQuery.
However, when running bnfc --c -o output-c grammar.cf the C backend gives the correct output:
Query pQuery(FILE *inp);
Query psQuery(const char *str);
BNFC version: 2.9.6.3
Given the following
grammar.cffile:running
bnfc --cpp -o output-cpp grammar.cfgives aParser.Hfile containing the following:where the second function should be called
psQueryrather thanpQuery.However, when running
bnfc --c -o output-c grammar.cfthe C backend gives the correct output: