smokku / hocon-zig

HOCON configuration files parser in Zig

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hocon-zig

Library providing Zig support for the HOCON configuration file format.

Parser is based on Serge Zaitsev's jsmn JSON parser.

Spec Coverage

https://github.com/lightbend/config/blob/master/HOCON.md

  • parsing JSON
  • comments
  • omit root braces
  • key-value separator
  • commas are optional if newline is present
  • whitespace
  • duplicate keys and object merging
  • unquoted strings
  • multi-line strings
  • value concatenation
  • object concatenation
  • array concatenation
  • path expressions
  • path as keys
  • substitutions
  • includes
  • conversion of numerically-indexed objects to arrays
  • allow URL for included files
  • duration unit format
  • period unit format
  • size unit format

License

This software is distributed under 0BSD license, so feel free to integrate it in your commercial products.

About

HOCON configuration files parser in Zig

License:BSD Zero Clause License


Languages

Language:Zig 100.0%