trunk
Branches trunk Tags v0.1.0
1 Branches 1 Tags
Go to file T
Code

fgof-toml

TOML parsing helpers for modern Fortran.

fgof-toml is a small standalone library for reading configuration and theme files in tools that are part of the FortranGoingOnForty ecosystem.

Status

Sprint 05 has started.

Current slice:

  • toml_document, toml_value, toml_table, toml_array, and toml_error
  • parse_string and parse_file
  • dotted-path document queries for strings, integers, floats, booleans, tables, and arrays
  • common TOML values: strings, integers, floats, booleans, arrays, inline tables, key/value pairs, dotted keys, and standard table headers
  • strict lowercase TOML keywords for booleans and special floats (inf, nan)
  • multiline arrays with comments and trailing commas
  • array-of-tables, including nested array-of-tables under the latest parent entry
  • basic and literal multiline strings, including unicode escape handling for basic strings
  • local dates, local times, local datetimes, and offset datetimes stored as datetime values
  • duplicate key, table redefinition, inline table mutation, and scalar collision errors with source line and column
  • curated valid/invalid TOML corpus coverage for common config and theme shapes
  • external toml-test TOML v1.0 valid/invalid parser subset coverage

Still pending for full TOML v1.0 coverage:

  • full upstream toml-test decoder harness with tagged JSON semantic comparison

Build And Test

cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
ctest --test-dir build

With fpm:

fpm test

License

MIT