starter: Add new bison/flex based parser for ipsec.conf

The parser simply returns key/value pairs of all sections, it already
resolves also= and allows overriding options in all included sections
(not only %default), options set in included section can also be cleared
again (key=).
It provides other improvements too, like quoted strings (with escape
sequences), unlimited includes and better whitespace/comment handling.
This commit is contained in:
Tobias Brunner
2014-06-19 14:00:48 +02:00
parent 4ef86a849b
commit f609682e5d
7 changed files with 1257 additions and 12 deletions
+3
View File
@@ -1,4 +1,7 @@
starter
parser/lexer.c
parser/parser.[ch]
parser/parser.output
lexer.c
parser.h
parser.c