我正在使用flex/bison开发编译器。在构建输出中,我遇到了以下警告:
警告:默认操作上出现类型冲突('s' '')
请问有什么帮助吗?
%{
#include "parser.h"
%}
%type <val> expr
%token <tptr> ID
expr : ID;
warning: type clash ('tptr' 'val') on default action
foo.by:10.12:warning: type clash on default action : <tptr> != <val>
expr : ID { $$ = some_conversion_code($1); }