aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2020-10-27Add model validationDavid Robillard2-0/+881
2020-10-27Add modelDavid Robillard12-2/+1598
2020-10-27Add function to SerdSink for freeing opaque handleDavid Robillard2-3/+12
This can be used to associate dynamically allocated data with a sink and have it managed along with the sink's lifetime.
2020-10-27Use consistent naming for function typesDavid Robillard3-12/+12
2020-10-27Add extensible logging APIDavid Robillard6-50/+178
2020-10-27Use public sink interface in readerDavid Robillard3-18/+13
2020-10-27Rename SerdStyle to SerdWriterFlagsDavid Robillard2-30/+30
2020-10-27Rename SerdType to SerdNodeTypeDavid Robillard4-17/+24
The old name has become ambiguous with the expanded scope of serd.
2020-10-27Clean up and expose base64 implementationDavid Robillard2-16/+19
2020-10-27Expose the node cache in the worldDavid Robillard1-0/+6
2020-10-27Remove serd_env_foreach()David Robillard1-10/+0
This is not particularly useful except to write prefixes, which is what serd_env_write_prefixes is for, and the name implies that namespace prefixes are the only thing in an Env, which will be problematic in the future.
2020-10-27Add serd_env_write_prefixes()David Robillard1-0/+9
2020-10-27Add serd_node_compare()David Robillard1-0/+19
2020-10-27Simplify reader stack pushing codeDavid Robillard1-8/+10
2020-10-27Ensure serd_new_resolved_uri returns an absolute URI or NULLDavid Robillard2-7/+14
2020-10-27Use simpler names for statement flagsDavid Robillard2-21/+19
2020-10-27Simplify streaming API and improve pretty printingDavid Robillard3-159/+221
This removes the obligation from the caller to correctly maintain flags to describe the current anonymous context, instead making the writer handle this itself as much as possible. Flags remain for the cases the writer can not infer from context: the start of anonymous subject and object nodes.
2020-10-27Cache commonly used nodes in the worldDavid Robillard3-14/+32
2020-10-27Add SerdNodes class for storing a cache of nodesDavid Robillard3-1/+145
2020-10-27Add serd_env_copy() and serd_env_equals()David Robillard1-0/+36
2020-10-27Separate ByteSink from WriterDavid Robillard2-11/+12
2020-10-27Expose SerdByteSink in public APIDavid Robillard2-5/+104
2020-10-27Remove serd_reader_set_default_graph()David Robillard2-17/+1
2020-10-27Add zix data structures for use in modelDavid Robillard7-0/+1686
2020-10-27Simplify writer style optionsDavid Robillard2-21/+8
2020-10-27Avoid writing invalid prefixed name prefixesDavid Robillard1-1/+2
2020-10-27Separate style enum from style flags typesDavid Robillard2-22/+22
2020-10-27Automatically finish reader on destructionDavid Robillard1-0/+1
2020-10-27Make SerdSink opaqueDavid Robillard5-8/+90
2020-10-27Simplify SerdEnv APIDavid Robillard3-34/+84
2020-10-27Add cursor to statementDavid Robillard4-3/+14
This allows the file and position of statements to be used in sinks, for example for more helpful error reporting outside the parser.
2020-10-27Add SerdCursor to public APIDavid Robillard7-37/+157
2020-10-27Remove escape parameter from serd_new_file_uriDavid Robillard2-3/+3
Since characters are escaped because they are not valid characters in a URI, any use of this function without escaping is problematic at best.
2020-10-27Shorten node constructor namesDavid Robillard5-82/+153
2020-10-27Make statement sink take a statement rather than nodesDavid Robillard3-23/+23
This makes the interface more extensible, towards associating more information with statements. The serd_sink_write_nodes wrapper remains so that user code does not need to allocate in order to write statement.
2020-10-27Add sink interfaceDavid Robillard1-0/+62
2020-10-27Add SerdStatementDavid Robillard2-0/+80
2020-10-27Expand datatype of literal nodes in serd_env_expand_nodeDavid Robillard1-1/+12
2020-10-27Move syntax name/extension utilities to public APIDavid Robillard2-50/+72
2020-10-27Move SerdField to public APIDavid Robillard1-46/+40
2020-10-27Improve reader error handlingDavid Robillard1-33/+38
2020-10-27Remove unnecessary parameterDavid Robillard1-8/+8
2020-10-27Set flags directly when reading literal nodesDavid Robillard1-51/+32
2020-10-27Improve push_byte() performanceDavid Robillard1-4/+4
2020-10-27Add debug checks for node paddingDavid Robillard2-8/+36
2020-10-27Zero node padding before passing to reader sinksDavid Robillard5-2/+39
2020-10-27Remove datatype and language from reader contextDavid Robillard2-26/+14
2020-10-27Simplify stack management by popping in bulk at higher levelsDavid Robillard4-98/+51
Since all memory used by the reader is POD in the stack, there is no benefit to forcing code to explicitly pop everything pushed to the stack, since any function can record an offset and pop back down to it regardless of what its callers pushed if it knows that it does not need those items.
2020-10-27Use a fixed-size reader stackDavid Robillard7-180/+219
This improves performance, and makes the reader more suitable for embedded or network-facing applications, at the cost of requiring the user to specify a maximum stack size.
2020-10-27Set datatypes on integer, decimal, and base64 nodesDavid Robillard2-27/+90