Skip to content

Releases: katydid/parser

Cleanup docs of second parser design

16 Jun 13:53

Choose a tag to compare

Cleanup docs of second parser design

Second parser design: Next, Skip, Token

16 Jun 13:52

Choose a tag to compare

Methods

Next : () -> (Hint | error | EOF)
Skip : () -> (error | EOF)?
Token: () -> ((Kind, value) | error)

Hint

* '[': List Opened
* ']': List Closed
* '{': Map Opened
* '}': Map Closed
* 'k': Map Key
* 'v': Map Value or List Element, that is not an Object or List.

Kind

* '_': Null
* 't': True
* 'f': False
* 'x': Bytes (Bytes)
* '"': String (String)
* '-': Int64 (Int64)
* '.': Float64 (Float64)
* '/': Decimal (String)
* '9': Nanoseconds (Int64) (used for duration and time)
* 'T': Date Time ISO 8601 (String)
* '#': Custom Tag (String)