aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_reader.c
AgeCommit message (Collapse)AuthorFilesLines
2022-01-28Add custom allocator supportDavid Robillard1-9/+97
2022-01-28Make environments and sinks part of the worldDavid Robillard1-14/+19
Although functions/components that require minimal pre-existing state are nice, these allocate memory and could potentially share resources. So, give them a pointer to a world which can be used to configure such things. In particular, this is working towards supporting custom allocators everywhere.
2022-01-28Use simpler names for I/O function typesDavid Robillard1-10/+7
2022-01-28Use more human-readable status codesDavid Robillard1-2/+2
2022-01-28Simplify input stream APIDavid Robillard1-65/+55
More or less the same rationale as the previous commit, but for reading. This makes for nice symmetry with writing, at the cost of a slightly more annoying reader interface since the source doesn't know its block size or name.
2022-01-14Leave statement caret at the start of literalsDavid Robillard1-0/+50
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 NTriples readerDavid Robillard1-0/+55
2022-01-14Move SerdEnv mutation from writer to readerDavid Robillard1-11/+28
Writing having side-effects seems questionable in general, and this prepares things for expanding URIs in the reader.
2022-01-13Make Reader always read from a ByteSourceDavid Robillard1-17/+92
2022-01-13Replace serd_reader_set_strict() with SerdReaderFlagsDavid Robillard1-4/+5
2022-01-13Split out simple reader unit testsDavid Robillard1-0/+233