Adrian Cochrane on Nostr: To help parse its configuration file Python's FLIT packaging tool uses a vendored ...
To help parse its configuration file Python's FLIT packaging tool uses a vendored version of TomLi.
TomLi reads/decodes a file into memory & parses it char-by-char into a Python dictionary. Utilizing utility classes for nested dicts & parsing flags. Handwritten code resembles a pushdown automaton.
The major advantage of TomLi is that it parses values to more sophisticated datatypes, which may (for datetimes) be done via regexp.
1/1 Fin on Flit! Tomorrow: Ruffle AVM2!
TomLi reads/decodes a file into memory & parses it char-by-char into a Python dictionary. Utilizing utility classes for nested dicts & parsing flags. Handwritten code resembles a pushdown automaton.
The major advantage of TomLi is that it parses values to more sophisticated datatypes, which may (for datetimes) be done via regexp.
1/1 Fin on Flit! Tomorrow: Ruffle AVM2!