]> hydra-www.ietfng.org Git - dyna2/commit
First-pass at a REPL
authorTim Vieira <tim.f.vieira@gmail.com>
Sat, 1 Jun 2013 03:21:49 +0000 (23:21 -0400)
committerTim Vieira <tim.f.vieira@gmail.com>
Sat, 1 Jun 2013 03:21:49 +0000 (23:21 -0400)
commitd2796b0618e5a41bdaac6bb1729811600fa147ae
tree1d5019542d3a4e225da319a7189ef0e978c277d6
parent73076f71b82faea3b57a4a08dbdc27bd9dd2bb3a
First-pass at a REPL

 - user can add new rules (LIMITATIONS: no retracting rules; no queries yet.)

    - new rules check for aggregator conflict.

 - only shows the user what changed as a result of the new rule. rather than
   dumping the entire chart. The chart isn't dumped every time we hit go().

Nicer chart pretty printing (only relevant to sets or lists of items), which is
only experimental.

Reverted Wes' changes to eval it seems like the change was not tested. Sorry Wes.

Nicer formatting for tracing messages. Tracing is no longer printed to
stderr. by defualt, it goes to /tmp/dyna.log (there is a cmdline option to
change that; there is also commands in the REPL "trace on" and "trace off").
src/Dyna/Backend/Python/Backend.hs
src/Dyna/Backend/Python/interpreter.py