In my yacc file I have the following code:
fun_declaration : type_specifier ID '(' params ')'
{$2->type = "function";
$2->args = params; }
params : param_list | VOID ;
Do you see what I'm trying to do?
args is a string. I'm trying to put the function parameters into this string. How to do that?