On 09/10/2018 16:11, Stephen Hemminger wrote:
On Tue, 09 Oct 2018 16:31:24 +0200
[..]
This is getting complex enough that doing a real parser maybe necessary.
I thought the same thing back in April with the port representor patchsets. Quickly run out of things to use as delimiters otherwise.
Why not lex/yacc?
Think Yacc/Bison are vastly overcomplex and a bit of a pain to integrate. The sort of config grammar needed here will most likely be LL(1), so fairly easy to do by hand anyway.
Or better yet go to real syntax like JSON.