09/10/2018 17:11, Stephen Hemminger: > On Tue, 09 Oct 2018 16:31:24 +0200 > Thomas Monjalon <tho...@monjalon.net> wrote: > > > 09/10/2018 16:14, Gaëtan Rivet: > > > Hi Thomas, > > > > > > On Tue, Oct 09, 2018 at 04:18:55AM +0200, Thomas Monjalon wrote: > > > > If a value contains a comma, rte_kvargs_tokenize() will split here. > > > > In order to support list syntax [a,b] as value, an extra parsing of > > > > the square brackets is added. > > > > > > > > > > Nice, I was actually planning to do this. > > > > > > I think it could be useful to also support () and {}, as well as > > > recursive lists, but it is best to have a first version to support > > > representor and go from this. > > > > Yes, we have no usage of () and {} so far. > > This is getting complex enough that doing a real parser maybe necessary. > Why not lex/yacc?
I don't know how much it fits with our needs for devargs. > Or better yet go to real syntax like JSON. JSON is not suitable for one-line string as devargs.