From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1338A44180; Fri, 7 Jun 2024 15:11:17 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 72D86427E5; Fri, 7 Jun 2024 15:11:14 +0200 (CEST) Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) by mails.dpdk.org (Postfix) with ESMTP id B9C1E427E5 for ; Fri, 7 Jun 2024 15:11:12 +0200 (CEST) Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-681953ad4f2so1691218a12.2 for ; Fri, 07 Jun 2024 06:11:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1717765872; x=1718370672; darn=dpdk.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Ur753WVMfiIrTipvSmB4uOijZiyBgbEWpNXvCHjjaVk=; b=hM3+Zt/tgGKjpuAe2SbWRw0kQi/lboxJExDrbQDuXZN/i3QH/GzjHvUtJ/RGsQlLdj oj7RqN/0npCfbi0sSn5Ka2w/7tDWLr06XFikquwvd6s6Tew/5U81ZjXgIFBiX0H7M4v2 9js7NfLP4hkndsahVp6Jj/GzznjtQrWSzJ5Zs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717765872; x=1718370672; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ur753WVMfiIrTipvSmB4uOijZiyBgbEWpNXvCHjjaVk=; b=cjlO6vL8j2w0X7+JYnu255XD8xrcsYkQUMo8Mw6Ea7gr5HZ7mMP73a3zRZOFjO6NIH QTNcbjSzFJsh3SBv0VNkXiKZo4sJyTcs5VEZsXxZLecCwQCU6MXbJDbLxzZmmpuV94g8 LqwNI2Osha60wTU3y0PAuZl5t3DhOY6oLqUfiXuoaLNB/ICspt5SDZkbUw0y06dWkFZv 4KSs6QkgPh69szgnqDbWNfUsHXyEMUla2BxVkt3Sq6ukAXCwOdgzSPEx5Y+Yu2C0HpF6 VLWnAldEptCvJgTZYE3qZ4tPXEwGOj5df+tFDec3fxdtvZ1+QKHikY7+2k3FZTv1D/Rx 5i0w== X-Gm-Message-State: AOJu0YwXk4ap2ix9gXhtGbiXpqv4ArUVwo9kV1AXOl/WUm7zDJoCYoeG ITnAYQNb/qrpmIhe2M3YsENtkHMpkmt9Ik//o/I+uelcUt7jWyrAxFdlHATdacbG4Mc4ZsGbHSE VNS+XqSv8tmC4ZwFnI9o6l394skma5KoRFVovmA== X-Google-Smtp-Source: AGHT+IGnqWlufMaum/V2c1m/mGV3mVRI9J+CYMXdAFTeRsxSxFaDT4sbbDYEHGUet04gCI0ABIZac3Y7kwn7GUg8GM8= X-Received: by 2002:a17:90a:fd8b:b0:2c2:3f34:e4eb with SMTP id 98e67ed59e1d1-2c2bcc6d12fmr2523842a91.36.1717765871917; Fri, 07 Jun 2024 06:11:11 -0700 (PDT) MIME-Version: 1.0 References: <20240412111136.3470304-1-luca.vizzarro@arm.com> <20240606213420.254260-1-luca.vizzarro@arm.com> <20240606213420.254260-4-luca.vizzarro@arm.com> In-Reply-To: <20240606213420.254260-4-luca.vizzarro@arm.com> From: Jeremy Spewock Date: Fri, 7 Jun 2024 09:11:00 -0400 Message-ID: Subject: Re: [PATCH v5 3/5] dts: add parsing utility module To: Luca Vizzarro Cc: dev@dpdk.org, =?UTF-8?Q?Juraj_Linke=C5=A1?= , Paul Szczepanek Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Thu, Jun 6, 2024 at 5:34=E2=80=AFPM Luca Vizzarro wrote: > > Adds parsing text into a custom dataclass. It provides a new > `TextParser` dataclass to be inherited. This implements the `parse` > method, which combined with the parser functions, it can automatically > parse the value for each field. > > This new utility will facilitate and simplify the parsing of complex > command outputs, while ensuring that the codebase does not get bloated > and stays flexible. > > Signed-off-by: Luca Vizzarro > Reviewed-by: Paul Szczepanek Reviewed-by: Jeremy Spewock