Switch to sqlite3's lemon parser generator.
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 15 Jun 2014 14:31:14 +0000 (16:31 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 15 Jun 2014 18:59:37 +0000 (20:59 +0200)
commitf3830138661374ca10fe6a0b6f2f4b949dea3e5c
tree22c1e28df47e02f941dba8160090186481941a0c
parent960dafd0b61eb14032d13c1562566618be55133f
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>
13 files changed:
.gitignore
CMakeLists.txt
ast.c [new file with mode: 0644]
ast.h [new file with mode: 0644]
contrib/lemon.c [new file with mode: 0644]
contrib/lempar.c [new file with mode: 0644]
lexer.c [new file with mode: 0644]
lexer.h [new file with mode: 0644]
lexer.l [deleted file]
main.c
matcher.c
matcher.h
parser.y