settings: Add flex/bison based parser for strongswan.conf
authorTobias Brunner <tobias@strongswan.org>
Fri, 7 Mar 2014 16:21:19 +0000 (17:21 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 15 May 2014 09:28:06 +0000 (11:28 +0200)
commit1f669078ac781c1e9a01cebe15490db8edc8d21c
tree40072b8818c558b4e80602f7f7235a0caa707caa
parentf99d1f7ba55337e5f4fae96dfc97bd463ceea831
settings: Add flex/bison based parser for strongswan.conf

This parser features several improvements over the existing one.
For instance, quoted strings (with escape sequences), unlimited includes,
relaxed newline handling (e.g. at the end of files or before/after { and }),
and the difference between empty and unset values (key = vs. key = "").

It also complains a lot more about invalid syntax. The current one accepts
pretty odd stuff (like settings or sections without name) without any
errors or warnings.
src/libstrongswan/Android.mk
src/libstrongswan/Makefile.am
src/libstrongswan/settings/.gitignore [new file with mode: 0644]
src/libstrongswan/settings/settings_lexer.l [new file with mode: 0644]
src/libstrongswan/settings/settings_parser.y [new file with mode: 0644]