Add note on syndicate-nim to README

This commit is contained in:
Emery Hemingway 2023-04-05 20:05:42 -05:00
parent b7e1f2c8c7
commit a74b28cc6f
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,8 @@
Nim implementation of the [Preserves data language](https://preserves.dev/).
If you don't know why you need Preserves, see the [Syndicate library](https://git.syndicate-lang.org/ehmry/syndicate-nim).
## Library
To parse or produce Preserves one should write a [schema](https://preserves.dev/preserves-schema.html) and generate a Nim module using the [preserves_schema_nim](./src/preserves/preserves_schema_nim.nim) utility. This module will contain Nim types corresponding to schema definitions. The `toPreserve` and`fromPreserve` routines will convert Nim types to and from Preserves. The `decodePreserves`, `parsePreserves`, `encode`, and `$` routines will convert `Preserve` objects to and from binary and textual encoding.