My bison file contains the action in Grammar rules.
This action will call the functions declared at the end of the bison.
However your library doesn't handle it, what can I do to fix it?
Functions declared at the end of the bison file are necessary for business logic.
CMD_LINE_RR :
CMD_TOKEN_RR LT_INTVAL LT_COMMA LT_TEXT_EX LT_RETURN
{
_CMD_START("CMD_LINE_RR(0)");
cmd_rr(cmd_line , $2, $4, "", "", "", "", "", "", "", "", "" );
next_cmd();
}
|CMD_TOKEN_RR LT_INTVAL LT_COMMA LT_INTVAL LT_COMMA LT_INTVAL LT_COMMA LT_INTVAL LT_COMMA LT_INTVAL LT_COMMA LT_INTVAL LT_COMMA LT_INTVAL LT_COMMA LT_INTVAL LT_COMMA LT_INTVAL LT_COMMA LT_INTVAL LT_COMMA LT_INTVAL LT_RETURN
{
_CMD_START("CMD_LINE_RR(1)");
cmd_rr(cmd_line , $2, $4, $6, $8, $10, $12, $14, $16, $18, $20, $22 );
next_cmd();
}
|CMD_TOKEN_RR LT_INTVAL LT_COMMA LT_INTVAL LT_COMMA LT_INTVAL LT_COMMA LT_INTVAL LT_COMMA LT_INTVAL LT_COMMA LT_INTVAL LT_COMMA LT_INTVAL LT_COMMA LT_INTVAL LT_COMMA LT_INTVAL LT_RETURN
{
_CMD_START("CMD_LINE_RR(2)");
cmd_rr(cmd_line , $2, $4, $6, $8, $10, $12, $14, $16, $18, "", "" );
next_cmd();
}
;
int _CMD_START(char *s){
#ifdef DEBUG
printf("[%s][Line:%04d](+_+)%s\n",__FUNCTION__,__LINE__,s);
#endif
return 0;
}
My bison file contains the action in Grammar rules.
This action will call the functions declared at the end of the bison.
However your library doesn't handle it, what can I do to fix it?
Functions declared at the end of the bison file are necessary for business logic.
Sample Grammar rule:
Sample c code(function):