byteparsing: a functional parser combinator for mixed ASCII/binary data

Johan Hidding, Pablo Rodríguez‐Sánchez · The Journal of Open Source Software · 2023

Byteparsing is a functional parser combinator for Python.It was originally motivated by the problem of parsing OpenFOAM files.OpenFOAM 1 is a free, open source computational fluid dynamics software package whose input and output files contain both ASCII and binary data.Other common formats combining ASCII and binary are PLY triangle data or PPM images 2 .This makes them particularly hard to parse using traditional tools.Byteparsing is a flexible tool capable of dealing with generic formats.

Read the paper · More papers on PaperTik