for(; vl; vl=vl->next) {
if(doexpr) {
if(el == nil) {
- yyerror("missing expr in var dcl");
+ yyerror("missing expression in var declaration");
break;
}
e = el->n;
}
}
if(el != nil)
- yyerror("extra expr in var dcl");
+ yyerror("extra expression in var declaration");
return init;
}
vv = nil;
if(cl == nil) {
if(t != N)
- yyerror("constdcl cannot have type without expr");
+ yyerror("const declaration cannot have type without expression");
cl = lastconst;
t = lasttype;
} else {
for(; vl; vl=vl->next) {
if(cl == nil) {
- yyerror("missing expr in const dcl");
+ yyerror("missing value in const declaration");
break;
}
c = cl->n;
vv = list(vv, nod(ODCLCONST, v, N));
}
if(cl != nil)
- yyerror("extra expr in const dcl");
+ yyerror("extra expression in const declaration");
iota += 1;
return vv;
}