Releases: katydid/parser
Releases · katydid/parser
Cleanup docs of second parser design
Cleanup docs of second parser design
Second parser design: Next, Skip, Token
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)