Home | History | Annotate | Download | only in yaml-bench

Lines Matching refs:yaml

10 // This program executes the YAMLParser on differntly sized YAML texts and
36 , cl::desc("Print the canonical YAML for this file.")
66 static void dumpNode( yaml::Node *n
76 if (yaml::ScalarNode *sn = dyn_cast<yaml::ScalarNode>(n)) {
79 outs() << "!!str \"" << yaml::escape(Val) << "\"";
80 } else if (yaml::SequenceNode *sn = dyn_cast<yaml::SequenceNode>(n)) {
83 for (yaml::SequenceNode::iterator i = sn->begin(), e = sn->end();
90 } else if (yaml::MappingNode *mn = dyn_cast<yaml::MappingNode>(n)) {
93 for (yaml::MappingNode::iterator i = mn->begin(), e = mn->end();
104 } else if (yaml::AliasNode *an = dyn_cast<yaml::AliasNode>(n)){
106 } else if (dyn_cast<yaml::NullNode>(n)) {
111 static void dumpStream(yaml::Stream &stream) {
112 for (yaml::document_iterator di = stream.begin(), de = stream.end(); di != de;
114 outs() << "%YAML 1.2\n"
116 yaml::Node *n = di->getRoot();
140 yaml::scanTokens(JSONText);
148 llvm::yaml::Stream stream(JSONText, SM);
183 yaml::dumpTokens(Buf->getBuffer(), outs());
187 yaml::Stream stream(Buf->getBuffer(), sm);
193 llvm::TimerGroup Group("YAML parser benchmark");
196 llvm::TimerGroup Group("YAML parser benchmark");