4 ms·
I recently wrote a Turtle[1] parser and abbreviating serialiser[2] in just over 2K lines, which I'd say is roughly equivalent in complexity to doing the same fo
by drobilla 16y ago
I recently wrote a Turtle[1] parser and abbreviating serialiser[2] in just over 2K lines, which I'd say is roughly equivalent in complexity to doing the same for JSON. This is with UTF-8 support, full conformance, URI parsing/resolution, line/column error reporting, etc. A more kludgy job could be quite a bit smaller still...
[1]: http://www.w3.org/TeamSubmission/turtle/ http://www.w3.org/TeamSubmission/turtle/
[2]: http://drobilla.net/software/serd/ http://drobilla.net/software/serd/