TOML Fortran 0.3.0 released#

Features spotlight

This release comes with a new backend for the deserialization of TOML documents, making the parser more robust against unclosed inline tables and arrays. Furthermore, a context can now be captured which allows reporting messages like errors as annotations in TOML document, making both the default errors produced by the parsers more useful and also enabling users of TOML Fortran to create consistently formatted reports. Together with the refactoring of the internal representation for storing TOML values, the low-level interface to TOML values becomes more consistent and easier to use. A long-standing issue with supporting Unicode escape sequences in strings has been resolved and TOML Fortran now fully supports all TOML 1.0.0 escape sequences.

The high-level interface to the TOML data structures has been extended to return origin information for each access, which can be used together with the context captured while parsing for better error reporting. An additional set of interfaces was added allowing easier access to deeply nested values by internally transversing the data structure, rather than requiring the user to do it manually. Similarly, whole arrays can now be retrieved directly into a one-dimensional allocatable array.

Many thanks to Kjell Jorner (@kjelljorner), Emily Kahl (@emilyviolet), Asdrubal Lozada-Blanco (@aslozada) and Daniel Mejia-Rodriguez (@dmejiar) for contributing to this release.

TOML Fortran is looking for support!

If you are interested in contributing to the project, please checkout the repository, or reach out in toml-f#62 to the current maintainer.

Full changelog#

Full commit history available at v0.2.3…v0.3.0. For release artifacts, like source distributions, checkout v0.3.0.

Library changes#

  • Improve lexing and parsing of TOML documents (toml-f#88)

  • Refactoring of internal storage and encoding structure (toml-f#93)

  • Allow choice of merge policy and remove context from merged data (toml-f#94)

  • Support for Unicode escape sequences (toml-f#100)

  • Allow fetching of nested values using a key path (toml-f#104)

  • Add whole array setters and getters to build interface (toml-f#79)

Repository Maintenance#

  • Use proper upstream for test-drive (toml-f#58)

  • Update README, documentation workflow and validation suite (toml-f#73)

  • Update install-mod.py to use python3 (toml-f#60)

  • Update CI workflow (toml-f#87)

Documentation Updates#

  • Add tutorial on creating a linter (toml-f#88)

  • Add tutorial on writing a custom JSON lexer (toml-f#93)

  • Update documentation (toml-f#78, toml-f#80)

  • Add recipe for handling an array of tables (toml-f#82)

  • Added recipe for reading elements of an array, with error checking (toml-f#81)

  • Update German translation (toml-f#95)

  • Spanish translation/Traducción al español (toml-f#86)

  • Add recipe on date time compatibility with other libraries (toml-f#103)