`zibib`: a simple library for parsing Bib(La)Tex files

Hi,

as already mentioned in the working on thread, I’m building a simple library for parsing Bib(La)Tex files. This is necessary for porting my main OSS project from Rust to Zig … one day.

Right now, the library is capable of parsing .bib files/strings and storing its content as a structured data set. Entry field values are not processed any further (E.g. extracting single authors from the string value etc.), but simply stored as []const u8 string.

If you like to, have a look:

https://codeberg.org/lukeflo/zibib

Since its very early state and only tested locally, there might be errors/mistakes/quirks I haven’t encountered so far. Feel free to open issues/PRs if you find some.

Info, since it is/has been a hot topic recently: No LLMs/AI has been used directly for this project. Neither as agent, nor for asking questions, prompting etc. Of course, I can’t rule out having read LLM-generated webcontent when searching for something.

4 Likes

Thanks for sharing, it’s always nice to read through some good ol’ meatware

Just a quick note that the tests are not compiling due to a entrys vs. entries typo.

A thank you, great catch. I just edited it an hour ago because entrys seems to be wrong English (no native speaker here) :smile:

Nice work. I like the badge on the project page, had not seen that before.