MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / expr

Function expr

extern/tinyexpr/tinyexpr.c:487–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485
486
487static te_expr *expr(state *s) {
488 /* <expr> = <term> {("+" | "-") <term>} */
489 te_expr *ret = term(s);
490
491 while (s->type == TOK_INFIX && (s->function == add || s->function == sub)) {
492 te_fun2 t = s->function;
493 next_token(s);
494 ret = NEW_EXPR(TE_FUNCTION2 | TE_FLAG_PURE, ret, term(s));
495 ret->function = t;
496 }
497
498 return ret;
499}
500
501
502static te_expr *list(state *s) {

Callers 2

baseFunction · 0.85
listFunction · 0.85

Calls 2

termFunction · 0.85
next_tokenFunction · 0.85

Tested by

no test coverage detected