aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.c
AgeCommit message (Collapse)AuthorFilesLines
2022-01-14Leave statement caret at the start of literalsDavid Robillard1-4/+13
This allows a precise location to be reported for errors within literals, by adding the offset of the error in the literal to the caret. This will be used to report nice errors for things like regular expressions and supported XSD datatypes.
2022-01-14Factor out NQuads readerDavid Robillard1-0/+1
2022-01-14Factor out NTriples readerDavid Robillard1-3/+34
2022-01-14Move SerdEnv mutation from writer to readerDavid Robillard1-0/+2
Writing having side-effects seems questionable in general, and this prepares things for expanding URIs in the reader.
2022-01-14Add extensible logging APIDavid Robillard1-4/+5
2022-01-13Add 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.
2022-01-13Make Reader always read from a ByteSourceDavid Robillard1-57/+30
2022-01-13Add support for reading multiple files at onceDavid Robillard1-3/+0
2022-01-13Simplify ByteSource implementationDavid Robillard1-5/+0
2022-01-13Be precise about the meaning of node "length" and "size"David Robillard1-7/+9
2022-01-13Align nodes on the reader stackDavid Robillard1-2/+2
2022-01-13Replace serd_reader_set_strict() with SerdReaderFlagsDavid Robillard1-7/+2
2022-01-13Handle read errors more preciselyDavid Robillard1-1/+16
2022-01-13Split up serd_internal.hDavid Robillard1-1/+1
2022-01-13Simplify streaming API and improve pretty printingDavid Robillard1-1/+1
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.
2022-01-13Add SerdStatementDavid Robillard1-2/+6
2022-01-13Add SerdCaretDavid Robillard1-13/+17
2022-01-13Remove serd_reader_set_default_graph()David Robillard1-22/+7
2022-01-13Move fopen wrapper to worldDavid Robillard1-1/+1
2022-01-13Move error handling to worldDavid Robillard1-1/+2
2022-01-13Add SerdWorld for shared library stateDavid Robillard1-11/+4
2022-01-13Improve reader error handlingDavid Robillard1-0/+4
2022-01-13Zero node padding before passing to reader sinksDavid Robillard1-0/+4
2022-01-13Simplify stack management by popping in bulk at higher levelsDavid Robillard1-27/+7
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.
2022-01-13Use a fixed-size reader stackDavid Robillard1-35/+48
2022-01-13Simplify reader interfaceDavid Robillard1-116/+49
2022-01-13Add SerdSink interface and hide implementationsDavid Robillard1-36/+15
2022-01-13Bring read/write interface closer to C standardDavid Robillard1-4/+4
2022-01-13Merge datatype/language into nodeDavid Robillard1-8/+2
This moves closer to the sord API, and is more convenient in most cases.
2022-01-13Simplify URI API and implementationDavid Robillard1-1/+1
2022-01-13Make nodes opaqueDavid Robillard1-21/+20
2022-01-13Remove "get" from accessor namesDavid Robillard1-1/+1
2022-01-13Rename function types for consistencyDavid Robillard1-13/+13
2022-01-13Rename SerdType to SerdNodeTypeDavid Robillard1-9/+9
The old name will be even more ambiguous with the increased scope.
2022-01-13Use char* for strings in public APIDavid Robillard1-23/+22
The constant casting just makes user code a mess, for no benefit.
2022-01-13Remove useless character countingDavid Robillard1-5/+5
2021-05-31Make most function parameters constDavid Robillard1-56/+68
More const never hurts in general, but in particular this allows the compiler to make better nullability deductions, which reduces the amount of manual nullability casting required.
2021-05-31Fix include orderDavid Robillard1-1/+2
2021-01-10Add missing includesDavid Robillard1-0/+2
2021-01-02Use email address instead of website for attributionDavid Robillard1-1/+1
2020-12-31Format all code with clang-formatDavid Robillard1-213/+216
2020-12-31Avoid "else" after "break" and "return"David Robillard1-1/+3
2020-11-13Improve add and chop prefix functions when given empty stringsDavid Robillard1-4/+5
2020-08-16Ensure that all free methods tolerate NULLDavid Robillard1-0/+4
2020-08-15Clean up reader error handlingDavid Robillard1-19/+27
2020-08-15Make r_err() return a statusDavid Robillard1-2/+2
2020-08-15Fix stack check C++ compatibilityDavid Robillard1-1/+1
2020-08-14Clean up and separate internal headersDavid Robillard1-0/+2
2020-07-05Remove redundant switch statementDavid Robillard1-3/+1
2020-06-21Clean up includesDavid Robillard1-2/+1