摘要:
YACCyacc $$ translate relation===============================================================================bintree.y:22:5: warning: passing argument 2 of ‘bintree’ makes pointer from integer without a cast [enabled by default] | IF '(' cond_expr ')' statement ELSE statement { $$ = 阅读全文
posted @ 2014-04-01 17:43
Peaceful-蓝蓝的
阅读(233)
评论(0)
推荐(0)
摘要:
YACC:每个归约后yacc 都执行默认动作,在运行任何明确的动作代码之前,将值$1 赋介$$.下面是从这个语法中生成的 y.tab.h:#define NAME 257#define NUMBER 258#define UMINUS 259typedef union {double dval;int vblno;}YYSTYPE;extern YYSTYPE yylval;$$ 's type how can we know the action in yacc, $1... parameters of the function make the action consisty. 阅读全文
posted @ 2014-04-01 16:28
Peaceful-蓝蓝的
阅读(130)
评论(0)
推荐(0)

浙公网安备 33010602011771号