aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.c
AgeCommit message (Collapse)AuthorFilesLines
2013-12-24Update to latest Turtle test suite.David Robillard1-2/+9
Support UTF-8 in blank node names. Support idiotic SPARQL escaping in local names. git-svn-id: http://svn.drobilla.net/serd/trunk@452 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-03-30Add more tests from the new W3C Turtle test suite.David Robillard1-9/+19
Support crazy escaped NULL characters in literals. Fix incorrect round-trip serialization test command. git-svn-id: http://svn.drobilla.net/serd/trunk@446 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-03-30Implement case-insensitive language tags from new Turtle spec.David Robillard1-6/+4
git-svn-id: http://svn.drobilla.net/serd/trunk@444 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-03-24Set SERD_HAS_NEWLINE and SERD_HAS_QUOTE flags when unescaped newlines or ↵David Robillard1-4/+12
quotes are read. Don't escape legal ASCII characters when writing long literals. git-svn-id: http://svn.drobilla.net/serd/trunk@439 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-03-04Support dots and colons in pnames.David Robillard1-29/+50
git-svn-id: http://svn.drobilla.net/serd/trunk@436 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-03-04Add missing newline.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@434 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-03-04Improve dot support.David Robillard1-35/+35
Extend test suite to cover more of the new Turtle draft. git-svn-id: http://svn.drobilla.net/serd/trunk@433 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-03-03Fix crazy logic and redundant call in read_PN_LOCAL().David Robillard1-4/+4
git-svn-id: http://svn.drobilla.net/serd/trunk@432 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-03-03Pass negative eval tests (reject invalid escaped URI characters).David Robillard1-15/+18
git-svn-id: http://svn.drobilla.net/serd/trunk@430 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-03-03Remove dead code.David Robillard1-8/+4
git-svn-id: http://svn.drobilla.net/serd/trunk@429 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-03-03Remove comments referring to old grammar rules.David Robillard1-33/+0
git-svn-id: http://svn.drobilla.net/serd/trunk@425 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-03-02Pass turtle-syntax-number-08.ttl (integer followed by terminating dot).David Robillard1-112/+145
Better error handling. git-svn-id: http://svn.drobilla.net/serd/trunk@423 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-02-25Support most of the latest Turtle Editor's Draft.David Robillard1-299/+332
git-svn-id: http://svn.drobilla.net/serd/trunk@418 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-02-24Fix typo.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@415 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-02-24Generate shorter blank node IDs like the new Turtle test suite.David Robillard1-13/+13
git-svn-id: http://svn.drobilla.net/serd/trunk@414 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-09-09Fix clashing symbol "error" in amalgamation build.David Robillard1-16/+16
git-svn-id: http://svn.drobilla.net/serd/trunk@384 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-08-08Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes ↵David Robillard1-5/+5
-Wmissing-prototypes. git-svn-id: http://svn.drobilla.net/serd/trunk@374 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-07-17Support digits at start of local names as per new grammar.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@360 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-07-05Add error callback to reader and writer for custom error reporting.David Robillard1-20/+42
Add -q option to serdi to suppress all non-data output, e.g. errors. Resolves #815. git-svn-id: http://svn.drobilla.net/serd/trunk@354 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-05-08Add incremental read interface suitable for reading from infinite streams.David Robillard1-12/+66
git-svn-id: http://svn.drobilla.net/serd/trunk@350 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-27Delete trailing whitespace.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@340 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-18Add serd_reader_set_default_graph() for reading a file as a named graph.David Robillard1-1/+17
git-svn-id: http://svn.drobilla.net/serd/trunk@338 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-08Fix compilation in VC++.David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@334 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-03Fix reading of empty files (e.g. /dev/null) test case.David Robillard1-7/+7
git-svn-id: http://svn.drobilla.net/serd/trunk@328 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-29Handle files and strings that start with a UTF-8 Byte Order Mark (fix #814).David Robillard1-1/+15
git-svn-id: http://svn.drobilla.net/serd/trunk@326 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Add prefix to generated node IDs as well, to avoid clashing when reading ↵David Robillard1-8/+13
multiple documents into one model. git-svn-id: http://svn.drobilla.net/serd/trunk@324 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Report read error if both "genid" and "docid" IDs are found in the same ↵David Robillard1-7/+13
document, to prevent silent merging of distinct blank nodes. git-svn-id: http://svn.drobilla.net/serd/trunk@320 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Make -p actually work as advertised.David Robillard1-17/+13
git-svn-id: http://svn.drobilla.net/serd/trunk@319 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-20Remove odd assertion.David Robillard1-2/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@312 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-20Trim some fat by taking advantage of ReadContext for statement emission.David Robillard1-16/+9
git-svn-id: http://svn.drobilla.net/serd/trunk@310 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-20Fix collection parsing code to not leak stack space.David Robillard1-178/+148
Collection parsing now truly uses O(1) memory. Trim some fat. git-svn-id: http://svn.drobilla.net/serd/trunk@309 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-20Use iterative algorithm for collection parsing.David Robillard1-59/+52
git-svn-id: http://svn.drobilla.net/serd/trunk@306 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-20Implement pretty-printing for collections.David Robillard1-50/+46
git-svn-id: http://svn.drobilla.net/serd/trunk@305 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-01Fix jumps past variable initialization.David Robillard1-4/+6
git-svn-id: http://svn.drobilla.net/serd/trunk@299 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-01-16Support compilation as C++ under MSVC++David Robillard1-5/+4
git-svn-id: http://svn.drobilla.net/serd/trunk@291 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-01-16Update copyright dates.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@285 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-01-14Lint.David Robillard1-4/+4
git-svn-id: http://svn.drobilla.net/serd/trunk@283 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-01-06Remove unused parameter.David Robillard1-7/+7
git-svn-id: http://svn.drobilla.net/serd/trunk@281 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-27Warn on invalid unicode character and replace (fix #796).David Robillard1-7/+13
git-svn-id: http://svn.drobilla.net/serd/trunk@279 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-25Near 100% branch coverage.David Robillard1-20/+18
git-svn-id: http://svn.drobilla.net/serd/trunk@277 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-25100% test coverage.David Robillard1-64/+32
git-svn-id: http://svn.drobilla.net/serd/trunk@276 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-16Remove debug print.David Robillard1-1/+0
git-svn-id: http://svn.drobilla.net/serd/trunk@259 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-15Remove peek_string, use exactly 1 page as a read buffer.David Robillard1-107/+83
git-svn-id: http://svn.drobilla.net/serd/trunk@256 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-12More parser micro-optimization.David Robillard1-47/+48
git-svn-id: http://svn.drobilla.net/serd/trunk@253 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-12Remove eat_byte correctness checks for known-correct bytes in optimized builds.David Robillard1-70/+77
git-svn-id: http://svn.drobilla.net/serd/trunk@252 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-12Remove branch for EOF detection in eat_byte.David Robillard1-9/+4
git-svn-id: http://svn.drobilla.net/serd/trunk@251 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-12Fix memory error introduced a few commits ago.David Robillard1-2/+5
git-svn-id: http://svn.drobilla.net/serd/trunk@247 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Fix debug build without --stack-check.David Robillard1-0/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@245 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Move all #ifdef gunk to serd_internal.h.David Robillard1-18/+3
Centralise file open and buffer allocation to localize platform tweaks. git-svn-id: http://svn.drobilla.net/serd/trunk@244 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Use posix_fadvise to advise about sequential file access.David Robillard1-1/+8
git-svn-id: http://svn.drobilla.net/serd/trunk@243 490d8e77-9747-427b-9fa3-0b8f29cee8a0