Commit graph

763 commits

Author SHA1 Message Date
John-Colvin aedc2f0c7a parse can't take rvalue slices as it uses ref 2013-03-23 17:01:33 +00:00
John-Colvin 36a7d7087f another ref parameter that wasn't needed 2013-03-23 16:38:57 +00:00
John-Colvin da64d9e5c2 Fixed warning about slice assignment 2013-03-23 16:35:11 +00:00
John Colvin 593eaaed74 no need for ref in determineBlockHints
The tightened rules for rvalues and ref parameters make this an error if it is passed a slice, as in initBlock.

This commit fixes this.
2013-03-23 16:25:52 +00:00
Ferdinand Majerech 0c0bfa5d29 Merge pull request #5 from carlor/make-dub
Make D-YAML a dub package.
2013-02-24 11:52:29 -08:00
Nathan M. Swan 9058cea2f3 Make D-YAML a dub package. 2013-02-22 23:02:31 -09:00
Kiith-Sa 7e3aa4f476 Optimized GC usage; speedup of ~18%. GC disabling/enabling is also used. 2012-12-30 00:25:23 +01:00
Kiith-Sa 3f75b57b9e yaml_stats example DMD 2.061 compatibility. 2012-12-27 22:20:45 +01:00
Kiith-Sa 539f5837d6 Temporaries in constructor.d due to changes in ref passing (by John Colvin). 2012-12-27 22:10:29 +01:00
Kiith-Sa ea0237c716 ZeroString opEquals by const ref (by Josh Colvin). 2012-12-27 22:04:42 +01:00
Kiith-Sa f06cb132a3 dyaml.node.merge() usage fix. 2012-12-27 22:00:31 +01:00
Kiith-Sa 900bd51d52 More @safe Node and Node.Pair. 2012-12-27 21:50:53 +01:00
Kiith-Sa d6617f327f More nothrow/formatting fixes (by John Colvin). 2012-12-27 21:50:09 +01:00
Kiith-Sa f33918748a Replaced 'in' by 'const' in exception, scanner. 2012-12-27 21:21:56 +01:00
Kiith-Sa 163b3c9d54 std.string.format compatibility fixes (by John Colvin) 2012-12-27 21:21:18 +01:00
Kiith-Sa 6018fc49ea @safe/nothrow changes (by John Colvin) 2012-12-27 20:56:15 +01:00
Kiith-Sa b6ecb80f4b Fixed a minor output formatting bug. 2012-12-27 20:11:57 +01:00
Kiith-Sa 5f2cc8791d .gitignore update. 2012-12-27 20:11:38 +01:00
Kiith-Sa 4b3bf5fccc Minor formatting fixes. 2012-12-27 20:11:26 +01:00
Kiith-Sa f4dc3690f4 Fixed CDC for LDMD2. 2012-12-17 21:09:33 +01:00
John-Colvin 2b1abda154 Fix remaining format errors 2012-12-11 16:06:20 +00:00
John-Colvin 397ac65baa modified: dyaml/exception.d
modified:   dyaml/representer.d
2012-12-11 15:32:25 +00:00
John-Colvin 75e2e7f80a modified: dyaml/constructor.d
modified:   test/src/common.d
2012-12-04 15:34:29 +00:00
John-Colvin 94adb4241e modified: dyaml/constructor.d
modified:   dyaml/node.d
	modified:   test/src/common.d
2012-12-04 13:50:59 +00:00
John-Colvin 1412466e93 modified: dyaml/constructor.d
modified:   dyaml/dumper.d
	modified:   dyaml/emitter.d
	modified:   dyaml/exception.d
	modified:   dyaml/node.d
	modified:   dyaml/parser.d
	modified:   dyaml/representer.d
	modified:   dyaml/scanner.d
	modified:   dyaml/zerostring.d
2012-12-04 12:02:33 +00:00
kiith-sa 499ce02178 Merge branch 'master' of github.com:kiith-sa/D-YAML 2012-11-02 14:33:09 +01:00
kiith-sa f93e3cf032 Minor debug message fixes. 2012-11-02 14:32:09 +01:00
kiith-sa 4ccd938a43 Utility function to create a loader from string (avoids API-break in future). 2012-11-02 14:31:50 +01:00
kiith-sa f493ad540e Updated .gitignore. 2012-11-02 14:30:56 +01:00
Ferdinand Majerech 4d737be931 Fixed a bug that broke mappings longer than 65536 lines. 2012-09-26 11:51:47 +02:00
kiith-sa c7e97b6113 User defined constructors now can construct all default types (e.g. float). 2012-09-22 22:45:37 +02:00
kiith-sa edf3e2a799 Using std.typecons.Flag where possible, and more in->const. 2012-09-14 01:21:01 +02:00
kiith-sa 19d88d156a Simplified some Emitter code. 2012-09-14 01:16:05 +02:00
kiith-sa 58fc17197b Replaced some incorrect 'in' uses with 'const'. 2012-09-13 21:37:28 +02:00
kiith-sa 4f78702a57 Added pure/@safe/nothrow where possible. 2012-09-09 01:42:13 +02:00
kiith-sa 37a661b034 Fixed compilation with DMD 2.058.
There are some hacks to allow toHash() methods
to be const nothrow @safe, these are due to
Phobos problems (e.g. Variant.toHash() is not const nor nothrow).
2012-08-30 15:38:51 +02:00
Ferdinand Majerech c690d56d9f Added a property to determine if the node is null. 2012-04-07 03:59:54 +02:00
Ferdinand Majerech 5aacfe79b2 Improved an error message when there's no constructor for a tag. 2012-04-01 16:57:21 +02:00
Ferdinand Majerech fdceb1bdcb Fixed a bug on Ubuntu 10.04 2012-03-23 19:57:57 +01:00
Ferdinand Majerech 206499a399 Fixed CDC on Windows 2012-03-20 06:29:25 +01:00
Ferdinand Majerech 1a1783a228 Fixed a compilation bug on 32bit. 2012-03-19 14:31:11 +01:00
Ferdinand Majerech d64de6a312 Merged implementations of Node.remove() and Node.removeAt(). 2012-03-01 17:43:42 +01:00
Ferdinand Majerech 2505c0b3af Improved Node exception messages. 2012-03-01 15:23:53 +01:00
Ferdinand Majerech 2448c69f55 Added containsKey() to check if a mapping has specified key. 2012-03-01 13:17:32 +01:00
Ferdinand Majerech ebc6e64c2b API BREAKING:
Node opEquals(), opIndex(), opIndexAssign(), remove(), removeAt()
no longer automatically convert to string. This was changed
to prevent the API from getting too non-obvious, and to
remove the need for too many special cases in the code.
The API documentation was changed accordingly.
opApply()  still automatically converts to string.

Added a contains() method to Node.

Clarified YAML null values in the documentation.

Improved unittests.

Fixed a bug that caused opIndex() and opIndexAssign() to only
work with exactly the same type as stored in the node
(e.g. real, but not double, for floating-point values)

Fixed some potential bugs.

Minor documentation fixes.
2012-03-01 11:44:05 +01:00
Ferdinand Majerech 7673281ae4 CDC fixes for Windows. 2012-01-24 11:23:06 +01:00
Ferdinand Majerech 242960e927 Updated DMD links. 2012-01-23 18:40:05 +01:00
Ferdinand Majerech aad93aa42e Updated changelog for 0.4 . 2012-01-23 16:57:40 +01:00
Ferdinand Majerech 3e1b01f097 Updated version numbers to 0.4 . 2012-01-23 16:20:52 +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