<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">For TEITOK, I wrote a syntax highlighting module in Javascript that parser the CQL using PEG, and then replaces input in an editable DIV using Misbehave; It gives syntactic parse errors from PEG indicating if/where the CQL is syntactically wrong, and then furthermore does a semantic check whether the pattributes and sattributes are defined for the corpus, and whether the token variables are defined in the query; all errors are shown below the CQL query box, and if there are no parsing error, the same status line shows a verbal deglossing of parts of the CQL query on mouseover.<div class=""><br class=""></div><div class="">Very little of this is specific for TEITOK, and could easily be plugged into any other online CWB interface (CQPWeb, Korp, Bwananet, ...), or in fact any other online interface using CQL (Manatee/Kontext, Corpuscle, BlackLab, …). So if anybody wants to do so, I can take out the relevant parts of the code and put it in a stand-alone Git repository - where I would have to make sure you can define the corpus patts and satts differently (in TEITOK, those are taken from a definition XML file), which would probably best be read from a registry file. </div><div class=""><br class=""></div><div class="">The module can be seen in action in this demo corpus: <a href="http://quest.ms.mff.cuni.cz/teitok-dev/teitok/mycorpus/index.php?action=cqp" class="">http://quest.ms.mff.cuni.cz/teitok-dev/teitok/mycorpus/index.php?action=cqp</a></div><div class=""><br class=""></div><div class="">The syntax is probably not fully complete, and there might still be some bugs, but overall it is fully functional. Any feedback is welcome of course.</div></body></html>