Lua parser for DMS, a data syntax with strong typing, ordered maps, multi-line heredocs, and front-matter metadata.

$ luarocks install dms

DMS (Data Meta Syntax) is a strict, indent-based data syntax with
NFC-normalized strings, multi-line heredocs, polymorphic root, front
matter, and comment-AST preservation across decode / modify / re-encode.

This is the Lua port. Public API (SPEC v0.14):
dms.decode(src) -> body
dms.decode_document(src) -> { meta, body, comments, original_forms }
dms.encode(doc) -> DMS source string

The legacy names `dms.parse` / `dms.parse_document` / `dms.to_dms` are
kept as deprecated thin aliases for one release (each warns once).

Tier-0 conformance: 100% on the upstream conformance corpus
(~4695 fixtures).

Versions

0.5.1-13 hours ago0 downloads
0.5.0-18 hours ago1 download

Dependencies

lua >= 5.3

Manifests