forked from Crockan/MercuryToolbox
chore(release): prepare public source release
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# ISON Fixtures
|
||||
|
||||
These fixtures track the public examples on https://ison.dev/: `table.<name>`
|
||||
block syntax for ISON and `object.<name>|fields|values` line records for ISONL.
|
||||
The local v1 implementation covers deterministic JSON object and JSONL record
|
||||
roundtrips without adding a Node, TypeScript, or external runtime dependency.
|
||||
@@ -0,0 +1,4 @@
|
||||
table.users
|
||||
id:int name:str active:bool
|
||||
1 Ada true
|
||||
2 Bob false
|
||||
@@ -0,0 +1,2 @@
|
||||
object.record|id:int name:str active:bool|1 Ada true
|
||||
object.record|id:int name:str active:bool|2 Bob false
|
||||
@@ -0,0 +1 @@
|
||||
{"users":[{"id":1,"name":"Ada","active":true},{"id":2,"name":"Bob","active":false}]}
|
||||
@@ -0,0 +1,15 @@
|
||||
# TONL v1 fixture assumptions
|
||||
|
||||
These fixtures define Mercury Toolbox's Rust-native TONL v1 surface for tests
|
||||
and examples.
|
||||
|
||||
The representation is JSON-backed and line-oriented:
|
||||
|
||||
- A document object is written as `key = <JSON value>` per non-empty line.
|
||||
- Record streams are separated by `---`.
|
||||
- Lines beginning with `#` are comments.
|
||||
- Values after `=` must be valid JSON literals, arrays, or objects.
|
||||
- Non-object root values are represented by the reserved `$ = <JSON value>` key.
|
||||
|
||||
This keeps TONL deterministic, streamable, and easy to convert to and from JSON
|
||||
or JSONL without a Node/TypeScript runtime.
|
||||
@@ -0,0 +1,3 @@
|
||||
# Invalid because TONL values must be JSON values.
|
||||
name = "Ada"
|
||||
score = not-json
|
||||
@@ -0,0 +1,2 @@
|
||||
{"id":"user-1","name":"Ada","active":true,"score":42}
|
||||
{"id":"user-2","name":"Bob","active":false,"score":7}
|
||||
@@ -0,0 +1,11 @@
|
||||
# TONL v1 stream fixture: records separated by ---.
|
||||
---
|
||||
id = "user-1"
|
||||
name = "Ada"
|
||||
active = true
|
||||
score = 42
|
||||
---
|
||||
id = "user-2"
|
||||
name = "Bob"
|
||||
active = false
|
||||
score = 7
|
||||
@@ -0,0 +1 @@
|
||||
{"id":"user-1","name":"Ada","active":true,"score":42,"tags":["math","logic"],"meta":{"city":"London"}}
|
||||
@@ -0,0 +1,7 @@
|
||||
# TONL v1 fixture: JSON-backed key/value lines.
|
||||
id = "user-1"
|
||||
name = "Ada"
|
||||
active = true
|
||||
score = 42
|
||||
tags = ["math","logic"]
|
||||
meta = {"city":"London"}
|
||||
@@ -0,0 +1,3 @@
|
||||
name:"Ada"
|
||||
profile:
|
||||
city:"London"
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "Ada",
|
||||
"active": true,
|
||||
"score": 42,
|
||||
"tags": ["math", "logic"],
|
||||
"profile": {
|
||||
"city": "London",
|
||||
"year": 1843
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
name:"Ada"
|
||||
active:true
|
||||
score:42
|
||||
tags:["math","logic"]
|
||||
profile:{"city":"London","year":1843}
|
||||
@@ -0,0 +1,2 @@
|
||||
{"name":"Ada","score":10,"active":true}
|
||||
{"name":"Bob","score":11,"active":false}
|
||||
@@ -0,0 +1,3 @@
|
||||
@(2):name,score,active
|
||||
Ada,10,true
|
||||
Bob,11,false
|
||||
Reference in New Issue
Block a user