Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2020-10-27 | WIP: Add serd_node_from_syntax() and serd_node_to_syntax() | David Robillard | 1 | -0/+8 | |
2020-10-27 | WIP: Make Writer always write to a ByteSink | David Robillard | 1 | -16/+16 | |
2020-10-27 | Refuse to write relative URIRefs to NTriples | David Robillard | 1 | -0/+15 | |
2020-10-27 | Simplify abbreviated URI writing code | David Robillard | 1 | -15/+17 | |
2020-10-27 | Use a manual type-safe stack in SerdWriter | David Robillard | 1 | -27/+27 | |
This fixes alignment issues on ARM. Since this stack is just for WriteContext which has a fixed size, using SerdStack here just made things more confusing anyway. | |||||
2020-10-27 | Add support for parsing variables | David Robillard | 1 | -0/+14 | |
This adds a reader flag and serdi option for extending a syntax with support for SPARQL-like variables, for storing things like patterns or simple queries. | |||||
2020-10-27 | Fix memory leak in writer when caller doesn't clean up the stack | David Robillard | 1 | -0/+5 | |
2020-10-27 | Improve writer packing | David Robillard | 1 | -1/+1 | |
2020-10-27 | Replace multiple stream callbacks with SerdEvent | David Robillard | 1 | -5/+23 | |
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. | |||||
2020-10-27 | Move MIN macro to int_math.h | David Robillard | 1 | -1/+1 | |
2020-10-27 | Add empty syntax type for suppressing output | David Robillard | 1 | -3/+8 | |
2020-10-27 | Improve add and chop prefix functions when given empty strings | David Robillard | 1 | -4/+5 | |
2020-10-27 | Replace serd_reader_set_strict() with SerdReaderFlags | David Robillard | 1 | -3/+3 | |
This makes reader options extensible and should hopefully prevent the need for grafting on more similar functions in the future. | |||||
2020-10-27 | Report writer errors and add strict write mode | David Robillard | 1 | -172/+225 | |
2020-10-27 | Align nodes with posix_memalign if possible | David Robillard | 1 | -1/+1 | |
2020-10-27 | Add support for writing terse collections | David Robillard | 1 | -12/+23 | |
2020-10-27 | Tolerate lack of predicate when context is popped | David Robillard | 1 | -1/+2 | |
2020-10-27 | Reset writer to empty when finished to avoid spurious blank lines | David Robillard | 1 | -0/+1 | |
2020-10-27 | Pass context flags to write_sep() | David Robillard | 1 | -22/+24 | |
2020-10-27 | Add initial flags to write context | David Robillard | 1 | -14/+22 | |
2020-10-27 | Simplify internal writer context API | David Robillard | 1 | -21/+17 | |
2020-10-27 | Strengthen writer statement preconditions | David Robillard | 1 | -1/+3 | |
2020-10-27 | Add option for writing terse output without newlines | David Robillard | 1 | -4/+8 | |
2020-10-27 | Factor out writing top level separator | David Robillard | 1 | -6/+10 | |
2020-10-27 | Rename writer flags for consistency with enum type | David Robillard | 1 | -3/+3 | |
2020-10-27 | Simplify writer statement validity checking | David Robillard | 1 | -3/+2 | |
2020-10-27 | Fix various warnings and conversion issues | David Robillard | 1 | -4/+4 | |
2020-10-27 | Use consistent naming for function types | David Robillard | 1 | -4/+4 | |
2020-10-27 | Add extensible logging API | David Robillard | 1 | -10/+10 | |
2020-10-27 | Use public sink interface in reader | David Robillard | 1 | -0/+1 | |
2020-10-27 | Rename SerdStyle to SerdWriterFlags | David Robillard | 1 | -28/+28 | |
2020-10-27 | Use simpler names for statement flags | David Robillard | 1 | -17/+15 | |
2020-10-27 | Simplify streaming API and improve pretty printing | David Robillard | 1 | -143/+210 | |
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-27 | Cache commonly used nodes in the world | David Robillard | 1 | -10/+8 | |
2020-10-27 | Separate ByteSink from Writer | David Robillard | 1 | -7/+6 | |
2020-10-27 | Expose SerdByteSink in public API | David Robillard | 1 | -5/+4 | |
2020-10-27 | Simplify writer style options | David Robillard | 1 | -2/+4 | |
2020-10-27 | Avoid writing invalid prefixed name prefixes | David Robillard | 1 | -1/+2 | |
2020-10-27 | Separate style enum from style flags types | David Robillard | 1 | -20/+20 | |
2020-10-27 | Make SerdSink opaque | David Robillard | 1 | -0/+1 | |
2020-10-27 | Simplify SerdEnv API | David Robillard | 1 | -4/+7 | |
2020-10-27 | Make statement sink take a statement rather than nodes | David Robillard | 1 | -6/+8 | |
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-27 | Move SerdField to public API | David Robillard | 1 | -46/+40 | |
2020-10-27 | Use a fixed-size reader stack | David Robillard | 1 | -1/+5 | |
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-27 | Clean up node construction API | David Robillard | 1 | -12/+6 | |
2020-10-27 | Move error handling to world | David Robillard | 1 | -22/+7 | |
2020-10-27 | Add SerdWorld for shared library state | David Robillard | 1 | -12/+6 | |
2020-10-27 | Add SerdSink interface and hide individual function implementations | David Robillard | 1 | -2/+21 | |
2020-10-27 | Bring read/write interface closer to C standard | David Robillard | 1 | -14/+13 | |
2020-10-27 | Merge datatype and/or language into node | David Robillard | 1 | -28/+20 | |
This moves closer to the sord API, and is more convenient in most cases. |