Home
last modified time | relevance | path

Searched refs:parse_string (Results 1 – 25 of 49) sorted by relevance

12

/external/python/cpython3/Lib/test/test_peg_generator/
Dtest_pegen.py13 parse_string,
35 grammar: Grammar = parse_string(grammar_source, GrammarParser)
59 grammar: Grammar = parse_string(grammar_source, GrammarParser)
68 rules = parse_string(grammar, GrammarParser).rules
82 rules = parse_string(grammar, GrammarParser).rules
89 node = parse_string("42\n", parser_class)
94 node = parse_string("1, 2\n", parser_class)
110 node = parse_string("42\n", parser_class)
123 node = parse_string("1+2\n", parser_class)
134 node = parse_string("1\n", parser_class)
[all …]
Dtest_grammar_validator.py8 from pegen.testutil import parse_string
20 grammar: Grammar = parse_string(grammar_source, GrammarParser)
32 grammar: Grammar = parse_string(grammar_source, GrammarParser)
47 grammar: Grammar = parse_string(grammar_source, GrammarParser)
Dtest_c_parser.py23 parse_string,
92 grammar = parse_string(grammar_source, GrammarParser)
401 grammar = parse_string(grammar_source, GrammarParser)
425 grammar = parse_string(grammar_source, GrammarParser)
434 grammar = parse_string(grammar_source, GrammarParser)
Dtest_first_sets.py9 from pegen.testutil import parse_string
16 grammar: Grammar = parse_string(grammar_source, GrammarParser)
/external/python/cpython3/Lib/lib2to3/tests/
Dtest_parser.py37 t = driver.parse_string(s)
125 support.parse_string(code)
600 tree = driver.parse_string(source)
603 tree = driver_no_print_statement.parse_string(source)
617 driver.parse_string("a, *b, c = x\n")
618 driver.parse_string("[*a, b] = x\n")
619 driver.parse_string("(z, *y, w) = m\n")
620 driver.parse_string("for *z, m in d: pass\n")
626 driver.parse_string(support.dedent(s) + "\n\n")
660 driver.parse_string("if f := x(): pass\n")
[all …]
Dsupport.py26 def parse_string(string): function
27 return driver.parse_string(reformat(string), debug=True)
/external/protobuf/src/google/protobuf/
Dtext_format_unittest.cc819 std::string parse_string = in TEST_F() local
821 EXPECT_TRUE(TextFormat::ParseFromString(parse_string, &proto_)); in TEST_F()
828 std::string parse_string = in TEST_F() local
831 EXPECT_TRUE(TextFormat::ParseFromString(parse_string, &proto)); in TEST_F()
858 std::string parse_string = in TEST_F() local
860 EXPECT_TRUE(TextFormat::ParseFromString(parse_string, &proto)); in TEST_F()
870 std::string parse_string = in TEST_F() local
873 io::ArrayInputStream input_stream(parse_string.data(), parse_string.size()); in TEST_F()
882 std::string parse_string = "optional_string: \"foo\" \"bar\"\n"; in TEST_F() local
884 io::ArrayInputStream input_stream1(parse_string.data(), parse_string.size()); in TEST_F()
[all …]
/external/cronet/third_party/protobuf/src/google/protobuf/
Dtext_format_unittest.cc818 std::string parse_string = in TEST_F() local
820 EXPECT_TRUE(TextFormat::ParseFromString(parse_string, &proto_)); in TEST_F()
827 std::string parse_string = in TEST_F() local
830 EXPECT_TRUE(TextFormat::ParseFromString(parse_string, &proto)); in TEST_F()
857 std::string parse_string = in TEST_F() local
859 EXPECT_TRUE(TextFormat::ParseFromString(parse_string, &proto)); in TEST_F()
869 std::string parse_string = in TEST_F() local
872 io::ArrayInputStream input_stream(parse_string.data(), parse_string.size()); in TEST_F()
881 std::string parse_string = "optional_string: \"foo\" \"bar\"\n"; in TEST_F() local
883 io::ArrayInputStream input_stream1(parse_string.data(), parse_string.size()); in TEST_F()
[all …]
/external/python/cpython2/Lib/lib2to3/tests/
Dtest_parser.py35 t = driver.parse_string(s)
119 support.parse_string(code)
304 tree = driver.parse_string(source)
310 driver.parse_string("a, *b, c = x\n")
311 driver.parse_string("[*a, b] = x\n")
312 driver.parse_string("(z, *y, w) = m\n")
313 driver.parse_string("for *z, m in d: pass\n")
318 driver.parse_string(support.dedent(s) + "\n\n")
Dsupport.py22 def parse_string(string): function
23 return driver.parse_string(reformat(string), debug=True)
/external/python/cpython2/Lib/json/
Dscanner.py18 parse_string = context.parse_string
35 return parse_string(string, idx + 1, encoding, strict)
/external/python/cpython3/Lib/json/
Dscanner.py18 parse_string = context.parse_string
35 return parse_string(string, idx + 1, strict)
/external/selinux/python/sepolgen/tests/
Dtest_audit.py187 a.parse_string(log1)
196 a.parse_string(log2)
215 a.parse_string(xperms2)
228 parser.parse_string(log1)
235 parser.parse_string(granted1)
/external/e2fsprogs/debugfs/
Dset_fields.c70 static errcode_t parse_string(struct field_set_info *info, char *field, char *arg);
123 { "volume_name", &set_sb.s_volume_name, NULL, 16, parse_string },
124 { "last_mounted", &set_sb.s_last_mounted, NULL, 64, parse_string },
159 { "mount_opts", &set_sb.s_mount_opts, NULL, 64, parse_string },
173 { "first_error_func", &set_sb.s_first_error_func, NULL, 32, parse_string },
178 { "last_error_func", &set_sb.s_last_error_func, NULL, 32, parse_string },
292 parse_string },
294 parse_string },
560 static errcode_t parse_string(struct field_set_info *info, in parse_string() function
773 if (ss->func == parse_string) in print_possible_fields()
/external/mesa3d/src/vulkan/overlay-layer/
Doverlay_params.c116 parse_string(const char *s, char *out_param, char *out_value) in parse_string() function
175 while ((num = parse_string(env, key, value)) != 0) { in parse_overlay_env()
/external/flac/src/metaflac/
Doptions.c117 static FLAC__bool parse_string(const char *src, char **dest);
502 parse_string("-",&op->argument.filename.value); in parse_option()
562 if(!parse_string(option_argument, &(op->argument.filename.value))) { in parse_option()
570 if(!parse_string(option_argument, &(op->argument.filename.value))) { in parse_option()
582 if(!parse_string(option_argument, &(op->argument.import_cuesheet_from.filename))) { in parse_option()
590 if(!parse_string(option_argument, &(op->argument.filename.value))) { in parse_option()
598 if(!parse_string(option_argument, &(op->argument.specification.value))) { in parse_option()
607 if(!parse_string(option_argument, &(op->argument.export_picture_to.filename))) { in parse_option()
876 FLAC__bool parse_string(const char *src, char **dest) in parse_string() function
/external/python/cpython3/Tools/peg_generator/pegen/
Dtestutil.py49 def parse_string( function
61 grammar = parse_string(source, GrammarParser)
/external/python/cpython3/Tools/peg_generator/peg_extension/
Dpeg_extension.c71 parse_string(PyObject *self, PyObject *args, PyObject *kwds) in parse_string() function
155 …{"parse_string", (PyCFunction)(void(*)(void))parse_string, METH_VARARGS|METH_KEYWORDS, "Parse a st…
/external/libxkbcommon/src/compose/
Dparser.h28 parse_string(struct xkb_compose_table *table,
Dtable.c148 ok = parse_string(table, buffer, length, "(input string)"); in xkb_compose_table_new_from_buffer()
/external/yapf/yapf/yapflib/
Dpytree_utils.py119 tree = parser_driver.parse_string(code, debug=False)
125 tree = parser_driver.parse_string(code, debug=False)
/external/antlr/runtime/Ruby/lib/antlr3/debug/
Dsocket.rb314 when /^"(.*)"$/ then parse_string( $1 )
334 def parse_string( string ) method in ANTLR3.Debug.RemoteEventSocketListener
/external/iptables/extensions/
Dlibxt_string.c80 parse_string(const char *s, struct xt_string_info *info) in parse_string() function
178 parse_string(cb->arg, stringinfo); in string_parse()
/external/crosvm/devices/src/virtio/vhost/user/
Dmod.rs59 let vhost = deserializer.parse_string()?; in from_arg_value()
/external/rust/crates/grpcio-sys/grpc/third_party/re2/util/
Dpcre.h588 MAKE_PARSER(std::string, parse_string);
622 static bool parse_string (const char* str, size_t n, void* dest);

12