aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2020-10-27Reset writer to empty when finished to avoid spurious blank linesDavid Robillard1-0/+1
2020-10-27Pass context flags to write_sep()David Robillard1-22/+24
2020-10-27Add initial flags to write contextDavid Robillard1-14/+22
2020-10-27Simplify internal writer context APIDavid Robillard1-21/+17
2020-10-27Strengthen writer statement preconditionsDavid Robillard1-1/+3
2020-10-27Add option for writing terse output without newlinesDavid Robillard2-27/+29
2020-10-27Factor out writing top level separatorDavid Robillard1-6/+10
2020-10-27Rename writer flags for consistency with enum typeDavid Robillard2-5/+5
2020-10-27Support reading lone lists in lax modeDavid Robillard1-1/+1
This allows parsing documents like "(42) ."
2020-10-27Simplify writer statement validity checkingDavid Robillard1-3/+2
2020-10-27WIP: Fix reading from socket-like streamsDavid Robillard1-0/+1
2020-10-27Make reader tolerant of being started several timesDavid Robillard1-0/+4
2020-10-27Fix various warnings and conversion issuesDavid Robillard12-44/+37
2020-10-27Add serd_new_boolean()David Robillard2-0/+7
2020-10-27Handle read errors more preciselyDavid Robillard3-23/+19
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.