aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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
2020-10-27Add SerdSink interface and hide individual function implementationsDavid Robillard8-136/+92
2020-10-27Bring read/write interface closer to C standardDavid Robillard11-85/+90
2020-10-27Merge datatype and/or language into nodeDavid Robillard8-95/+252
This moves closer to the sord API, and is more convenient in most cases.
2020-10-27Simplify reader interfaceDavid Robillard6-155/+120
2020-10-27Remove serd_uri_to_path()David Robillard5-65/+9
2020-10-27Remove SERD_NOTHING node typeDavid Robillard5-30/+1