X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Fparser%2Fanalyzer.c;h=ecae40f890c2842d82f92d701ab0a8e3137025f9;hp=f12dff2005a953d39910eec9ce8e026f67c4be95;hb=026ce2bb377f4055e3a0a1d20a2f91e5a73a49b0;hpb=5a53faeea89f0a24b113f6c273734808fdfccf31 diff --git a/src/parser/analyzer.c b/src/parser/analyzer.c index f12dff2..ecae40f 100644 --- a/src/parser/analyzer.c +++ b/src/parser/analyzer.c @@ -202,11 +202,6 @@ analyze_logical(context_t ctx, sdb_ast_op_t *op, sdb_strbuf_t *errbuf) static int analyze_arith(context_t ctx, sdb_ast_op_t *op, sdb_strbuf_t *errbuf) { - if (ctx.iter) { - op_error(errbuf, op, "cannot evaluate in iterator context"); - return -1; - } - if (analyze_node(ctx, op->left, errbuf)) return -1; if (analyze_node(ctx, op->right, errbuf))