s->u.lb.list = $2;
s->u.lb.block = NULL;
s->u.lb.id = $1;
+ s->lineno = yylineno;
$$ = s;
}
| TOK_ID list block
s->u.lb.list = $2;
s->u.lb.block = $3;
s->u.lb.id = $1;
+ s->lineno = yylineno;
$$ = s;
}
| TOK_ID block
s->u.lb.block = $2;
s->u.lb.list = NULL;
s->u.lb.id = $1;
+ s->lineno = yylineno;
$$ = s;
}
;
CLNode *node = g_new(CLNode,1);
node->type = CL_ID;
node->u.str = $1;
+ node->lineno = yylineno;
$$ = node;
}
| TOK_STRING
CLNode *node = g_new(CLNode,1);
node->type = CL_STR;
node->u.str = $1;
+ node->lineno = yylineno;
$$ = node;
}
| TOK_NUM
CLNode *node = g_new(CLNode,1);
node->type = CL_NUM;
node->u.num = $1;
+ node->lineno = yylineno;
$$ = node;
}
;