PoC query parser

With Jison PHP port
This commit is contained in:
Mathieu Darse
2014-08-13 14:22:06 +02:00
parent d21d7fdab5
commit 1fbddfec3e
7 changed files with 1117 additions and 1 deletions

View File

@@ -466,6 +466,14 @@ function initAnswerForm() {
},
success: function (datas) {
// DEBUG QUERY PARSER
var query = datas.parsed_query;
try {
query = JSON.parse(query);
}
catch (e) {}
console.log('Parsed Query:', query);
$('#answers').empty().append(datas.results).removeClass('loading');