Tokenizes and parses KDL documents into kuddle documents.
Summary
Types
A kuddle document is a list of Kuddle Nodes
A single node in the Kuddle document
Parsed tokens from the Tokenizer, these will be processed and converted into the final nodes for the document.
Functions
Tokenize and parse a given KDL document.
Same as decode/1, but will raise a Kuddle.DecodeError on error from decode.
Types
@type document() :: [document_node()]
A kuddle document is a list of Kuddle Nodes
@type document_node() :: Kuddle.Node.t()
A single node in the Kuddle document
@type tokens() :: Kuddle.V1.Tokenizer.tokens()
Parsed tokens from the Tokenizer, these will be processed and converted into the final nodes for the document.
Functions
Tokenize and parse a given KDL document.
If successful, it will return {:ok, document, tokens}, where document is the list of nodes that
were parsed and tokens are any unparsed tokens.
Same as decode/1, but will raise a Kuddle.DecodeError on error from decode.