dyaml/examples/getting_started/main.d

13 lines
230 B
D
Raw Normal View History

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