aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.h
AgeCommit message (Collapse)AuthorFilesLines
2021-03-08Expand URIs in readerDavid Robillard1-4/+2
2021-03-08Add support for parsing variablesDavid Robillard1-0/+1
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.
2021-03-08WIP: Make Reader always read from a ByteSourceDavid Robillard1-3/+3
2021-03-08Simplify reader stack pushing codeDavid Robillard1-6/+6
2021-03-08Remove serd_reader_set_default_graph()David Robillard1-1/+0
2021-03-08Add SerdWorld for shared library stateDavid Robillard1-0/+1
2021-03-08Improve push_byte() performanceDavid Robillard1-5/+4
2021-03-08Remove datatype and language from reader contextDavid Robillard1-2/+0
2021-03-08Simplify stack management by popping in bulk at higher levelsDavid Robillard1-4/+1
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 Robillard1-30/+32
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.
2021-03-07Add SerdSink interface and hide implementationsDavid Robillard1-21/+16
2021-03-07Use consistent naming for function typesDavid Robillard1-5/+5
2021-03-07Merge datatype/language into nodeDavid Robillard1-1/+1
This moves closer to the sord API, and is more convenient in most cases.
2021-03-07Make nodes opaqueDavid Robillard1-2/+4
2021-03-07Rename SerdType to SerdNodeTypeDavid Robillard1-6/+9
The old name will be even more ambiguous with the increased scope.
2021-03-07Use char* for strings in public APIDavid Robillard1-4/+6
The constant casting just makes user code a mess, for no benefit.
2021-03-07Remove useless character countingDavid Robillard1-5/+0
2021-01-02Use email address instead of website for attributionDavid Robillard1-1/+1
2020-12-31Format all code with clang-formatDavid Robillard1-87/+99
2020-11-10Add const, pure, and malloc function attributesDavid Robillard1-3/+3
2020-10-28Simplify reader byte reading interfaceDavid Robillard1-10/+3
This eliminates eat_byte() and the way it conflates the status of advancing the source with the current character, which can cause problems with custom sinks.
2020-08-15Clean up reader error handlingDavid Robillard1-13/+12
2020-08-15Make r_err() return a statusDavid Robillard1-3/+4
2020-08-15Move prototype to a more sensible locationDavid Robillard1-4/+4
2020-08-14Make serd_stack_push() return a void pointerDavid Robillard1-1/+1
This avoids some unnecessary type punning.
2020-08-14Clean up and separate internal headersDavid Robillard1-1/+93
2020-06-21Clean up includesDavid Robillard1-1/+5
2019-10-27Use int as internal character type so it can represent EOFDavid Robillard1-12/+19
2019-01-05Fix unused parameter warningsDavid Robillard1-0/+2
2018-02-04Factor out syntax-specific reader implementationDavid Robillard1-0/+86