Commit graph

40 commits

Author SHA1 Message Date
Cameron Ross e37c4daa7e switch to a non-templated Dumper struct (#234)
switch to a non-templated Dumper struct
merged-on-behalf-of: Basile-z <Basile-z@users.noreply.github.com>
2019-02-07 08:48:50 +01:00
Cameron Ross 8de1a45922 convert Resolver to struct (#229)
convert Resolver to struct
merged-on-behalf-of: Basile-z <Basile-z@users.noreply.github.com>
2019-02-05 10:00:48 +01:00
Cameron Ross b63ea1aaae make node types into enums and clean up code using them (#225)
* make node types into enums and clean up code using them

* add some tests for anchorable
2019-01-28 02:56:00 +01:00
Cameron Ross 7f913246ea Move custom types to Node (#213)
Move custom types to Node
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2019-01-15 08:37:50 +01:00
Cameron Ross 1f5eb76996 Implement range interface for Loader, remove old opApply interface (#196)
* Implement range interface for Loader, remove old opApply interface

* remove dead Composer.getSingleNode

* add Returns: lines to range primitives

* a ddoc fixup
2018-09-04 17:01:56 +02:00
Cameron Ross 8e0ca41eb5 Replace stream-based dumping interface with an outputrange-based interface (#154)
Replace stream-based dumping interface with an outputrange-based interface
merged-on-behalf-of: Cameron Ross <elpenguino@gmail.com>
2018-06-22 05:59:10 +02:00
Cameron Ross bb7b87370a add tojson subpackage for converting yaml docs to json (#171)
add tojson subpackage for converting yaml docs to json
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-06-21 05:34:07 +02:00
Cameron Ross a0ac38fbd7 make Loader interface a bit more consistent (#124)
make Loader interface a bit more consistent
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-05-31 09:02:21 +02:00
The Dlang Bot 0b2f2396ac
Merge pull request #127 from Herringway/better-benchmark
improve benchmark subpackage
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-05-26 13:05:24 +02:00
Cameron Ross 5c801d6689
make Constructor wholly @safe 2018-04-30 04:24:31 -03:00
Cameron Ross 48f08ca3cc
improve benchmark subpackage 2018-04-29 18:52:17 -03:00
Cameron Ross 4680e1b5b2 update examples so they can compile again, and make them visible to dub 2018-04-27 08:53:56 +03:00
Ferdinand Majerech c630f4713e Examples now point to the dub D:YAML package so they can ba stand-alone. 2014-08-06 17:39:53 +02:00
Ferdinand Majerech 1f55fccc26 Updated yaml_bench to benchmark parsing, not Loader construction. 2014-08-04 02:14:37 +02:00
Ferdinand Majerech 46a574c0b4 Fixed a typo. 2014-08-04 02:13:06 +02:00
Ferdinand Majerech 760e39479e yaml_gen now gens strings with user-specified alphabet, with Unicode support. 2014-08-02 23:29:55 +02:00
Ferdinand Majerech af4245811a yaml_gen optimization. 2014-08-02 23:28:45 +02:00
Ferdinand Majerech 85b89d3323 yaml_gen should no longer generate maps/omaps with duplicate keys. 2014-08-02 23:28:33 +02:00
Ferdinand Majerech 0d89c2beb1 yaml_bench Scanner benchmark, and files are not realoaded from HDD by default. 2014-08-02 23:27:44 +02:00
Ferdinand Majerech d4359f6394 Ported build types from CDC to dub. 2014-08-01 20:10:03 +02:00
Ferdinand Majerech a4b92ac5d0 Removed binary the shouldn't have been comittes. 2014-08-01 20:08:56 +02:00
Ferdinand Majerech 6ccda33467 Minor fixes in examples and the 'custom types' tutorial. 2014-08-01 17:09:05 +02:00
Ferdinand Majerech 0dbe638296 Examples now use dub instead of Makefiles. 2014-08-01 17:06:23 +02:00
Ferdinand Majerech ab9ba7f5ba Updated import paths in docs, examples. 2013-12-17 15:14:44 +01:00
Ferdinand Majerech a341340d6c Using the dyaml.all module instead of yaml (which will eventually be removed). 2013-12-17 15:09:19 +01:00
Kiith-Sa 3f75b57b9e yaml_stats example DMD 2.061 compatibility. 2012-12-27 22:20:45 +01:00
Ferdinand Majerech 9596806644 Red-Black Trees are now used for duplicate detection, and planned
to be used for unordered map storage. This is because AAs still
don't work correctly and even if they did, require the user to
define both toHash and opCmp/opEquals for every YAML
struct/class. Now only opCmp needs to be defined.
Documentation/tutorials/examples have been updated accordingly.
2012-01-23 15:57:26 +01:00
Ferdinand Majerech fbc962623d Simplified the Constructor API. 2011-11-17 23:53:24 +01:00
Ferdinand Majerech 915428c8ed CDC and yaml_bench makefile now always compile with debug
symbols. yaml_bench can now repeat the benchmark many times in a
single run. yaml_gen can now disable collection keys in mappings.
2011-10-23 16:10:27 +02:00
Ferdinand Majerech 13ea5f0c24 Added a shortcut alias called "as" for Node.get(), and replaced
get() with as() all over the code, tutorials, examples and docs.
Fixed a bug in YAML benchmark makefile.
Fixed a bug in autoddoc configuration.
2011-10-22 17:06:32 +02:00
Ferdinand Majerech fb67e775e4 Added a YAML benchmark that loads and optionally extracts data
from and/or dumps a YAML file.
2011-10-22 16:20:06 +02:00
Ferdinand Majerech 1f2243190f Added a random YAML generator to serve as an example and for
benchmarking.
2011-10-22 00:24:29 +02:00
Ferdinand Majerech 7402d8f827 Fixed Makefile of the yaml_stats example.
Fixed a bug in Node that caused an empty exception message.
2011-10-21 20:40:37 +02:00
Ferdinand Majerech f726ff0b94 Added an example application that displays statistics about YAML
documents.
2011-10-20 23:20:02 +02:00
Ferdinand Majerech a87d618732 Examples' Makefiles now have a clean target. 2011-10-20 15:51:31 +02:00
Ferdinand Majerech 009017eef0 Simplified the Constructor and Resolver example -
no need for range checks as they are handled in Node itself.
2011-10-17 13:13:02 +02:00
Ferdinand Majerech 548480b06b Changed the Constructor API (for loading of custom types) to
make it easier to load custom classes/structs. Updated API docs,
tutorials and examples accordingly.
2011-10-17 12:53:38 +02:00
Ferdinand Majerech 210091a75f Fixed a bug which prevented dumping to file. Updated tutorials
and example with new information.
2011-10-15 16:31:23 +02:00
Ferdinand Majerech 34b11405d4 Implemented the resolver unittest.
Changed Loader API to be in line with Dumper,
and updated examples, tutorials and docs.
2011-10-12 23:49:42 +02:00
Ferdinand Majerech 283c42bf8f Initial commit. 2011-08-16 14:53:13 +02:00