Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2022-01-14 | Remove SERD_CURIE node datatype entirely | David Robillard | 1 | -1/+3 | |
2022-01-14 | Expand URIs in reader | David Robillard | 1 | -0/+36 | |
This expands relative and prefixed URIs in the reader on the stack, rather than passing them to the caller to be dealt with. This pushes these context-full forms to the edge of the system as much as possible to minimise the headaches they can cause. Towards having stricter guarantees about nodes and eliminating the CURIE node type altogether. | |||||
2022-01-14 | Move SerdEnv mutation from writer to reader | David Robillard | 1 | -30/+0 | |
Writing having side-effects seems questionable in general, and this prepares things for expanding URIs in the reader. | |||||
2022-01-13 | Make Writer always write to a ByteSink | David Robillard | 1 | -31/+44 | |
2022-01-13 | Add empty syntax type for suppressing output | David Robillard | 1 | -0/+34 | |
2022-01-13 | Replace SERD_WRITE_STRICT flag with SERD_WRITE_LAX | David Robillard | 1 | -3/+3 | |
The unset value for flags should represent the best default, which in this case is strict parsing. Lax parsing is the riskier opt-in option. | |||||
2022-01-13 | Improve writer error handling | David Robillard | 1 | -0/+101 | |
2022-01-13 | Simplify streaming API and improve pretty printing | David Robillard | 1 | -6/+6 | |
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. | |||||
2022-01-13 | Replace multiple stream callbacks with SerdEvent | David Robillard | 1 | -0/+26 | |
This makes plumbing easier since everything goes through the same "stream" and only one callback is required to handling everything. It's also more easily extensible in case more event types need to be added in the future. | |||||
2022-01-13 | Use SerdNodes to simplify some tests | David Robillard | 1 | -20/+21 | |
2022-01-13 | Add SerdWorld for shared library state | David Robillard | 1 | -4/+13 | |
2022-01-13 | Simplify literal construction API | David Robillard | 1 | -3/+1 | |
2022-01-13 | Handle writer stack overflows gracefully | David Robillard | 1 | -0/+56 | |
2022-01-13 | Add SerdSink interface and hide implementations | David Robillard | 1 | -2/+3 | |
2022-01-13 | Simplify node construction API | David Robillard | 1 | -5/+34 | |
2022-01-13 | Merge datatype/language into node | David Robillard | 1 | -1/+1 | |
This moves closer to the sord API, and is more convenient in most cases. | |||||
2022-01-13 | Make nodes opaque | David Robillard | 1 | -4/+7 | |
2022-01-13 | Rename SerdStyle to SerdWriterFlags | David Robillard | 1 | -2/+2 | |
2022-01-13 | Use char* for strings in public API | David Robillard | 1 | -8/+4 | |
The constant casting just makes user code a mess, for no benefit. | |||||
2022-01-13 | Add SerdBuffer type for mutable buffers | David Robillard | 1 | -3/+3 | |
This avoids const violations from abusing SerdChunk as a mutable buffer for string sinks. | |||||
2021-07-10 | Add missing include | David Robillard | 1 | -0/+1 | |
2021-07-09 | Fix accidentally disabled writer test | David Robillard | 1 | -4/+1 | |
2021-02-15 | Fix writing long literals with triple quotes | David Robillard | 1 | -0/+65 | |