Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iddev5/inon
:floppy_disk: Data serialization format in Zig
https://github.com/iddev5/inon
data-format serialization zig ziglang
Last synced: 3 months ago
JSON representation
:floppy_disk: Data serialization format in Zig
- Host: GitHub
- URL: https://github.com/iddev5/inon
- Owner: iddev5
- License: mit
- Created: 2021-08-03T17:38:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-05-24T06:42:47.000Z (9 months ago)
- Last Synced: 2024-08-04T04:07:33.720Z (6 months ago)
- Topics: data-format, serialization, zig, ziglang
- Language: Zig
- Homepage:
- Size: 169 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zig - inon๐๏ธData serialization format in Zig
README
# inon
Data configuration format in Zig- Simple human-readable data serialization format
- Function execution capabilties: both native as well as foreign
- Operates on Zig's standard types
- Fast, powerful serialization and deserialization
- Pretty printing and serialization to JSON capabilities# Example file
```
first_name: "joe"
last_name: "some {first_name} thing"
age: 50
address: {
street_no: switch %{
(= age 30): 420
(= age 40): 40
(= age 50): 50
else: 70
}
num: * (self "street_no") 2
city: "nyc"
}
phone_nos: [100, 200, 300]
second_no: index phone_nos 1
```See [``demo.zig``](demo.zig) file for integration example.
Use [``repl.zig``](repl.zig), using ``zig build run-repl`` for a REPL-environment.# License
This library is licensed under MIT License.
See [LICENSE](LICENSE) for more info.