Home
last modified time | relevance | path

Searched full:yaml (Results 1 – 25 of 389) sorted by relevance

12345678910>>...16

/openbsd-src/gnu/usr.bin/perl/cpan/CPAN-Meta-YAML/t/tml-spec/
H A Dunicode.tml7 # problematic. Test YNY (YAML→Native→YAML) and NYN roundtripping.
9 # YAML scalar emission does quoting based on first character, presence of
18 # Dump mapping matches *yaml
19 *code.dump_code_key_value == *yaml
21 # Load *yaml then dump matches *yaml
22 *yaml.load_yaml.dump_yaml == *yaml
30 # \z is the other YAML "null" encoding. Most implementations (including
34 --- yaml
41 --- yaml
48 --- yaml
[all …]
/openbsd-src/gnu/llvm/llvm/docs/
H A DYamlIO.rst2 YAML I/O
8 Introduction to YAML
11 YAML is a human readable data serialization language. The full YAML language
12 spec can be read at `yaml.org
13 <http://www.yaml.org/spec/1.2/spec.html#Introduction>`_. The simplest form of
14 yaml is just "scalars", "mappings", and "sequences". A scalar is any number
18 .. code-block:: yaml
27 .. code-block:: yaml
37 .. code-block:: yaml
53 verbose, so YAML offers an alternate syntax for sequences called a "Flow
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/CPAN-Meta-YAML/t/tml-local/yaml-roundtrip/
H A Ddocument.tml2 # Support for YAML version directives
6 --- yaml
7 --- #YAML:1.0
16 --- yaml
17 --- %YAML:1.0
27 --- yaml
28 \%YAML:1.0
40 --- yaml
41 \%YAML 1.1
52 --- yaml
[all …]
H A Dquoting.tml2 --- yaml
10 --- yaml
19 --- yaml
27 --- yaml
38 --- yaml
47 --- yaml
55 --- yaml
61 --- yaml
70 --- yaml
81 --- yaml
[all …]
H A Dmapping.tml2 --- yaml
9 --- yaml
18 --- yaml
28 --- yaml
38 --- yaml
48 --- yaml
57 --- yaml
66 --- yaml
76 --- yaml
89 --- yaml
[all …]
H A Dscalar.tml5 +++ yaml
13 +++ yaml
21 +++ yaml
34 +++ yaml
45 +++ yaml
57 +++ yaml
71 +++ yaml
81 +++ yaml
90 +++ yaml
101 +++ yaml
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/CPAN-Meta-YAML/t/lib/
H A DTestBridge.pm17 use CPAN::Meta::YAML;
39 E_CIRCULAR => qr{\QCPAN::Meta::YAML does not support circular references},
40 E_FEATURE => qr{\QCPAN::Meta::YAML does not support a feature},
41 E_PLAIN => qr{\QCPAN::Meta::YAML found illegal characters in plain scalar},
42 E_CLASSIFY => qr{\QCPAN::Meta::YAML failed to classify the line},
46 E_DUPKEY => qr{\QCPAN::Meta::YAML found a duplicate key},
49 # use XXX -with => 'YAML::XS';
101 # two blocks: perl, yaml
103 # Tests that a YAML string loads to the expected perl data. Also, tests
104 # roundtripping from perl->YAML->perl.
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/
H A Dmetafile_file.t3 # This is a test of the fake YAML dumper implemented by EUMM:
20 my $expected = <<YAML;
21 --- #YAML:1.0
24 YAML
31 my $expected = <<YAML;
32 --- #YAML:1.0
36 YAML
43 my $expected = <<YAML;
44 --- #YAML:1.0
49 YAML
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/ObjectYAML/
H A DXCOFFYAML.h9 // This file declares classes for handling the YAML representation of XCOFF.
16 #include "llvm/ObjectYAML/YAML.h"
24 llvm::yaml::Hex16 Magic;
27 llvm::yaml::Hex64 SymbolTableOffset;
30 llvm::yaml::Hex16 Flags;
34 std::optional<llvm::yaml::Hex16> Magic;
35 std::optional<llvm::yaml::Hex16> Version;
36 std::optional<llvm::yaml::Hex64> TextStartAddr;
37 std::optional<llvm::yaml::Hex64> DataStartAddr;
38 std::optional<llvm::yaml::Hex64> TOCAnchorAddr;
[all …]
H A DMachOYAML.h10 /// This file declares classes for handling the YAML representation
21 #include "llvm/ObjectYAML/YAML.h"
33 llvm::yaml::Hex32 address;
48 llvm::yaml::Hex64 addr;
50 llvm::yaml::Hex32 offset;
52 llvm::yaml::Hex32 reloff;
54 llvm::yaml::Hex32 flags;
55 llvm::yaml::Hex32 reserved1;
56 llvm::yaml::Hex32 reserved2;
57 llvm::yaml::Hex32 reserved3;
[all …]
H A DDWARFYAML.h10 /// This file declares classes for handling the YAML representation
21 #include "llvm/ObjectYAML/YAML.h"
34 llvm::yaml::Hex64 Value; // Some DWARF5 attributes have values
38 std::optional<yaml::Hex64> Code;
50 llvm::yaml::Hex64 Address;
51 yaml::Hex64 Length;
56 std::optional<yaml::Hex64> Length;
58 yaml::Hex64 CuOffset;
59 std::optional<yaml::Hex8> AddrSize;
60 yaml::Hex8 SegSize;
[all …]
H A DELFYAML.h10 /// This file declares classes for handling the YAML representation
22 #include "llvm/ObjectYAML/YAML.h"
117 llvm::yaml::Hex8 ABIVersion;
121 llvm::yaml::Hex64 Entry;
124 std::optional<llvm::yaml::Hex64> EPhOff;
125 std::optional<llvm::yaml::Hex16> EPhEntSize;
126 std::optional<llvm::yaml::Hex16> EPhNum;
127 std::optional<llvm::yaml::Hex16> EShEntSize;
128 std::optional<llvm::yaml::Hex64> EShOff;
129 std::optional<llvm::yaml::Hex16> EShNum;
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/CPAN-Meta/t/parse-cpan-meta/
H A D02_api.t64 # These test YAML/JSON detection without the typical file name suffix
65 my $yaml_meta = catfile( test_data_directory(), 'yaml.meta' );
68 ### YAML tests
70 local $ENV{PERL_YAML_BACKEND} if not $ENV{PERL_CORE}; # ensure we always get CPAN::META::YAML
72 is(Parse::CPAN::Meta->yaml_backend(), 'CPAN::Meta::YAML', 'yaml_backend(): CPAN::Meta::YAML');
74 is_deeply($from_yaml, $want, "load from YAML file results in expected data");
78 local $ENV{PERL_YAML_BACKEND} if not $ENV{PERL_CORE}; # ensure we always get CPAN::META::YAML
81 is(Parse::CPAN::Meta->yaml_backend(), 'CPAN::Meta::YAML', 'yaml_backend(): CPAN::Meta::YAML');
83 is_deeply($from_yaml, $want, "load from YAML .meta file results in expected data");
87 local $ENV{PERL_YAML_BACKEND} if not $ENV{PERL_CORE}; # ensure we always get CPAN::META::YAML
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Remarks/
H A DYAMLRemarkParser.h1 //===-- YAMLRemarkParser.h - Parser for YAML remarks ------------*- C++/-*-===//
9 // This file provides the impementation of the YAML remark parser.
33 YAMLParseError(StringRef Message, SourceMgr &SM, yaml::Stream &Stream,
34 yaml::Node &Node);
47 /// Regular YAML to Remark parser.
51 /// Last error message that can come from the YAML parser diagnostics.
56 /// Stream for yaml parsing.
57 yaml::Stream Stream;
58 /// Iterator in the YAML stream.
59 yaml::document_iterator YAMLIt;
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/CPAN-Meta-YAML/t/
H A DREADME.md1 # Guide to YAML::Tiny testing
3 YAML::Tiny tests use several components:
7 * YAML data files in t/data
61 ## YAML data files in t/data
63 Files in the t/data directory are intended to test how YAML files are loaded
67 If a real-world YAML file cannot be loaded due to character set encoding
69 YAML file is ASCII or UTF-8 encoded, can be decoded successfully, but has
70 problems in parsing, it should be reduced to the smallest sample of YAML that
88 # are the data for the 'yaml' point. The data ends with newline, and
90 --- yaml
[all …]
H A D86_fail.t3 This is an example of a serious design flaw in CPAN::Meta::YAML.
6 CPAN::Meta::YAML strips off all lines that look like comments.
11 That's why I'm working on Tiny::YAML and YAML::Pegex, which are driven by a
17 use CPAN::Meta::YAML;
20 local $TODO = "Failing tests for things CPAN::Meta::YAML does wrong";
22 my $yaml = <<'...';
27 is Load($yaml)->[0],
H A D01_api.t10 use CPAN::Meta::YAML;
15 ok( \&main::Load == \&CPAN::Meta::YAML::Load, 'Load is CPAN::Meta::YAML' );
16 ok( \&main::Dump == \&CPAN::Meta::YAML::Dump, 'Dump is CPAN::Meta::YAML' );
26 use CPAN::Meta::YAML qw/Load Dump LoadFile DumpFile freeze thaw/;
37 ok( my $yaml = CPAN::Meta::YAML->new( @docs ), "constructor" );
38 cmp_deeply( [ @$yaml ], \@docs, "the object is an arrayref of documents" );
H A D21_yamlpm_compat.t10 # This file test that the YAML.pm compatible Dump/Load/DumpFile/LoadFile
14 use CPAN::Meta::YAML;
21 my $yamldump = CPAN::Meta::YAML::Dump( $scalar, $arrayref, $hashref );
22 my @yamldocsloaded = CPAN::Meta::YAML::Load($yamldump);
38 my $rv = CPAN::Meta::YAML::DumpFile(
42 my @yamldocsloaded = CPAN::Meta::YAML::LoadFile($filename);
51 my $str = "This is not real YAML";
53 eval { @yamldocsloaded = CPAN::Meta::YAML::Load("$str\n"); };
55 qr/CPAN::Meta::YAML failed to classify line '$str'/,
56 "Correctly failed to load non-YAML string"
/openbsd-src/gnu/llvm/llvm/utils/yaml-bench/
H A DYAMLBench.cpp9 // This program executes the YAMLParser on differently sized YAML texts and
36 , cl::desc("Print the canonical YAML for this file.")
70 /// Pretty print a tag by replacing tag:yaml.org,2002: with !!.
71 static std::string prettyTag(yaml::Node *N) { in prettyTag()
73 if (StringRef(Tag).startswith("tag:yaml.org,2002:")) { in prettyTag()
84 static void dumpNode( yaml::Node *n in dumpNode()
94 if (yaml::ScalarNode *sn = dyn_cast<yaml::ScalarNode>(n)) { in dumpNode()
97 outs() << prettyTag(n) << " \"" << yaml::escape(Val) << "\""; in dumpNode()
98 } else if (yaml::BlockScalarNode *BN = dyn_cast<yaml::BlockScalarNode>(n)) { in dumpNode()
99 outs() << prettyTag(n) << " \"" << yaml::escape(BN->getValue()) << "\""; in dumpNode()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/ObjectYAML/
H A DMinidumpYAML.cpp16 /// Perform an optional yaml-mapping of an endian-aware type EndianType. The
20 static inline void mapOptional(yaml::IO &IO, const char *Key, EndianType &Val, in mapOptional()
25 /// Yaml-map an endian-aware type EndianType as some other type MapType.
27 static inline void mapRequiredAs(yaml::IO &IO, const char *Key, in mapRequiredAs()
34 /// Perform an optional yaml-mapping of an endian-aware type EndianType as some
37 static inline void mapOptionalAs(yaml::IO &IO, const char *Key, EndianType &Val, in mapOptionalAs()
45 /// Return the appropriate yaml Hex type for a given endian-aware type.
47 template <> struct HexType<support::ulittle16_t> { using type = yaml::Hex16; };
48 template <> struct HexType<support::ulittle32_t> { using type = yaml::Hex32; };
49 template <> struct HexType<support::ulittle64_t> { using type = yaml::Hex64; };
[all …]
H A DYAML.cpp1 //===- YAML.cpp - YAMLIO utilities for object files -----------------------===//
9 // This file defines utility classes for handling the YAML representation of
14 #include "llvm/ObjectYAML/YAML.h"
22 void yaml::ScalarTraits<yaml::BinaryRef>::output( in output()
23 const yaml::BinaryRef &Val, void *, raw_ostream &Out) { in output()
27 StringRef yaml::ScalarTraits<yaml::BinaryRef>::input(StringRef Scalar, void *, in input()
28 yaml::BinaryRef &Val) { in input()
35 Val = yaml::BinaryRef(Scalar); in input()
39 void yaml::BinaryRef::writeAsBinary(raw_ostream &OS, uint64_t N) const { in writeAsBinary()
54 void yaml::BinaryRef::writeAsHex(raw_ostream &OS) const { in writeAsHex()
/openbsd-src/gnu/usr.bin/perl/cpan/CPAN-Meta-YAML/t/tml-local/load-error/
H A Dscalar.tml2 --- yaml
8 --- yaml
13 --- yaml
18 --- yaml
23 --- yaml
28 --- yaml
33 --- yaml
38 --- yaml
43 --- yaml
48 --- yaml
/openbsd-src/gnu/usr.bin/perl/cpan/CPAN-Meta-YAML/lib/CPAN/Meta/
H A DYAML.pm4 package CPAN::Meta::YAML; # git description: v1.68-2-gcc5324e
8 $CPAN::Meta::YAML::VERSION = '0.018';
12 # The CPAN::Meta::YAML API.
26 return CPAN::Meta::YAML->new(@_)->_dump_string;
33 my $self = CPAN::Meta::YAML->_load_string(@_);
37 # To match YAML.pm, return the last document
51 return CPAN::Meta::YAML->new(@_)->_dump_file($file);
56 my $self = CPAN::Meta::YAML->_load_file($file);
60 # Return only the last document to match YAML.pm,
69 # Create an empty CPAN::Meta::YAML object
[all …]
/openbsd-src/gnu/llvm/clang/lib/APINotes/
H A DAPINotesYAMLCompiler.cpp1 //===-- APINotesYAMLCompiler.cpp - API Notes YAML Format Reader -*- C++ -*-===//
9 // The types defined locally are designed to represent the YAML state, which
39 namespace yaml { namespace
49 } // namespace yaml
60 namespace yaml { namespace
67 } // namespace yaml
86 namespace yaml { namespace
128 } // namespace yaml
171 namespace yaml { namespace
199 } // namespace yaml
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/Utils/
H A DSymbolRewriter.h46 namespace yaml {
53 } // end namespace yaml
100 bool parseEntry(yaml::Stream &Stream, yaml::KeyValueNode &Entry,
102 bool parseRewriteFunctionDescriptor(yaml::Stream &Stream,
103 yaml::ScalarNode *Key,
104 yaml::MappingNode *Value,
106 bool parseRewriteGlobalVariableDescriptor(yaml::Stream &Stream,
107 yaml::ScalarNode *Key,
108 yaml::MappingNode *Value,
110 bool parseRewriteGlobalAliasDescriptor(yaml::Stream &YS, yaml::ScalarNode *K,
[all …]

12345678910>>...16