]> hydra-www.ietfng.org Git - dyna2/commit
Overhaul error message displays
authorTim Vieira <tim.f.vieira@gmail.com>
Wed, 3 Jul 2013 20:57:56 +0000 (16:57 -0400)
committerTim Vieira <tim.f.vieira@gmail.com>
Wed, 3 Jul 2013 20:57:56 +0000 (16:57 -0400)
commit64cb33934f572cd49a9de2cceff5cc8b935de83f
treecfe46bc94a65d2da7d4c528203ce0986de755ed0
parent60e558f31ab812dbab9a6ac5d017d73da67b3306
Overhaul error message displays

 - "pop-time": aggregation errors (e.g. two distinct values following into an
   `=` aggregator) are group by functor/arity, then by type and only 10
   instances are shown.

 - "push-time": errors are grouped by rule, then error type (e.g. TypeError,
   DivisionByZero), only 10 instances of the error are displayed.

 - These changes help avoid an overwhelming cascade of very similar
   errors. Users should be able to trace the sources of these errors using other
   tools (e.g. `trace`)

Resolve issue #36

Program rules available in $rule -- doesn't do anything yet however.

Tweaks to doctest runner.
examples/errors.dyna
src/Dyna/Backend/Python/defn.py
src/Dyna/Backend/Python/dyna-doctest.py
src/Dyna/Backend/Python/interpreter.py
src/Dyna/Backend/Python/load/sexpr.py
src/Dyna/Backend/Python/post/draw_circuit.py
src/Dyna/Backend/Python/post/trace.py
src/Dyna/Backend/Python/repl.py
src/Dyna/Backend/Python/stdlib.py
src/Dyna/Backend/Python/utils.py
test/repl/retract-rule.doctest