aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2021-03-08Remove double allocations in serd_env_expand()David Robillard3-23/+89
2021-03-08Move local URI utility functionsDavid Robillard1-28/+28
2021-03-08Split up node expansion codeDavid Robillard1-32/+53
2021-03-08Clean up Env tests and behaviourDavid Robillard1-7/+7
2021-03-08Make const Env functions tolerant of NULLDavid Robillard1-1/+9
This is convenient in places where you don't necessarily need an Env, since in this case these methods work the same as if with an empty Env.
2021-03-08Split up serd_internal.hDavid Robillard11-17/+34
2021-03-08Add empty syntax type for suppressing outputDavid Robillard3-9/+20
2021-03-08Replace serd_reader_set_strict() with SerdReaderFlagsDavid Robillard3-19/+13
This makes reader options extensible and should hopefully prevent the need for grafting on more similar functions in the future.
2021-03-08Report writer errors and add strict write modeDavid Robillard3-177/+259
2021-03-08Align node allocationsDavid Robillard6-8/+46
2021-03-08Add support for writing terse collectionsDavid Robillard1-12/+23
2021-03-08Tolerate lack of predicate when context is poppedDavid Robillard1-1/+2
2021-03-08Reset writer to empty when finished to avoid spurious blank linesDavid Robillard1-0/+1
2021-03-08Pass context flags to write_sep()David Robillard1-22/+24
2021-03-08Add initial flags to write contextDavid Robillard1-21/+24
2021-03-08Simplify internal writer context APIDavid Robillard1-31/+31
2021-03-08Strengthen writer statement preconditionsDavid Robillard1-1/+3
2021-03-08Add option for writing terse output without newlinesDavid Robillard2-25/+27
2021-03-08Factor out writing top level separatorDavid Robillard1-7/+10
2021-03-08Support reading lone lists in lax modeDavid Robillard1-1/+1
This allows parsing documents like "(42) ."
2021-03-08WIP: Fix reading from socket-like streamsDavid Robillard1-0/+1
2021-03-08Make reader tolerant of being started several timesDavid Robillard1-0/+4
2021-03-08WIP: Write invalid characters in URIs with percent encodingDavid Robillard1-5/+9
2021-03-08Handle read errors more preciselyDavid Robillard3-27/+21
2021-03-08Simplify reader stack pushing codeDavid Robillard1-6/+6
2021-03-08Use simpler names for statement flagsDavid Robillard2-22/+19
2021-03-08Simplify streaming API and improve pretty printingDavid Robillard4-164/+270
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.
2021-03-08WIP: Leave statement cursor at the start of literalsDavid Robillard1-1/+11
2021-03-08Cache commonly used nodes in the worldDavid Robillard3-15/+47
2021-03-08Add SerdNodes class for storing a cache of nodesDavid Robillard3-1/+146
2021-03-08Add zix data structuresDavid Robillard8-0/+1838
2021-03-08Add serd_env_copy() and serd_env_equals()David Robillard1-0/+42
2021-03-08Separate ByteSink from WriterDavid Robillard2-12/+18
2021-03-08Expose SerdByteSink in public APIDavid Robillard2-5/+110
2021-03-08Simplify writer style optionsDavid Robillard2-33/+6
2021-03-08Avoid writing invalid prefixed name prefixesDavid Robillard1-1/+2
2021-03-08Replace multiple stream callbacks with SerdEventDavid Robillard4-41/+58
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.
2021-03-08Add SerdStatementDavid Robillard5-12/+115
2021-03-08Add SerdCursorDavid Robillard7-39/+162
2021-03-08Remove serd_reader_set_default_graph()David Robillard2-22/+7
2021-03-08Move SerdField to public APIDavid Robillard1-46/+40
2021-03-08Simplify SerdEnv APIDavid Robillard3-13/+59
2021-03-08Add serd_world_get_blank()David Robillard2-2/+27
2021-03-08Move fopen wrapper to worldDavid Robillard5-29/+37
2021-03-08Move error handling to worldDavid Robillard5-51/+53
2021-03-08Add SerdWorld for shared library stateDavid Robillard9-39/+105
2021-03-08Add numeric node construction and access APIDavid Robillard3-13/+68
2021-03-08Add serd_new_float() and serd_new_double()David Robillard3-0/+30
2021-03-08Add serd_new_boolean()David Robillard2-0/+9
2021-03-08Remove serd_node_align constantDavid Robillard1-10/+8