Eric Fischer
18e90522cb
Remember return value from main()
2014-02-19 17:11:56 -08:00
Eric Fischer
b09634f4f8
More cleanup after errors. Command line options for the reader styles.
2014-02-08 10:28:52 -08:00
Eric Fischer
b72bb6f1f4
Clean up after errors and fix related bugs:
...
It was freeing the wrong object when there was an error
attaching an object to its parent!
Don't crash when printing null (partially read) hash values.
2014-02-08 09:31:49 -08:00
Eric Fischer
5e6fa6f8dc
Remember to deallocate the parser
2014-02-08 00:42:28 -08:00
Eric Fischer
9d31e8a05e
Slightly less wordy name for reading JSON with separators
2014-02-07 18:01:18 -08:00
Eric Fischer
39f9ff3f04
Make streaming formatting consistent
2014-02-07 17:14:39 -08:00
Eric Fischer
9979c70b1f
Add the whole-tree reader
2014-02-07 17:02:33 -08:00
Eric Fischer
1cbf8a813e
Match documented function names
2014-02-07 16:49:52 -08:00
Eric Fischer
fee27e1353
Add a callback interface for non-closing punctuation
2014-02-07 15:51:46 -08:00
Eric Fischer
415193ad8e
Remove old state resetting
2014-02-06 21:05:46 -08:00
Eric Fischer
69a5ca0bb9
Include filename in error output
2014-02-06 20:51:15 -08:00
Eric Fischer
a74444af28
Track line number for error reports
2014-02-06 20:44:39 -08:00
Eric Fischer
ed079e37a9
Add a reader abstraction
2014-02-06 19:22:37 -08:00
Eric Fischer
979b9243d8
A container object makes the state transitions more straightforward
...
And should make it possible to free an object that has just been read
and still know what the next state will be, importantly.
2014-02-06 18:56:22 -08:00
Eric Fischer
42283ece0b
More sensible way of passing errors back to caller
2014-02-06 12:13:23 -08:00
Eric Fischer
d630aa917e
Put arrays in order by getting rid of the linked lists.
...
Resizing is ugly, but less ugly than backwards arrays.
2014-02-05 23:18:27 -08:00
Eric Fischer
c69e595e4e
Do escaping in output strings
2014-02-05 22:34:47 -08:00
Eric Fischer
7641459278
Handle named files, not just standard input
2014-02-05 22:00:52 -08:00
Eric Fischer
7983c66add
Separate source and header files
2014-02-05 21:27:48 -08:00