]> hydra-www.ietfng.org Git - dyna2/commit
added `mean=` aggregator.
authorTim Vieira <tim.f.vieira@gmail.com>
Mon, 1 Jul 2013 21:12:53 +0000 (17:12 -0400)
committerTim Vieira <tim.f.vieira@gmail.com>
Mon, 1 Jul 2013 21:12:53 +0000 (17:12 -0400)
commit212942f7e8732abc952b34df1a13384bf5b0153d
tree3ca3fb403cd5dd9b7ab87b570d20cbe565dcbc32
parent1ae2309954ddc9e74ffd11f153b32a341d63a7de
added `mean=` aggregator.

`set=` and `bag=` aggregators return dyna lists. So we can use the results in
other rules.

make sure we show changes when we `retract_rule`

when we show changes we print a header

    > a += 1.

    Changes
    =======
    a = 1.

Also, pycall translates python and dyna lists.

Fixed formatting of lists, strings are double quoted.

Fixed `query [A|_] is [1,2,3]` -- we weren't substituting `A`.
src/Dyna/Backend/Python/Backend.hs
src/Dyna/Backend/Python/defn.py
src/Dyna/Backend/Python/repl.py
src/Dyna/Backend/Python/stdlib.py
src/Dyna/Backend/Python/term.py
src/Dyna/Backend/Python/utils.py
test/repl/aggregator-conflict.expect
test/repl/late-aggregator-assignment.expect
test/repl/retract-rule.expect