summaryrefslogtreecommitdiff
path: root/matcher.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2014-06-15 16:31:14 +0200
committerJo-Philipp Wich <jow@openwrt.org>2014-06-15 20:59:37 +0200
commitf3830138661374ca10fe6a0b6f2f4b949dea3e5c (patch)
tree22c1e28df47e02f941dba8160090186481941a0c /matcher.c
parent960dafd0b61eb14032d13c1562566618be55133f (diff)
downloadjsonpath-f3830138661374ca10fe6a0b6f2f4b949dea3e5c.tar.gz
Switch to sqlite3's lemon parser generator.
This commit drops the flex + bison code in favor to a hand-written lexer and a new grammar file in lemon syntax. The change results in a much smaller binary and easier to maintain code. Code required to build and maintain the AST has been split off into the ast.c and ast.h files. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'matcher.c')
-rw-r--r--matcher.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/matcher.c b/matcher.c
index a76fc13..7fb6d02 100644
--- a/matcher.c
+++ b/matcher.c
@@ -14,6 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include "parser.h"
#include "matcher.h"
static struct json_object *