{ "&=", 2, opid2('&','='), ASSOC_RIGHT, 2, 0 },
{ "^=", 2, opid2('^','='), ASSOC_RIGHT, 2, 0 },
{ "|=", 2, opid2('|','='), ASSOC_RIGHT, 2, 0 },
+
+ { ",", 2, opid1(','), ASSOC_LEFT, 1, 0 }
};
static const size_t operator_count = (sizeof(operators) / sizeof(operators[0]));
goto onerr;
}
}
- else if (parser->tok == ',') {
- if (!shunt_ops_add(&sy, syparen(parser_ctx(parser), ','))) {
- parseerror(parser, "out of memory");
- goto onerr;
- }
- }
else if (parser->tok == ')') {
/* we do expect an operator next */
/* closing an opening paren */