aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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 Robillard2-5/+11
2021-03-08Fix socket-like stream reading testDavid Robillard1-3/+5
2021-03-08Handle read errors more preciselyDavid Robillard5-29/+24
2021-03-08Add stack overflow testsDavid Robillard2-0/+69
2021-03-08Simplify reader stack pushing codeDavid Robillard1-6/+6
2021-03-08Clean up env testDavid Robillard1-4/+4
2021-03-08Use simpler names for statement flagsDavid Robillard3-27/+24
2021-03-08Simplify streaming API and improve pretty printingDavid Robillard9-174/+374
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 Robillard4-15/+58
2021-03-08Add SerdNodes class for storing a cache of nodesDavid Robillard8-2/+305
2021-03-08Add zix data structuresDavid Robillard9-1/+1839
2021-03-08Add serd_env_copy() and serd_env_equals()David Robillard3-0/+75
2021-03-08Separate ByteSink from WriterDavid Robillard4-17/+26
2021-03-08Expose SerdByteSink in public APIDavid Robillard5-5/+150
2021-03-08Simplify writer style optionsDavid Robillard6-52/+34
2021-03-08Avoid writing invalid prefixed name prefixesDavid Robillard1-1/+2
2021-03-08Replace multiple stream callbacks with SerdEventDavid Robillard8-128/+176
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 Robillard9-38/+177
2021-03-08Add SerdCursorDavid Robillard14-50/+300
2021-03-08Remove serd_reader_set_default_graph()David Robillard4-70/+30
2021-03-08Move SerdField to public APIDavid Robillard2-46/+48
2021-03-08Simplify SerdEnv APIDavid Robillard5-63/+95
2021-03-08Add serd_world_get_blank()David Robillard4-2/+55
2021-03-08Move fopen wrapper to worldDavid Robillard5-29/+37
2021-03-08Move error handling to worldDavid Robillard6-51/+55
2021-03-08Add SerdWorld for shared library stateDavid Robillard17-72/+182
2021-03-08Clean up nodes in reader/writer testsDavid Robillard1-12/+20
2021-03-08Add numeric node construction and access APIDavid Robillard5-50/+307
2021-03-08Add serd_new_float() and serd_new_double()David Robillard6-1/+63
2021-03-08Add serd_new_boolean()David Robillard4-0/+35
2021-03-08Remove serd_node_align constantDavid Robillard1-10/+8
2021-03-08Remove old floating point testsDavid Robillard1-88/+0
2021-03-08WIP: Use exess for reading and writing numeric and binary literalsDavid Robillard5-281/+112
2021-03-08Add exess from git@gitlab.com:drobilla/exess.git 4638b1fDavid Robillard120-1/+17581
2021-03-08Simplify literal construction APIDavid Robillard5-71/+131
2021-03-08Expand datatype of literal nodes in serd_env_expand_nodeDavid Robillard2-3/+19
2021-03-08Move syntax name/extension utilities to public APIDavid Robillard4-51/+110
2021-03-08Improve reader error handlingDavid Robillard1-31/+40
2021-03-08Remove unnecessary parameter from read_LANGTAG()David Robillard1-8/+8
2021-03-08Set flags directly when reading literal nodesDavid Robillard1-57/+35
2021-03-08Improve push_byte() performanceDavid Robillard1-5/+4
2021-03-08Add debug checks for node paddingDavid Robillard2-9/+37
2021-03-08Zero node padding before passing to reader sinksDavid Robillard5-2/+41
2021-03-08Remove datatype and language from reader contextDavid Robillard2-32/+25
2021-03-08Simplify stack management by popping in bulk at higher levelsDavid Robillard4-109/+51
Since all memory used by the reader is POD in the stack, there is no benefit to forcing code to explicitly pop everything pushed to the stack, since any function can record an offset and pop back down to it regardless of what its callers pushed if it knows that it does not need those items.
2021-03-08Use a fixed-size reader stackDavid Robillard14-206/+259
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.