Sto cercando di includere una struttura come parte dell'unione con Bison, ma ottengo un errore sul 'struct nodo args' in% union:Includi struct nel DEF% unione con Bison/Yacc
parser.y:17: error: field ‘args’ has incomplete type
Il Codice:
struct node {
char * val;
struct node * next;
};
%}
%union {
char * string;
struct node args;
}
%token <string> CD WORD PWD EXIT
%type <args> arg_list
Qualcuno sa che cosa sto facendo male?