aboutsummaryrefslogtreecommitdiffstats
path: root/src/read_ntriples.c
AgeCommit message (Collapse)AuthorFilesLines
2023-12-02Move read_IRIREF to read_ntriples.cDavid Robillard1-1/+20
Bit of a weird situation this one, since the rule is from NTriples but serd doesn't actually use it in the NTriples parser (since it uses a stricter one instead). Still, I think it makes sense here, and in practice, makes for a more sensible inlining situation.
2023-12-02[WIP] Tighten up reader node managementDavid Robillard1-36/+50
[WIP] Broken on 32-bit This makes the reader stack manipulations stricter, to make the code more regular and avoid redundant work and bad cache activity. Now, functions that push node headers and their bodies are responsible for (more or less) immediately pushing any trailing null bytes required for termination and alignment. This makes the writes to the node in the stack more local, ensures nodes are terminated as early as possible (to reduce the risk of using non-terminated strings), and avoids the need to calculate aligned stack allocations.
2023-12-02[WIP] Add support for URI hex escape decodingDavid Robillard1-0/+66
2023-12-02Make blank node prefixing automaticDavid Robillard1-4/+2
Though potentially useful, I don't think the complexity cost of the old interface (both to the implementation and to the user) is worth it. A special tool to transform blank node labels (for example with regular expressions) would be a better approach to this if it's ever needed in the future.
2023-12-02Add a reader flag to disable generated blank label avoidanceDavid Robillard1-10/+5
2023-12-02[WIP] Simplify reader and writer flagsDavid Robillard1-1/+2
[WIP] Testing?
2023-12-02[WIP] Preserve long or short quoting from input documentsDavid Robillard1-20/+2
2023-12-02[WIP] Add support for reading and writing variablesDavid Robillard1-1/+51
[WIP] Command line option, move later? 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.
2023-12-02Simplify input stream APIDavid Robillard1-1/+1
2023-12-02Improve URI read performanceDavid Robillard1-15/+12
2023-12-02Factor out and expose prefixed name predicatesDavid Robillard1-28/+3
Towards using these in the writer to escape names more precisely.
2023-12-02Factor out NQuads readerDavid Robillard1-4/+9
2023-12-02Factor out NTriples readerDavid Robillard1-0/+737