| /external/pigweed/pw_rpc/fuzz/ |
| D | argparse_test.cc | 123 Vector<ArgParserVariant, 3> parsers = { in TEST() local 128 PrintUsage(parsers, "test-bin"); in TEST() 131 void CheckArgs(Vector<ArgParserVariant>& parsers, in CheckArgs() argument 136 EXPECT_EQ(GetArg(parsers, "--verbose", &actual_verbose), OkStatus()); in CheckArgs() 138 EXPECT_EQ(ResetArg(parsers, "--verbose"), OkStatus()); in CheckArgs() 141 EXPECT_EQ(GetArg(parsers, "--runs", &actual_runs), OkStatus()); in CheckArgs() 143 EXPECT_EQ(ResetArg(parsers, "--runs"), OkStatus()); in CheckArgs() 146 EXPECT_EQ(GetArg(parsers, "port", &actual_port), OkStatus()); in CheckArgs() 148 EXPECT_EQ(ResetArg(parsers, "port"), OkStatus()); in CheckArgs() 152 Vector<ArgParserVariant, 3> parsers{ in TEST() local [all …]
|
| D | client_fuzzer.cc | 37 Vector<ArgParserVariant, 5> parsers{ in FuzzClient() local 54 if (!ParseArgs(parsers, argc, argv).ok()) { in FuzzClient() 55 PrintUsage(parsers, argv[0]); in FuzzClient() 64 if (!GetArg(parsers, "--verbose", &verbose).ok() || in FuzzClient() 65 !GetArg(parsers, "--num-actions", &num_actions).ok() || in FuzzClient() 66 !GetArg(parsers, "--seed", &seed).ok() || in FuzzClient() 67 !GetArg(parsers, "--timeout", &timeout_ms).ok() || in FuzzClient() 68 !GetArg(parsers, "port", &port).ok()) { in FuzzClient()
|
| D | argparse.cc | 199 Status ParseArgs(Vector<ArgParserVariant>& parsers, int argc, char** argv) { in ParseArgs() argument 205 for (auto& parser : parsers) { in ParseArgs() 229 void PrintUsage(const Vector<ArgParserVariant>& parsers, in PrintUsage() argument 233 for (auto& parser : parsers) { in PrintUsage() 239 std::optional<ArgVariant> GetArg(const Vector<ArgParserVariant>& parsers, in GetArg() argument 241 for (auto& parser : parsers) { in GetArg() 250 Status ResetArg(Vector<ArgParserVariant>& parsers, std::string_view name) { in ResetArg() argument 251 for (auto& parser : parsers) { in ResetArg()
|
| /external/llvm/utils/lit/tests/unit/ |
| D | TestRunner.py | 40 inputs = [os.path.join(test_path, 'Inputs/testrunner-custom-parsers/')] 81 parsers = self.make_parsers() 82 self.parse_test(parsers) 83 tag_parser = self.get_parser(parsers, 'MY_TAG.') 84 dne_tag_parser = self.get_parser(parsers, 'MY_DNE_TAG.') 89 parsers = self.make_parsers() 90 self.parse_test(parsers) 91 list_parser = self.get_parser(parsers, 'MY_LIST:') 96 parsers = self.make_parsers() 97 self.parse_test(parsers) [all …]
|
| /external/pigweed/pw_rpc/fuzz/public/pw_rpc/fuzz/ |
| D | argparse.h | 26 /// "port" argument to be parsed, we can create a vector of parsers. In this 27 /// example, we modify the parsers during creation to set default values: 30 /// Vector<ArgParserVariant, 3> parsers = { 41 /// if (!ParseArgs(parsers, argc, argv).ok()) { 42 /// PrintUsage(parsers, argv[0]); 48 /// if (!GetArg(parsers, "--verbose", &verbose).ok() || 49 /// !GetArg(parsers, "--runs", &runs).ok() || 50 /// !GetArg(parsers, "port", &port).ok()) { 69 /// with a particular parsers. 84 /// being out of range, etc. Parsers should log additional details before [all …]
|
| /external/rust/crates/nom/ |
| D | README.md | 11 to build safe parsers without compromising the speed or memory consumption. To 13 fast and correct parsers, and provides functions, macros and traits to abstract most of the 25 - [Binary format parsers](#binary-format-parsers) 26 - [Text format parsers](#text-format-parsers) 27 - [Programming language parsers](#programming-language-parsers) 34 - [Parsers written with nom](#parsers-written-with-nom) 99 …f you need any help developing your parsers, please ping `geal` on IRC (libera, geeknode, oftc), g… 105 ### Binary format parsers 108 to the usual handwritten C parsers, nom parsers are just as fast, free from 114 - Streaming parsers for network formats and huge files [all …]
|
| D | CHANGELOG.md | 45 - implement `ErrorConvert` on the unit type to make it usable as error type for bits parsers 125 - text to number parsers: in the `character::streaming` and `character::complete` modules, there ar… 129 - now that function combinators are the main way to write parsers, the old macro combinators are co… 131 - regex parsers have been moved into the [nom-regex](https://crates.io/crates/nom-regex) crate. nom… 222 - relax trait bounds on some parsers 309 function parsers, by relaxing the requirements: combinators will return a 311 and parsers can be any type now, as long as they implement the new `Parser` trait. 325 so this will give better options for those parsers. 334 …streaming parsers return the number of additional bytes they need, not the total. This was suppose… 338 - there is now a more general `Parser` trait, so parsers can be something else than a function. Thi… [all …]
|
| /external/python/pyfakefs/pyfakefs/ |
| D | patched_packages.py | 20 import pandas.io.parsers as parsers namespace 22 parsers = None variable 46 if parsers is not None: 49 ] = 'pandas.io.parsers' 55 if parsers is not None: 88 if parsers is not None: 107 self._parsers_module = parsers 109 class TextFileReader(parsers.TextFileReader):
|
| /external/jackson-core/src/main/java/com/fasterxml/jackson/core/util/ |
| D | JsonParserSequence.java | 19 * Parsers other than the first one (which is initially assigned 25 * Configuration that determines whether state of parsers is first verified 30 * {@link JsonParser#nextToken} is always called for all parsers. 33 * so that possible existing token is not considered for parsers. 59 protected JsonParserSequence(JsonParser[] parsers) { in JsonParserSequence() argument 60 this(false, parsers); in JsonParserSequence() 66 protected JsonParserSequence(boolean checkForExistingToken, JsonParser[] parsers) in JsonParserSequence() argument 68 super(parsers[0]); in JsonParserSequence() 71 _parsers = parsers; in JsonParserSequence() 77 * contains all given sub-parsers. [all …]
|
| /external/rust/crates/combine/ |
| D | README.md | 7 …y [Parsec](https://hackage.haskell.org/package/parsec). As in Parsec the parsers are [LL(1)](https… 25 // `parse` returns `Result` where `Ok` contains a tuple of the parsers output and any remaining inp… 53 …module](https://docs.rs/combine/3.*/combine/parser/range/index.html) for parsers specialized for z… 55 * __partial parsing__ - Combine parsers can be stopped at any point during parsing and later be res… 59 …parsers as arguments and returns a new parser, created by combining those parsers. For instance, t… 69 Since `combine` aims to crate parsers with little to no overhead, streams over `&str` and `&[T]` do… 75 ## Parsers written in combine 99 There is an additional crate which has parsers to lex and parse programming languages in [combine-l…
|
| /external/rust/crates/nom/src/branch/ |
| D | mod.rs | 18 /// Tests a list of parsers one by one until one succeeds. 20 /// It takes as argument a tuple of parsers. There is a maximum of 21 21 /// parsers. If you need more, it is possible to nest them in other `alt` calls, 40 /// // both parsers failed, and with the default error type, alt will return the last error 57 /// Tries to apply all parsers in the tuple in various orders until all of them succeed 61 /// Applies a list of parsers in any order. 63 /// Permutation will succeed if all of the child parsers succeeded. 64 /// It takes as argument a tuple of parsers, and returns a 82 /// // it will fail if one of the parsers failed 87 /// The parsers are applied greedily: if there are multiple unapplied parsers [all …]
|
| /external/jsoncpp/ |
| D | README.md | 4 [](https://github.com/open-source-parsers/js… 5 [](http://open-source-parsers.gi… 6 …lls.io/repos/github/open-source-parsers/jsoncpp/badge.svg?branch=master)](https://coveralls.io/git… 25 [JsonCpp-documentation]: http://open-source-parsers.github.io/jsoncpp-docs/doxygen/index.html 56 https://github.com/open-source-parsers/jsoncpp/wiki/Amalgamated-(Possibly-outdated) 62 If you have trouble, see the [Wiki](https://github.com/open-source-parsers/jsoncpp/wiki), or post a…
|
| /external/autotest/tko/ |
| D | parser_lib.py | 1 import autotest_lib.tko.parsers.version_0 2 import autotest_lib.tko.parsers.version_1 10 0: autotest_lib.tko.parsers.version_0.parser, 11 1: autotest_lib.tko.parsers.version_1.parser,
|
| /external/rust/crates/nom/src/ |
| D | lib.rs | 56 //! about [how to write parsers](https://github.com/Geal/nom/blob/main/doc/making_a_new_parser_from… 68 //! Parser combinators are an approach to parsers that is very different from 80 //! - The parsers are small and easy to write 81 //! - The parsers components are easy to reuse (if they're general enough, please add them to nom!) 82 //! - The parsers components are easy to test separately (unit tests and property-based tests) 84 //! - You can build partial parsers, specific to the data you need at the moment, and ignore the re… 123 //! Writing all the parsers manually, like this, is dangerous, despite Rust's 125 //! nom provides a list of functions to help in developing parsers. 170 …ps://github.com/Geal/nom/blob/main/doc/choosing_a_combinator.md) for an exhaustive list of parsers. 173 //! ## Making new parsers with function combinators [all …]
|
| /external/libcxx/utils/libcxx/test/ |
| D | format.py | 54 def _get_parser(key, parsers): argument 55 for p in parsers: 106 parsers = self._make_custom_parsers() 108 test, additional_parsers=parsers, require_script=is_sh_test) 130 parsers).getValue() 163 return self._evaluate_fail_test(test, test_cxx, parsers) 166 test_cxx, parsers) 175 test_cxx, parsers): argument 203 is_flaky = self._get_parser('FLAKY_TEST.', parsers).getValue() 225 def _evaluate_fail_test(self, test, test_cxx, parsers): argument
|
| /external/python/cpython3/Lib/test/test_email/ |
| D | test_parser.py | 42 for parser in self.parsers: 74 for parser in self.parsers: 81 for parser in self.parsers: 96 parsers = (email.message_from_string, message_from_file) variable in TestParser 106 parsers = (message_from_bytes, message_from_binary_file) variable in TestBytesParser
|
| /external/python/cpython3/Doc/library/ |
| D | pyexpat.rst | 1 :mod:`xml.parsers.expat` --- Fast XML parsing using Expat 4 .. module:: xml.parsers.expat 28 The :mod:`xml.parsers.expat` module is a Python interface to the Expat 59 The :mod:`xml.parsers.expat` module contains two functions: 250 :exc:`xml.parsers.expat.ExpatError` exception. 498 :data:`errors.messages <xml.parsers.expat.errors.messages>` dictionary maps 501 from xml.parsers.expat import ParserCreate, ExpatError, errors 509 The :mod:`~xml.parsers.expat.errors` module also provides error message 510 constants and a dictionary :data:`~xml.parsers.expat.errors.codes` mapping 533 import xml.parsers.expat [all …]
|
| /external/python/cpython3/Lib/xml/parsers/ |
| D | expat.py | 6 # provide pyexpat submodules as xml.parsers.expat submodules 7 sys.modules['xml.parsers.expat.model'] = model 8 sys.modules['xml.parsers.expat.errors'] = errors
|
| /external/python/cpython3/Lib/xml/ |
| D | __init__.py | 8 parsers -- Python wrappers for XML parsers (currently only supports Expat). 20 __all__ = ["dom", "parsers", "sax", "etree"]
|
| /external/rust/crates/combine/src/parser/ |
| D | choice.rs | 1 //! Combinators which take one or more parsers and attempts to parse successfully with at least one 14 /// Takes a number of parsers and tries to apply them each in order. 15 /// Fails if all the parsers fails or if an applied parser fails after it has committed to its 150 // If offset != 1 then the nested parser is a sequence of parsers where 1 or 151 // more parsers returned `PeekOk` before the parser finally failed with 152 // `PeekErr`. Since we lose the offsets of the nested parsers when we merge 182 // cannot commit to so leave the state as `Peek` to retry all the parsers 292 // the offset to the detriment for all the other parsers. 423 // First add the errors of all the preceding parsers which did not in slice_parse_mode() 424 // have a sequence of parsers returning `PeekOk` before failing in slice_parse_mode() [all …]
|
| /external/jackson-core/src/main/java/com/fasterxml/jackson/core/ |
| D | TokenStreamFactory.java | 10 * parsers (reading) and generators (writing). Although full power will only be 57 * factory can create non-blocking parsers: parsers that do not 89 * is something that parsers and/or generators constructed by this 91 * of data format (i.e. schema is for same data format as parsers and 122 /* Factory methods, parsers 163 * parsers to use, when input is to be read from an URL.
|
| /external/python/cpython2/Lib/xml/ |
| D | __init__.py | 8 parsers -- Python wrappers for XML parsers (currently only supports Expat). 20 __all__ = ["dom", "parsers", "sax", "etree"]
|
| /external/antlr/runtime/Ruby/lib/antlr3/ |
| D | error.rb | 210 used by:: lexers and parsers 251 used by:: parsers and tree parsers 490 used by:: tree parsers 514 used by:: tree-rewriting parsers and tree parsers 537 used by:: tree-rewriting parsers and tree parsers 554 used by:: tree-rewriting parsers and tree parsers
|
| /external/apache-xml/src/main/java/org/apache/xml/utils/ |
| D | DOM2Helper.java | 25 import javax.xml.parsers.DocumentBuilder; 26 import javax.xml.parsers.DocumentBuilderFactory; 27 import javax.xml.parsers.ParserConfigurationException; 140 // org.apache.xerces.parsers.DOMParser parser in parse() 141 // = new org.apache.xerces.parsers.DOMParser(); in parse() 188 // setDocument(((org.apache.xerces.parsers.DOMParser)parser).getDocument()); in parse() 195 * information may or may not be available in all parsers, may or
|
| /external/vixl/doc/aarch64/topics/ |
| D | state-trace.md | 41 instruction, and parsers need to be tolerant of this. 58 parsers. 85 Note that to correctly track state, parsers need to be aware of architectural 97 the benefit of human readers, and parsers may ignore them. 121 they have no active (predicated) lanes. Parsers should not assume that every 160 register and in memory unambiguous, without parsers needing to understand the 193 since these annotations are for the benefit of human readers, parsers can safely
|