From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by dpdk.org (Postfix) with ESMTP id 2A7031B57F for ; Tue, 9 Oct 2018 17:11:49 +0200 (CEST) Received: by mail-pf1-f196.google.com with SMTP id c25-v6so1001693pfe.6 for ; Tue, 09 Oct 2018 08:11:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fhNqNq6EV3om4kEbl3ErGeLUnRpjy8T76lxTX7h9GHc=; b=gjP0D3Gwtp3wsFEvOOczT0extLbkUcy+DagqeBlFOiCQUlM5X+KUHzU4qpdP/8H0x2 f2uW7Tjhpmy6EQfKdITvX1nqeySIC5G5zyCN9hftm6SJMrfcxvWA1zoghhfabXqSYfZ5 875IfzLgxS1y1d4F95DqESe7BW0dWSgCOhg//VKf8K9lN/1PucHxvgCCk1vJPoy57C9p 7/2nuowGauCZwQiXgTvRRfw5JuAV072UyQ11i51ekg/GXYTaiGrGtY7VsWMakiosximA 2cAyBWTNUNAPsGYk82mTZOt5SDhgIgDJANYE1fbM7v3nqs7Y0vlAYwZ43xb5xWm3c0ev 92hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fhNqNq6EV3om4kEbl3ErGeLUnRpjy8T76lxTX7h9GHc=; b=YgXeJ1eSzgOS4+gtQeOHMVsSyFIK7sBLd4/kHfDA1dOx6ycnRp4oR/o5oJc5++yAHD 2Wasqcy7kIrXwOgbDdlf7ba4wVCMfrhKE+hJ8MLf9Vw/28MNfp52+DTKz24s+1G/0Kww essqqOw1pWIME8HnLbY0/D+zTLWUG+g2hcBNSjpXnYy/AzrpwVsp1kxubf76NKowlTH2 OSaPI2JPj9+rA5aKvVzHdwAt762QrSMn9AonSXt4Fh3cbxAJa8zFyMDFAR8M0uzrqhlM DWGfTLY6I1LAAX4ky8Sk+gq9g6ZtLVU1p82BRrgPQQJFGBXdsUbHAgARgVhYDgB/dans pD9Q== X-Gm-Message-State: ABuFfojyV7s0XdGRtzQRZrnlBVWyxxywBsC7lolLqNgR1fL1f2mBrsDf xHLsebJ3s8NVhmPzugyanb+HaWPpvC4= X-Google-Smtp-Source: ACcGV62IZ5X9K61G3vBE0yTQun4pfVC3WJ/L5cu0cWqax9PYYoG1Z1ZNuooRxesV0vO0yq2PZFjVTA== X-Received: by 2002:a62:24c3:: with SMTP id k64-v6mr31386663pfk.195.1539097908301; Tue, 09 Oct 2018 08:11:48 -0700 (PDT) Received: from xeon-e3 (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id s23-v6sm25739968pgg.67.2018.10.09.08.11.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Oct 2018 08:11:48 -0700 (PDT) Date: Tue, 9 Oct 2018 08:11:40 -0700 From: Stephen Hemminger To: Thomas Monjalon Cc: =?UTF-8?B?R2HDq3Rhbg==?= Rivet , dev@dpdk.org, ophirmu@mellanox.com, ferruh.yigit@intel.com, arybchenko@solarflare.com, olivier.matz@6wind.com, remy.horton@intel.com Message-ID: <20181009081140.5c977ad6@xeon-e3> In-Reply-To: <6562576.89BUxVsNiX@xps> References: <20181009021858.19216-1-thomas@monjalon.net> <20181009021858.19216-2-thomas@monjalon.net> <20181009141406.rle54bpq6ictu3zd@bidouze.vm.6wind.com> <6562576.89BUxVsNiX@xps> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH 1/4] kvargs: support list value X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Oct 2018 15:11:49 -0000 On Tue, 09 Oct 2018 16:31:24 +0200 Thomas Monjalon wrote: > 09/10/2018 16:14, Ga=C3=ABtan Rivet: > > Hi Thomas, > >=20 > > On Tue, Oct 09, 2018 at 04:18:55AM +0200, Thomas Monjalon wrote: =20 > > > 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. > > > =20 > >=20 > > Nice, I was actually planning to do this. > >=20 > > 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. =20 >=20 > 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? Or better yet go to real syntax like JSON.