Commit Graph

55 Commits

Author SHA1 Message Date
Jesse Beder
d818065d1c 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
beder
64a5f2c5e9 Add test and util sources to make format 2014-03-25 00:02:16 -05:00
beder
6b171a7402 Add missing include to read.cpp 2014-03-22 23:18:27 -05:00
beder
9154ad2e6f Run IWYU 2014-03-22 22:46:04 -05:00
beder
91a8fbda5b Run clang-format 2014-03-22 12:49:16 -05:00
beder
b43bf996d4 Added small 'read' program to test reading a single doc (from stdin) 2012-09-15 16:29:07 -07:00
beder
9bbf43b23e Fixed bug where the parser doesn't find the end of a map or seq flow 2012-06-09 14:39:00 -05:00
beder
c3facc9b58 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
beder
7c436de457 Switched the ostream wrapper to wrap a std::vector<char> instead of our manually managed memory 2012-05-25 18:17:14 -05:00
beder
f19fb180c2 Fixed char output 2012-05-22 17:50:10 -05:00
beder
a98f082cb9 Fixed double quote escapes (e.g., \n is now that instead of \x0a) 2012-05-22 17:45:31 -05:00
beder
b6696cd30c Added flow seq 2012-05-22 15:42:45 -05:00
beder
b3d84f62a1 Fixed settings reverting properly 2012-05-22 15:00:10 -05:00
beder
c96f6fb05b Added long key 2012-05-22 14:26:34 -05:00
beder
2dc8e5d5f6 Split block map simple/long key for both key/value 2012-05-22 14:20:50 -05:00
beder
436f809c32 Added writing float/double 2012-05-22 13:59:31 -05:00
beder
27b2688acb Added writing integral types 2012-05-22 13:57:44 -05:00
beder
27f89d8212 Tweak sandbox 2012-05-22 12:59:58 -05:00
beder
00f1d064be Tweaked spacing for comments 2012-05-22 12:54:54 -05:00
beder
799fdf942b Added comments, not entirely correct 2012-05-22 12:29:36 -05:00
beder
6a0c9a59c7 Fixed map/value 2012-05-21 23:47:57 -05:00
beder
80d64895f2 Added alias 2012-05-21 23:37:49 -05:00
beder
c27b71827b Added newlines, fixed map/map 2012-05-21 23:29:59 -05:00
beder
ff99a08b3c Fixed anchor/tag in seq > map 2012-05-21 23:23:53 -05:00
beder
52ae87a216 Added tags and anchors 2012-05-21 23:19:29 -05:00
beder
aed493f957 Implemented block seq and block map indentation/newlines 2012-05-21 22:14:26 -05:00
beder
6f6633c61f Added block seq indentation 2012-05-21 21:04:10 -05:00
beder
dc998b52dc Started prepare node 2012-05-21 17:06:12 -05:00
beder
a60635ed5a Implemented begin/end doc 2012-05-21 16:54:45 -05:00
beder
4d602919c3 Added sandbox to play with 2012-05-20 01:46:08 -05:00
beder
b7979fe2bf Removed parse 2012-05-19 15:52:43 -05:00
beder
d72f94ba87 Removed the new API from the default branch 2012-01-20 23:50:39 -06:00
beder
488c3d6cef Fixed the #ifdefs for the api stuff 2011-10-18 14:47:35 -05:00
beder
183ba98d03 Switched YAML::Parse to YAML::Load, and added LoadAll 2011-09-13 14:24:47 -05:00
beder
4bbe984bdc Fixed up the old API stuff, and removed the util/value (since it's no longer needed) 2011-09-10 23:11:28 -05:00
beder
fb538c9490 Set up util/parse for the new API 2011-09-10 23:03:02 -05:00
beder
2851f5f8c9 Fixed minor things that used the old API, compiles/links/runs\! 2011-09-10 22:59:27 -05:00
beder
e905b74232 Major switch from Value -> Node. The library compiles with the new API, but tests are still oldies, and don't compile 2011-09-10 17:57:23 -05:00
beder
33a71151ca Added helper emitter functions, but we have a problem: YAML::Value is already a manipulator 2011-09-10 16:50:44 -05:00
beder
89f87d855d Updated the node/value classes with the new iterators, they compile until we try to instantiate anything 2011-09-10 14:11:42 -05:00
beder
b8e9b52af7 Implemented sugar Parse() functions 2011-09-09 23:40:19 -05:00
beder
91a3f020ff Map iterator works\! 2011-09-09 19:25:11 -05:00
beder
f0ae0254d4 Sequence iterator works\! 2011-09-09 19:22:17 -05:00
beder
7a1e47e03f Added append() 2011-09-09 02:51:35 -05:00
beder
255a392eb9 Switched operator[] access to node reference equality, not node equality 2011-09-09 02:39:36 -05:00
beder
37cd3bd53c Added half of the std::map conversion (we don't have reading from Values yet) 2011-09-08 02:10:04 -05:00
beder
c080478444 Added back the streamable conversions 2011-09-08 02:05:03 -05:00
beder
bb2eafc387 Switched convert to a templated struct that can be specialized (so we can partially specialize it) 2011-09-08 02:02:15 -05:00
beder
21fbb461c0 Added streamable conversions 2011-09-08 00:48:40 -05:00
beder
3b0cc619b2 Implemented conversion for std::string, including a bypass-accessor to the scalar value 2011-09-07 15:49:01 -05:00