aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-10-27Remove serd_env_foreach()David Robillard3-21/+4
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 Robillard2-0/+16
2020-10-27Simplify reader test sinkDavid Robillard1-34/+29
2020-10-27Add serd_node_compare()David Robillard2-0/+30
2020-10-27Add stack overflow testsDavid Robillard2-0/+71
2020-10-27Simplify reader stack pushing codeDavid Robillard1-8/+10
2020-10-27Ensure serd_new_resolved_uri returns an absolute URI or NULLDavid Robillard3-8/+17
2020-10-27Use simpler names for statement flagsDavid Robillard3-26/+24
2020-10-27Simplify streaming API and improve pretty printingDavid Robillard9-169/+326
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 Robillard7-2/+309
2020-10-27Add serd_env_copy() and serd_env_equals()David Robillard3-0/+69
2020-10-27Separate ByteSink from WriterDavid Robillard4-18/+26
2020-10-27Expose SerdByteSink in public APIDavid Robillard5-5/+148
2020-10-27Remove serd_reader_set_default_graph()David Robillard4-38/+3
2020-10-27Add zix data structures for use in modelDavid Robillard9-0/+1688
2020-10-27Add rooted URI resolution testDavid Robillard1-1/+2
2020-10-27Simplify writer style optionsDavid Robillard6-32/+41
2020-10-27Avoid writing invalid prefixed name prefixesDavid Robillard1-1/+2
2020-10-27Separate style enum from style flags typesDavid Robillard4-25/+30
2020-10-27Automatically finish reader on destructionDavid Robillard2-0/+6
2020-10-27Make SerdSink opaqueDavid Robillard9-35/+175
2020-10-27Simplify SerdEnv APIDavid Robillard5-82/+119
2020-10-27Add cursor to statementDavid Robillard5-3/+21
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 Robillard13-47/+301
2020-10-27Remove escape parameter from serd_new_file_uriDavid Robillard4-16/+12
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 Robillard8-181/+305
2020-10-27Make statement sink take a statement rather than nodesDavid Robillard6-58/+42
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 Robillard3-0/+123
2020-10-27Add SerdStatementDavid Robillard4-0/+129
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 Robillard4-50/+108
2020-10-27Move SerdField to public APIDavid Robillard2-46/+50
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 Robillard13-188/+240
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 Robillard4-38/+129
2020-10-27Add serd_world_get_blank()David Robillard4-2/+53
2020-10-27Clean up node construction APIDavid Robillard9-231/+323
2020-10-27Hide fopen wrapper and use reader interface consistentlyDavid Robillard11-193/+129
2020-10-27Add blank node APIDavid Robillard4-0/+40
2020-10-27Make serd_node_new_literal take datatype as a nodeDavid Robillard3-12/+21
2020-10-27Move error handling to worldDavid Robillard5-38/+43
2020-10-27Add SerdWorld for shared library stateDavid Robillard13-67/+172