Searched refs:yaml (Results 1 - 25 of 81) sorted by relevance

1234

/macosx-10.9.5/tcl-102/tcl_ext/tcllib/tcllib/modules/yaml/
H A DpkgIndex.tcl11 package ifneeded yaml 0.3.5 [list source [file join $dir yaml.tcl]]
H A Drb.test2 # rb.test: test samples for the yaml library.
13 puts [source yaml.tcl]
33 useLocal yaml.tcl yaml
85 test yaml.rb-1 "Simple Sequence" -body {
92 yaml::yaml2dict $data
95 test yaml.rb-2 "Nested Sequences" -body {
103 yaml::yaml2dict $data
106 test yaml.rb-3 "Mixed Sequences" -body {
116 yaml
[all...]
/macosx-10.9.5/ruby-104/ruby/test/psych/
H A Dtest_document.rb21 assert_match('%TAG ! tag:tenderlovemaking.com,2009:', @stream.yaml)
26 yaml = @stream.yaml
27 assert_match('%TAG ! tag:tenderlovemaking.com,2009:', yaml)
28 assert_match('%TAG !! foo.com,2009:', yaml)
34 @stream.yaml
43 assert_match('%YAML 1.1', @stream.yaml)
H A Dtest_merge_keys.rb6 yaml = <<-eoyml
11 assert_equal({'<<' => nil }, Psych.load(yaml)['development'])
15 yaml = <<-eoyml
21 assert_equal({'<<' => [1]}, Psych.load(yaml)['baz'])
25 yaml = <<-eoyml
33 doc = Psych.load yaml
35 assert_equal({'<<' => [[1], {"hello"=>"world"}]}, Psych.load(yaml)['baz'])
39 yaml = <<-eoyml
44 assert_equal({'<<' => [nil]}, Psych.load(yaml)['baz'])
48 yaml
[all...]
H A Dtest_date_time.rb8 yaml = Psych.dump dt
9 assert_match(/DateTime/, yaml)
H A Dtest_alias_and_anchor.rb14 yaml = <<EOYAML
21 result = Psych.load yaml
26 yaml = <<EOYAML
35 result = Psych.load yaml
44 yaml = <<EOYAML
52 result = Psych.load yaml
63 yaml = Psych.dump original
64 result = Psych.load yaml
74 yaml = Psych.dump original
75 result = Psych.load yaml
[all...]
H A Dhelper.rb13 def assert_to_yaml( obj, yaml )
14 assert_equal( obj, Psych::load( yaml ) )
15 assert_equal( obj, Psych::parse( yaml ).transform )
28 def assert_parse_only( obj, yaml )
29 assert_equal( obj, Psych::load( yaml ) )
30 assert_equal( obj, Psych::parse( yaml ).transform )
36 assert_equal(obj, Psych.load(v.tree.yaml))
H A Dtest_omap.rb42 yaml = Psych.dump(map)
43 assert_match('!omap', yaml)
44 assert_match('- a: b', yaml)
45 assert_match('- c: d', yaml)
H A Dtest_array.rb28 yaml = Psych.dump X.new
29 assert_match X.name, yaml
H A Dtest_psych.rb160 - !tag:yaml.org,2002:foo bar
165 ["tag:yaml.org,2002:foo", "bar"],
H A Dtest_yaml.rb26 yaml = Psych.dump time
27 assert_match "2010-10-10 00:00:00.000000000 Z", yaml
621 # 'seq' is shorthand for 'http://yaml.org/seq'.
669 # http://yaml.org/spec/1.1/#id896876
770 - !yaml.org,2002/float '10'
771 - !yaml.org,2002/float "\\
1171 #require 'yaml'
1271 yaml = Psych.dump("multi\nline\nstring")
1272 assert_match("|", yaml)
1276 yaml
[all...]
/macosx-10.9.5/ruby-104/ruby/test/psych/nodes/
H A Dtest_enumerable.rb7 yaml = '--- hello'
8 assert_equal 3, Psych.parse_stream(yaml).to_a.length
12 yaml = '--- hello'
13 assert_equal 3, Psych.parse_stream(yaml).each.map { |x| x }.length
34 def calls yaml
36 Psych.parse_stream(yaml).each do |node|
/macosx-10.9.5/llvmCore-3425.0.33/utils/yaml-bench/
H A DMakefile1 ##===- utils/yaml-bench/Makefile ---------------------------*- Makefile -*-===##
11 TOOLNAME = yaml-bench
H A DYAMLBench.cpp66 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
[all...]
/macosx-10.9.5/CPANInternal-140/YAML-Syck/t/
H A Dleak.t13 my $yaml = q{---
26 Load($yaml);
33 Load($yaml);
40 $yaml = q{---
46 Load($yaml);
54 $yaml = q#---
59 Load($yaml);
63 Load($yaml);
68 () = Load($yaml);
74 $yaml
[all...]
/macosx-10.9.5/ruby-104/ruby/test/psych/handlers/
H A Dtest_recorder.rb8 yaml = "--- foo\n...\n"
13 parser.parse yaml
21 assert_equal yaml, output.string
/macosx-10.9.5/ruby-104/ruby/ext/psych/
H A Dpsych.h10 #include <yaml.h>
H A Dpsych_parser.c222 * parser.parse(yaml)
224 * Parse the YAML document contained in +yaml+. Events will be called on
231 VALUE yaml, path; local
244 if (rb_scan_args(argc, argv, "11", &yaml, &path) == 1) {
245 if(rb_respond_to(yaml, id_path))
246 path = rb_funcall(yaml, id_path, 0);
256 if (OBJ_TAINTED(yaml)) tainted = 1;
258 if (rb_respond_to(yaml, id_read)) {
260 yaml = transcode_io(yaml,
[all...]
/macosx-10.9.5/llvmCore-3425.0.33/unittests/Support/
H A DYAMLParserTest.cpp28 yaml::Stream Stream(Input, SM);
37 yaml::Stream Stream(Input, SM);
142 yaml::Stream Stream(StringInArray, SM);
143 yaml::SequenceNode *ParsedSequence
144 = dyn_cast<yaml::SequenceNode>(Stream.begin()->getRoot());
146 = dyn_cast<yaml::ScalarNode>(
147 static_cast<yaml::Node*>(ParsedSequence->begin()))->getRawValue();
179 yaml::Stream Stream("[\"1\", \"2\", \"3\", \"4\", \"5\", \"6\"]", SM);
180 yaml::SequenceNode *Array
181 = dyn_cast<yaml
[all...]
/macosx-10.9.5/ruby-104/ruby/ext/psych/lib/
H A Dpsych.rb110 # Load +yaml+ in to a Ruby data structure. If multiple documents are
128 def self.load yaml, filename = nil
129 result = parse(yaml, filename)
134 # Parse a YAML string in +yaml+. Returns the first object of a YAML AST.
152 def self.parse yaml, filename = nil
153 parse_stream(yaml, filename) do |node|
176 # Parse a YAML string in +yaml+. Returns the full AST for the YAML document.
177 # This method can handle multiple YAML documents contained in +yaml+.
202 def self.parse_stream yaml, filename = nil, &block
205 parser.parse yaml, filenam
[all...]
/macosx-10.9.5/llvmCore-3425.0.33/utils/obj2yaml/
H A Dobj2yaml.h22 namespace yaml { // routines for writing YAML namespace
/macosx-10.9.5/llvmCore-3425.0.33/utils/yaml2obj/
H A Dyaml2obj.cpp43 getAs(const llvm::yaml::ScalarNode *SN, T &Result) {
115 /// This parses a yaml stream that represents a COFF object file.
116 /// See docs/yaml2obj for the yaml scheema.
118 COFFParser(yaml::Stream &Input) : YS(Input) {
125 bool parseHeader(yaml::Node *HeaderN) {
126 yaml::MappingNode *MN = dyn_cast<yaml::MappingNode>(HeaderN);
131 for (yaml::MappingNode::iterator i = MN->begin(), e = MN->end();
133 yaml::ScalarNode *Key = dyn_cast<yaml
[all...]
/macosx-10.9.5/ruby-104/ruby/ext/psych/lib/psych/nodes/
H A Dnode.rb43 def yaml io = nil, options = {} method in class:Psych.Nodes.Node
50 alias :to_yaml :yaml
/macosx-10.9.5/ruby-104/ruby/test/psych/visitors/
H A Dtest_emitter.rb49 assert_equal @io.string, s.yaml
64 assert_equal @io.string, s.yaml
65 assert(/\.\.\./ !~ s.yaml)
79 assert_equal @io.string, s.yaml
94 assert_equal @io.string, s.yaml
110 assert_equal @io.string, s.yaml
125 assert_equal @io.string, s.yaml
140 assert_equal @io.string, s.yaml
/macosx-10.9.5/ruby-104/ruby/lib/rubygems/package/
H A Dold.rb137 yaml = ''
142 yaml << line
155 @spec = Gem::Specification.from_yaml yaml

Completed in 163 milliseconds

1234