[PATCH v5 3/5] dts: add parsing utility module

Jeremy Spewock jspewock at iol.unh.edu
Fri Jun 7 15:11:00 CEST 2024


On Thu, Jun 6, 2024 at 5:34 PM Luca Vizzarro <luca.vizzarro at arm.com> 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 <luca.vizzarro at arm.com>
> Reviewed-by: Paul Szczepanek <paul.szczepanek at arm.com>

Reviewed-by: Jeremy Spewock <jspewock at iol.unh.edu>


More information about the dev mailing list