dyaml/examples/getting_started/main.d
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

13 lines
234 B
D

import std.stdio;
import yaml;
void main()
{
yaml.Node root = Loader("input.yaml").load();
foreach(string word; root["Hello World"])
{
writeln(word);
}
writeln("The answer is ", root["Answer"].get!int);
}