Permalink
Browse files

temporarily expose the parse tree in the ui

  • Loading branch information...
obra committed Aug 8, 2012
1 parent 782f323 commit 837f04e060c822d1943bba4ee3dbb67e9be50afd
Showing with 3 additions and 0 deletions.
  1. +3 −0 app/scripts/main.js
View
@@ -17,6 +17,9 @@ function handleQuery() {
if (cmd === '')
return;
$("#conversation").append('<div class="user"><span class="yourname">You:</span> <span class="msg">'+cmd+'</span></div>');
+
+ reiSay("<pre>"+JSON.stringify(Rei.getTokens(cmd, null, '\t'))+"</pre>");
+
var response = Rei.handleQuery(cmd);
var best = response.bestResponse;
reiSay(best.message);

0 comments on commit 837f04e

Please sign in to comment.