aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2020-06-21Add modelDavid Robillard12-2/+1573
2020-06-21Use conventional short variable name for statusDavid Robillard1-13/+13
2020-06-21Use consistent naming for function typesDavid Robillard3-12/+12
2020-06-21Add extensible logging APIDavid Robillard6-50/+177
2020-06-21Add Env to SinkDavid Robillard5-59/+56
This isn't technically necessary for any sink, but is a pattern common to every sink implementation in serd, so having it here reduces boilerplate and parameters in user code.
2020-06-21Rename SerdStyle to SerdWriterFlagsDavid Robillard2-28/+28
2020-06-21Rename SerdType to SerdNodeTypeDavid Robillard4-17/+22
The old name has become ambiguous with the expanded scope of serd.
2020-06-21Clean up and expose base64 implementationDavid Robillard3-55/+13
2020-06-21Expose the node cache in the worldDavid Robillard1-0/+6
2020-06-21Remove serd_env_foreach()David Robillard1-10/+0
2020-06-21Add serd_env_write_prefixes()David Robillard1-0/+9
2020-06-21Add serd_node_compare()David Robillard1-0/+19
2020-06-21Fix writer flags typeDavid Robillard1-18/+18
2020-06-21Simplify reader stack pushing codeDavid Robillard1-8/+10
2020-06-21Ensure serd_new_resolved_uri returns an absolute URI or NULLDavid Robillard2-7/+14
2020-06-21Use simpler names for statement flagsDavid Robillard2-21/+19
2020-06-21Simplify streaming API and improve pretty printingDavid Robillard3-158/+222
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-06-21Cache commonly used nodes in the worldDavid Robillard3-14/+32
2020-06-21Add SerdNodes class for storing a cache of nodesDavid Robillard5-2/+142
2020-06-21Add serd_env_copy() and serd_env_equals()David Robillard1-0/+36
2020-06-21Separate ByteSink from WriterDavid Robillard2-12/+13
2020-06-21Expose SerdByteSink in public APIDavid Robillard3-102/+103
2020-06-21Remove serd_reader_set_default_graph()David Robillard2-13/+0
2020-06-21Add zix data structures for use in modelDavid Robillard7-0/+1621
2020-06-21Make reader return failure when no statement is readDavid Robillard1-1/+1
2020-06-21Fix warningsDavid Robillard2-4/+4
2020-06-21Simplify writer style optionsDavid Robillard2-25/+4
2020-06-21Avoid writing invalid prefixed name prefixesDavid Robillard1-1/+2
2020-06-21Separate style enum from style flags typesDavid Robillard2-3/+3
2020-06-21Automatically finish reader on destructionDavid Robillard1-0/+1
2020-06-21Make SerdSink opaqueDavid Robillard5-8/+90
2020-06-21Simplify SerdEnv APIDavid Robillard3-33/+84
2020-06-21Add 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-06-21Add SerdCursor to public APIDavid Robillard7-29/+153
2020-06-21Remove 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-06-21Shorten node constructor namesDavid Robillard5-80/+153
2020-06-21Make statement sink take a statement rather than nodesDavid Robillard3-16/+19
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-06-21Add sink interfaceDavid Robillard1-0/+62
2020-06-21Add SerdStatementDavid Robillard2-0/+80
2020-06-21Expand datatype of literal nodes in serd_env_expand_nodeDavid Robillard1-0/+12
2020-06-21Move syntax name/extension utilities to public APIDavid Robillard2-49/+73
2020-06-21Move SerdField to public APIDavid Robillard1-46/+40
2020-06-21Clean up reader error handlingDavid Robillard3-342/+372
2020-06-21Improve push_byte() performanceDavid Robillard1-4/+4
2020-06-21Add debug checks for node paddingDavid Robillard2-8/+36
2020-06-21Zero node padding before passing to reader sinksDavid Robillard5-3/+41
2020-06-21Remove datatype and language from reader contextDavid Robillard2-30/+17
2020-06-21Simplify stack management by popping in bulk at higher levelsDavid Robillard4-104/+70
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-06-21Use a fixed-size reader stackDavid Robillard7-224/+274
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-06-21Set datatypes on integer, decimal, and base64 nodesDavid Robillard2-26/+89