Using the dyaml.all module instead of yaml (which will eventually be removed).

This commit is contained in:
Ferdinand Majerech 2013-12-17 15:09:19 +01:00
parent 1c017c6492
commit a341340d6c
13 changed files with 18 additions and 18 deletions

View file

@ -77,7 +77,7 @@ into the file:
.. code-block:: d .. code-block:: d
import std.stdio; import std.stdio;
import yaml; import dyaml.all;
void main() void main()
{ {
@ -100,8 +100,8 @@ into the file:
Explanation of the code Explanation of the code
^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^
First, we import the *yaml* module. This is the only D:YAML module you need to First, we import the *dyaml.all* module. This is the only D:YAML module you
import - it automatically imports all needed modules. need to import - it automatically imports all needed modules.
Next we load the file using the *Loader.load()* method. *Loader* is a struct Next we load the file using the *Loader.load()* method. *Loader* is a struct
used for parsing YAML documents. The *load()* method loads the file as used for parsing YAML documents. The *load()* method loads the file as

View file

@ -1,7 +1,7 @@
import std.ascii; import std.ascii;
import std.stdio; import std.stdio;
import std.string; import std.string;
import yaml; import dyaml.all;
struct Color struct Color
{ {

View file

@ -1,5 +1,5 @@
import std.stdio; import std.stdio;
import yaml; import dyaml.all;
void main() void main()
{ {

View file

@ -1,5 +1,5 @@
import std.stdio; import std.stdio;
import yaml; import dyaml.all;
struct Color struct Color
{ {

View file

@ -1,7 +1,7 @@
import std.ascii; import std.ascii;
import std.stdio; import std.stdio;
import std.string; import std.string;
import yaml; import dyaml.all;
struct Color struct Color
{ {

View file

@ -5,7 +5,7 @@ import std.conv;
import std.datetime; import std.datetime;
import std.stdio; import std.stdio;
import std.string; import std.string;
import yaml; import dyaml.all;
///Print help information. ///Print help information.
void help() void help()

View file

@ -7,7 +7,7 @@ import std.math;
import std.random; import std.random;
import std.stdio; import std.stdio;
import std.string; import std.string;
import yaml; import dyaml.all;
immutable alphabet = " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"; immutable alphabet = " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";

View file

@ -3,7 +3,7 @@
import std.stdio; import std.stdio;
import std.string; import std.string;
import yaml; import dyaml.all;
///Collects statistics about a YAML document and returns them as string. ///Collects statistics about a YAML document and returns them as string.

View file

@ -156,7 +156,7 @@ final class Constructor
* -------------------- * --------------------
* import std.string; * import std.string;
* *
* import yaml; * import dyaml.all;
* *
* struct MyStruct * struct MyStruct
* { * {
@ -210,7 +210,7 @@ final class Constructor
* -------------------- * --------------------
* import std.string; * import std.string;
* *
* import yaml; * import dyaml.all;
* *
* struct MyStruct * struct MyStruct
* { * {
@ -262,7 +262,7 @@ final class Constructor
* -------------------- * --------------------
* import std.string; * import std.string;
* *
* import yaml; * import dyaml.all;
* *
* struct MyStruct * struct MyStruct
* { * {

View file

@ -130,7 +130,7 @@ final class Representer
* -------------------- * --------------------
* import std.string; * import std.string;
* *
* import yaml; * import dyaml.all;
* *
* struct MyStruct * struct MyStruct
* { * {
@ -171,7 +171,7 @@ final class Representer
* -------------------- * --------------------
* import std.string; * import std.string;
* *
* import yaml; * import dyaml.all;
* *
* class MyClass * class MyClass
* { * {

View file

@ -99,7 +99,7 @@ final class Resolver
* -------------------- * --------------------
* import std.regex; * import std.regex;
* *
* import yaml; * import dyaml.all;
* *
* void main() * void main()
* { * {

View file

@ -9,7 +9,7 @@ module dyaml.testcommon;
public import std.conv; public import std.conv;
public import std.stdio; public import std.stdio;
public import std.stream; public import std.stream;
public import yaml; public import dyaml.all;
import core.exception; import core.exception;
import std.algorithm; import std.algorithm;

View file

@ -4,7 +4,7 @@
// (See accompanying file LICENSE_1_0.txt or copy at // (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt) // http://www.boost.org/LICENSE_1_0.txt)
import yaml; import dyaml.all;
import std.stdio; import std.stdio;