Lines Matching refs:noeval
135 static intmax_t assignment(int var, int noeval);
137 static intmax_t primary(int token, union yystype *val, int op, int noeval)
144 result = assignment(op, noeval);
154 return noeval ? val->val : lookupvarint(val->name);
162 return -primary(op, val, yylex(), noeval);
165 return !primary(op, val, yylex(), noeval);
168 return ~primary(op, val, yylex(), noeval);
174 static intmax_t binop2(intmax_t a, int op, int prec, int noeval)
185 b = primary(token, &val, yylex(), noeval);
190 b = binop2(b, op2, arith_prec(op), noeval);
194 a = noeval ? b : do_binop(op, a, b);
204 static intmax_t binop(int token, union yystype *val, int op, int noeval)
206 intmax_t a = primary(token, val, op, noeval);
212 return binop2(a, op, ARITH_MAX_PREC, noeval);
215 static intmax_t and(int token, union yystype *val, int op, int noeval)
217 intmax_t a = binop(token, val, op, noeval);
227 b = and(token, val, yylex(), noeval | !a);
232 static intmax_t or(int token, union yystype *val, int op, int noeval)
234 intmax_t a = and(token, val, op, noeval);
244 b = or(token, val, yylex(), noeval | !!a);
249 static intmax_t cond(int token, union yystype *val, int op, int noeval)
251 intmax_t a = or(token, val, op, noeval);
258 b = assignment(yylex(), noeval | !a);
266 c = cond(token, val, yylex(), noeval | !!a);
271 static intmax_t assignment(int var, int noeval)
278 return cond(var, &val, op, noeval);
281 return cond(var, &val, op, noeval);
283 result = assignment(yylex(), noeval);
284 if (noeval)