2011-08-16 12:53:13 +00:00
|
|
|
import std.stdio;
|
|
|
|
import yaml;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2011-10-12 21:49:42 +00:00
|
|
|
yaml.Node root = Loader("input.yaml").load();
|
2011-08-16 12:53:13 +00:00
|
|
|
foreach(string word; root["Hello World"])
|
|
|
|
{
|
|
|
|
writeln(word);
|
|
|
|
}
|
|
|
|
writeln("The answer is ", root["Answer"].get!int);
|
|
|
|
}
|