How to solve Bison warning “… has no declared type”
The union (%union) defined is not intended to be used directly. Rather, you need to tell Bison which member of the union is used by which expression. This is done with the %type directive. A fixed version of the code is: %{ #include <iostream> int yylex(); void yyerror(const char*); %} %union { char name[100]; int … Read more