I am developing an html/javascript app which allows users to search in a local database.
I would like to support very advanced search queries like:
abc | “def ghi” !jkl
I need to parse this kind of complex expressions in order to build the corresponding SQL query.
So, what I am looking for is a flexible parser written in javascript and it should let me define my expression grammar.
Jison is a JavaScript parser generator, written in JavaScript.
And yes, it is really flexible and lets you define your own grammar.