aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2023-12-02Improve URI read performanceDavid Robillard1-15/+12
2023-12-02Use tighter types for UTF-8David Robillard3-17/+19
2023-12-02Support writing all escapes in Turtle and TriG prefixed namesDavid Robillard7-77/+158
2023-12-02Simplify reading code with TRY_LAX macroDavid Robillard1-14/+14
2023-12-02Separate Turtle and TriG reading codeDavid Robillard9-153/+405
2023-12-02Reduce complexity of Turtle and TriG block reading functionsDavid Robillard1-87/+108
2023-12-02Reduce complexity of Turtle object reading codeDavid Robillard1-41/+66
2023-12-02Factor out and expose prefixed name predicatesDavid Robillard5-63/+63
Towards using these in the writer to escape names more precisely.
2023-12-02Factor out NQuads readerDavid Robillard10-113/+178
2023-12-02Factor out NTriples readerDavid Robillard16-528/+1084
2023-12-02Factor out UTF-8 reading utilitiesDavid Robillard4-85/+134
2023-12-02Use Zix attributes directlyDavid Robillard34-338/+355
2023-12-02Use portable zix filesystem API in testsDavid Robillard4-57/+39
2023-12-02[WIP] Add zix dependencyDavid Robillard7-5/+32
Most of the system-specific code will be replaced with calls to portable zix functions, and the data structures will be used for in-memory node and statement storage.
2023-12-02Make r_err take a single line without trailing newlineDavid Robillard4-57/+57
Towards having an actual logging (rather than printing) mechanism.
2023-12-02Add assertions for all non-null pointers in the public APIDavid Robillard11-2/+112
2023-12-02Make serd_env_expand_in_place() take a string view instead of a nodeDavid Robillard3-8/+11
2023-12-02Clean up SerdEnv testsDavid Robillard1-65/+249
2023-12-02Add serd_env_copy() and serd_env_equals()David Robillard3-0/+100
2023-12-02Split up serd_env_expand() implementationDavid Robillard1-17/+35
2023-12-02Simplify SerdEnv APIDavid Robillard5-75/+117
2023-12-02Make serd_uri_string_length() precise and add it to public APIDavid Robillard3-22/+58
2023-12-02Test lax NTriples parsing separatelyDavid Robillard14-25/+89
2023-12-02Support reading lone lists in lax modeDavid Robillard4-1/+11
This allows parsing documents like "(42) ."
2023-12-02Simplify ByteSource implementationDavid Robillard2-29/+20
2023-12-02Be precise about the meaning of node "length" and "size"David Robillard4-39/+36
2023-12-02Align nodes on the reader stackDavid Robillard3-14/+13
2023-12-02Replace serd_reader_set_strict() with SerdReaderFlagsDavid Robillard6-33/+26
2023-12-02Handle read errors more preciselyDavid Robillard3-20/+39
2023-12-02Simplify reader stack pushing codeDavid Robillard1-6/+6
2023-12-02Split out simple reader unit testsDavid Robillard3-317/+404
2023-12-02Split up serd_internal.hDavid Robillard9-15/+19
2023-12-02Reduce complexity of blank node reading functionsDavid Robillard1-18/+28
2023-12-02Reduce complexity of string writing functionsDavid Robillard1-77/+97
2023-12-02Reduce complexity of URI node writing functionsDavid Robillard1-21/+38
2023-12-02Reduce complexity of statement writing functionsDavid Robillard2-79/+175
2023-12-02Add empty syntax type for suppressing outputDavid Robillard8-21/+107
2023-12-02Factor out test runner script argument parsingDavid Robillard4-46/+41
2023-12-02Use a simple type-safe stack in writerDavid Robillard7-51/+94
2023-12-02Add a set of limits to the worldDavid Robillard8-15/+74
The idea here is to remove the burden of passing things around like stack sizes (where most users don't care and will be happy with a reasonably large default) and keeping the call sites to things like serd_reader_new() clean. The cost is a bit more state, so it's both more powerful and more potentially flaky, since changing the limits has action at a distance that isn't clear from the call site. I think it's worth it for the cleaner API in the common case, and the much better forward compatibility.
2023-12-02Replace SERD_WRITE_STRICT flag with SERD_WRITE_LAXDavid Robillard5-17/+16
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.
2023-12-02Add support for writing terse output with minimal newlinesDavid Robillard17-17/+225
2023-12-02Pass context flags to write_sep()David Robillard1-17/+20
2023-12-02Add initial flags to write contextDavid Robillard1-12/+17
2023-12-02Simplify statement flagsDavid Robillard6-49/+47
2023-12-02Replace multiple stream callbacks with SerdEventDavid Robillard17-233/+353
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.
2023-12-02Simplify writer style options and write UTF-8 by defaultDavid Robillard9-75/+40
2023-12-02Add SerdStatementDavid Robillard14-54/+463
2023-12-02Add SerdCaretDavid Robillard18-64/+310
2023-12-02Add SerdField to public APIDavid Robillard2-41/+41
A statement field enum was previously only used by the writer internally, but will be used in the public API (without a sentinel value) in following commits.