Jesse Beder
9e37409b4b
Add features to read binary:
...
Flag -n N repeats parsing N times.
Flag -c (--cache) caches the input in a string and uses that to parse.
2016-01-30 18:28:27 -06:00
Scott Wolchok
a5b72f7ae6
read benchmark: accept a filename as an argument
...
On my Macbook Pro, reading from standard input incurs a bunch of locking
overhead, which complicates profiling and (IMO) adds noise to
results. This adds the option to read from a file, which doesn't incur
this overhead.
2016-01-30 17:41:28 -06:00
Matt Blair
24fa1b3380
Replace Boost usage with C++11 features
...
- Adds 'std=c++11' compiler flags
- Replaces boost::type_traits with std::type_traits
- Replaces boost::shared_ptr with std::shared_ptr
- Replaces std::auto_ptr with std::unique_ptr
- Replaces raw pointers with std::unique_ptr in ptr_vector, ptr_stack, and SettingChanges
- Replaces boost::noncopyable with deleted copy and assignment operators
- Replaces boost::next with std::next
- Replaces boost::enable_if with std::enable_if
- Replaces boost::is_convertible with std::is_convertible
- Replaces ptrdiff_t with std::ptrdiff_t
- Replaces boost::iterator_facade and boost::iterator_adaptor with std::iterator, borrowing the 'proxy reference' technique from boost
- Removes Boost dependency from CMakeLists
- Formats changed files using clang-format
2016-01-10 22:44:15 -05:00
Jesse Beder
0970a108bd
Remove stray field
2015-01-24 17:58:58 -06:00
Jesse Beder
1025f76df1
Fix memory leak when accessing a const Node with a key that doesn't exist.
2015-01-24 17:22:45 -06:00
Jesse Beder
0c280724e9
Add flow/block style setting on Nodes
2015-01-24 13:11:43 -06:00
Jesse Beder
9880b608b9
Merge from core
2015-01-24 12:26:16 -06:00
Jesse Beder
ad712c4f2d
Add EmitterStyle, which will allow sequence or map style (i.e., flow or block) to be preserved between parsing and emitting
2015-01-24 12:19:20 -06:00
Jesse Beder
dea3428ce0
Merge from core
2014-03-25 00:07:38 -05:00
Jesse Beder
e0b293e757
Add test and util sources to make format
2014-03-25 00:02:16 -05:00
Jesse Beder
599d050eb2
Merge read fix from core
2014-03-22 23:19:07 -05:00
Jesse Beder
314baa6e13
Add missing include to read.cpp
2014-03-22 23:18:27 -05:00
Jesse Beder
4b40441cee
Run IWYU
2014-03-22 23:14:48 -05:00
Jesse Beder
8d7eb02c46
Merge IWYU from core
2014-03-22 23:08:09 -05:00
Jesse Beder
5fd25df859
Run IWYU
2014-03-22 22:46:04 -05:00
Jesse Beder
d63ec48c8a
Run clang-format
2014-03-22 13:05:03 -05:00
Jesse Beder
3355bbb399
Merge clang-format from core
2014-03-22 13:03:18 -05:00
Jesse Beder
9b4db068bb
Run clang-format
2014-03-22 12:49:16 -05:00
Jesse Beder
b12e4b0781
Merged from core, rfaef276b1f6e
2012-11-08 18:33:12 -06:00
Jesse Beder
979a91692f
Added small 'read' program to test reading a single doc (from stdin)
2012-09-15 16:29:07 -07:00
Jesse Beder
f29ea4b070
Merged end of map/seq flow fix from core
2012-06-09 14:42:00 -05:00
Jesse Beder
68dd9b5d18
Fixed bug where the parser doesn't find the end of a map or seq flow
2012-06-09 14:39:00 -05:00
Jesse Beder
a78069a6e2
Merged ostreams for the emitter change from the core
2012-05-25 19:35:24 -05:00
Jesse Beder
2ffdc5b4d1
Added constructor to the Emitter with a stream, so you can write directly to a stream instead of our temp
2012-05-25 18:22:33 -05:00
Jesse Beder
e6d4a915dc
Switched the ostream wrapper to wrap a std::vector<char> instead of our manually managed memory
2012-05-25 18:17:14 -05:00
Jesse Beder
4116d89f2c
Merged emitter refactor from core
2012-05-23 15:30:03 -05:00
Jesse Beder
0abbf650b5
Fixed char output
2012-05-22 17:50:10 -05:00
Jesse Beder
c664d50d5c
Fixed double quote escapes (e.g., \n is now that instead of \x0a)
2012-05-22 17:45:31 -05:00
Jesse Beder
b8a87c43bc
Added flow seq
2012-05-22 15:42:45 -05:00
Jesse Beder
944ebb7d1e
Fixed settings reverting properly
2012-05-22 15:00:10 -05:00
Jesse Beder
bf07af52ff
Added long key
2012-05-22 14:26:34 -05:00
Jesse Beder
41e4cd3308
Split block map simple/long key for both key/value
2012-05-22 14:20:50 -05:00
Jesse Beder
952fe51c73
Added writing float/double
2012-05-22 13:59:31 -05:00
Jesse Beder
c95bcae49f
Added writing integral types
2012-05-22 13:57:44 -05:00
Jesse Beder
879f96d2f6
Tweak sandbox
2012-05-22 12:59:58 -05:00
Jesse Beder
80823583a0
Tweaked spacing for comments
2012-05-22 12:54:54 -05:00
Jesse Beder
0814813302
Added comments, not entirely correct
2012-05-22 12:29:36 -05:00
Jesse Beder
0f3f1e26a7
Fixed map/value
2012-05-21 23:47:57 -05:00
Jesse Beder
07e88a78cb
Added alias
2012-05-21 23:37:49 -05:00
Jesse Beder
d3801b7482
Added newlines, fixed map/map
2012-05-21 23:29:59 -05:00
Jesse Beder
b0dd0f862a
Fixed anchor/tag in seq > map
2012-05-21 23:23:53 -05:00
Jesse Beder
3cae26a75e
Added tags and anchors
2012-05-21 23:19:29 -05:00
Jesse Beder
91eac5d93d
Implemented block seq and block map indentation/newlines
2012-05-21 22:14:26 -05:00
Jesse Beder
b5d8241dfa
Added block seq indentation
2012-05-21 21:04:10 -05:00
Jesse Beder
65d80ebc11
Started prepare node
2012-05-21 17:06:12 -05:00
Jesse Beder
923ccc8fed
Implemented begin/end doc
2012-05-21 16:54:45 -05:00
Jesse Beder
39165338e0
Added sandbox to play with
2012-05-20 01:46:08 -05:00
Jesse Beder
58d4fedfc3
Backed out of removing parse
2012-05-19 15:55:13 -05:00
Jesse Beder
55fc800989
Updated from core
2012-05-19 15:54:52 -05:00
Jesse Beder
1f4d8ee3b4
Removed parse
2012-05-19 15:52:43 -05:00