Searched refs:parser (Results 1 - 25 of 1876) sorted by relevance

1234567891011>>

/external/qemu/qobject/
H A Djson-streamer.c26 JSONMessageParser *parser = container_of(lexer, JSONMessageParser, lexer); local
32 parser->brace_count++;
35 parser->brace_count--;
38 parser->bracket_count++;
41 parser->bracket_count--;
55 parser->token_size += token->length;
57 qlist_append(parser->tokens, dict);
61 } else if (parser->brace_count < 0 ||
62 parser->bracket_count < 0 ||
63 (parser
95 json_message_parser_init(JSONMessageParser *parser, void (*func)(JSONMessageParser *, QList *)) argument
107 json_message_parser_feed(JSONMessageParser *parser, const char *buffer, size_t size) argument
113 json_message_parser_flush(JSONMessageParser *parser) argument
118 json_message_parser_destroy(JSONMessageParser *parser) argument
[all...]
/external/antlr/antlr-3.4/runtime/C/src/
H A Dantlr3parser.c2 * Implementation of the base functionality for an ANTLR3 parser.
38 static void setDebugListener (pANTLR3_PARSER parser, pANTLR3_DEBUG_EVENT_LISTENER dbg);
39 static void setTokenStream (pANTLR3_PARSER parser, pANTLR3_TOKEN_STREAM);
40 static pANTLR3_TOKEN_STREAM getTokenStream (pANTLR3_PARSER parser);
41 static void freeParser (pANTLR3_PARSER parser);
46 pANTLR3_PARSER parser; local
48 parser = antlr3ParserNewStream(sizeHint, tstream, state);
50 if (parser == NULL)
55 parser->setDebugListener(parser, db
63 pANTLR3_PARSER parser; local
104 pANTLR3_PARSER parser; local
122 freeParser(pANTLR3_PARSER parser) argument
146 setDebugListener(pANTLR3_PARSER parser, pANTLR3_DEBUG_EVENT_LISTENER dbg) argument
169 setTokenStream(pANTLR3_PARSER parser, pANTLR3_TOKEN_STREAM tstream) argument
176 getTokenStream(pANTLR3_PARSER parser) argument
[all...]
H A Dantlr3treeparser.c2 * Implementation of the tree parser and overrides for the base recognizer
40 /* Tree parser API
42 static void setTreeNodeStream (pANTLR3_TREE_PARSER parser, pANTLR3_COMMON_TREE_NODE_STREAM input);
44 getTreeNodeStream (pANTLR3_TREE_PARSER parser);
45 static void freeParser (pANTLR3_TREE_PARSER parser);
54 pANTLR3_TREE_PARSER parser; local
56 /** Allocate tree parser memory
58 parser =(pANTLR3_TREE_PARSER) ANTLR3_MALLOC(sizeof(ANTLR3_TREE_PARSER));
60 if (parser == NULL)
67 parser
127 freeParser(pANTLR3_TREE_PARSER parser) argument
153 setTreeNodeStream(pANTLR3_TREE_PARSER parser, pANTLR3_COMMON_TREE_NODE_STREAM input) argument
163 getTreeNodeStream(pANTLR3_TREE_PARSER parser) argument
[all...]
/external/chromium_org/v8/test/mjsunit/tools/
H A Dcsvparser.js28 // Load CSV parser implementation from <project root>/tools.
31 var parser = new CsvParser();
35 parser.parseLine(''));
39 parser.parseLine(','));
43 parser.parseLine('1997,Ford,E350'));
47 parser.parseLine('"1997","Ford","E350"'));
51 parser.parseLine('1997,Ford,E350,"Super, luxurious truck"'));
55 parser.parseLine('1997,Ford,E350,"Super ""luxurious"" truck"'));
59 parser.parseLine('1997,Ford,E350,"Super ""luxurious"" ""truck"""'));
63 parser
[all...]
/external/antlr/antlr-3.4/runtime/Python/tests/
H A Dt014parser.py14 parser = self.getParser(tStream)
15 parser.document()
17 assert len(parser.reportedErrors) == 0, parser.reportedErrors
18 assert parser.events == [
23 ], parser.events
30 parser = self.getParser(tStream)
32 parser.document()
36 assert len(parser.reportedErrors) == 1, parser
[all...]
/external/chromium_org/third_party/skia/src/svg/
H A DSkSVGStop.cpp19 void SkSVGStop::translate(SkSVGParser& parser, bool defState) { argument
20 parser._startElement("color");
21 INHERITED::translate(parser, defState);
22 parser._addAttribute("color", parser.getPaintLast(SkSVGPaint::kStopColor));
23 parser._endElement();
H A DSkSVGG.cpp14 void SkSVGG::translate(SkSVGParser& parser, bool defState) { argument
15 INHERITED::translate(parser, defState);
/external/skia/src/svg/
H A DSkSVGStop.cpp19 void SkSVGStop::translate(SkSVGParser& parser, bool defState) { argument
20 parser._startElement("color");
21 INHERITED::translate(parser, defState);
22 parser._addAttribute("color", parser.getPaintLast(SkSVGPaint::kStopColor));
23 parser._endElement();
H A DSkSVGG.cpp14 void SkSVGG::translate(SkSVGParser& parser, bool defState) { argument
15 INHERITED::translate(parser, defState);
/external/chromium_org/third_party/webrtc/tools/frame_editing/
H A Dframe_editing.cc63 webrtc::test::CommandLineParser parser; local
65 // Init the parser and set the usage message
66 parser.Init(argc, argv);
67 parser.SetUsageMessage(usage);
68 parser.SetFlag("in_path", "-1");
69 parser.SetFlag("width", "-1");
70 parser.SetFlag("height", "-1");
71 parser.SetFlag("f", "-1");
72 parser.SetFlag("interval", "-1");
73 parser
[all...]
/external/chromium_org/chrome/common/extensions/
H A Dupdate_manifest_unittest.cc120 UpdateManifest parser; local
123 EXPECT_FALSE(parser.Parse(std::string()));
124 EXPECT_FALSE(parser.errors().empty());
126 EXPECT_TRUE(parser.Parse(kMissingAppId));
127 EXPECT_TRUE(parser.results().list.empty());
128 EXPECT_FALSE(parser.errors().empty());
130 EXPECT_TRUE(parser.Parse(kInvalidCodebase));
131 EXPECT_TRUE(parser.results().list.empty());
132 EXPECT_FALSE(parser.errors().empty());
134 EXPECT_TRUE(parser
[all...]
/external/chromium_org/third_party/webrtc/tools/frame_analyzer/
H A Dframe_analyzer.cc60 webrtc::test::CommandLineParser parser; local
62 // Init the parser and set the usage message
63 parser.Init(argc, argv);
64 parser.SetUsageMessage(usage);
66 parser.SetFlag("width", "-1");
67 parser.SetFlag("height", "-1");
68 parser.SetFlag("label", "MY_TEST");
69 parser.SetFlag("stats_file", "stats.txt");
70 parser.SetFlag("reference_file", "ref.yuv");
71 parser
[all...]
/external/chromium_org/tools/gyp/test/win/vs-macros/
H A Das.py9 parser = OptionParser() variable
10 parser.add_option('-a', dest='platform')
11 parser.add_option('-o', dest='output')
12 parser.add_option('-p', dest='path')
13 (options, args) = parser.parse_args()
/external/chromium_org/net/test/embedded_test_server/
H A Dhttp_request_unittest.cc13 HttpRequestParser parser; local
15 // Process request in chunks to check if the parser deals with border cases.
18 parser.ProcessChunk("POST /foobar.html HTTP/1.1\r\n");
19 EXPECT_EQ(HttpRequestParser::WAITING, parser.ParseRequest());
20 parser.ProcessChunk("Host: localhost:1234\r\n");
21 EXPECT_EQ(HttpRequestParser::WAITING, parser.ParseRequest());
22 parser.ProcessChunk("Multi-line-header: abcd\r\n");
23 EXPECT_EQ(HttpRequestParser::WAITING, parser.ParseRequest());
24 parser.ProcessChunk(" efgh\r\n");
25 EXPECT_EQ(HttpRequestParser::WAITING, parser
57 HttpRequestParser parser; local
71 HttpRequestParser parser; local
[all...]
/external/chromium_org/net/websockets/
H A Dwebsocket_extension_parser_test.cc17 WebSocketExtensionParser parser; local
18 parser.Parse("", 0);
20 EXPECT_TRUE(parser.has_error());
24 WebSocketExtensionParser parser; local
27 parser.Parse("foo");
29 ASSERT_FALSE(parser.has_error());
30 EXPECT_TRUE(expected.Equals(parser.extension()));
34 WebSocketExtensionParser parser; local
38 parser.Parse("\tfoo ; bar");
40 ASSERT_FALSE(parser
45 WebSocketExtensionParser parser; local
56 WebSocketExtensionParser parser; local
103 WebSocketExtensionParser parser; local
110 WebSocketExtensionParser parser; local
[all...]
/external/jsmn/
H A Djsmn.c8 static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser, argument
11 if (parser->toknext >= num_tokens) {
14 tok = &tokens[parser->toknext++];
37 static jsmnerr_t jsmn_parse_primitive(jsmn_parser *parser, const char *js, argument
42 start = parser->pos;
44 for (; parser->pos < len && js[parser->pos] != '\0'; parser->pos++) {
45 switch (js[parser->pos]) {
54 if (js[parser
86 jsmn_parse_string(jsmn_parser *parser, const char *js, size_t len, jsmntok_t *tokens, size_t num_tokens) argument
153 jsmn_parse(jsmn_parser *parser, const char *js, size_t len, jsmntok_t *tokens, unsigned int num_tokens) argument
277 jsmn_init(jsmn_parser *parser) argument
[all...]
/external/jsilver/src/com/google/streamhtmlparser/
H A DParseException.java33 * from the supplied message and the parser's line and column numbers.
34 * @param parser the {@code Parser} that triggered the exception
37 public ParseException(Parser parser, String msg) { argument
39 parser.getLineNumber(),
40 parser.getColumnNumber(),
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/type1/
H A Dt1parse.c5 /* Type 1 parser (body). */
21 /* The Type 1 parser is in charge of the following: */
136 T1_New_Parser( T1_Parser parser,
146 psaux->ps_parser_funcs->init( &parser->root, 0, 0, memory );
148 parser->stream = stream;
149 parser->base_len = 0;
150 parser->base_dict = 0;
151 parser->private_len = 0;
152 parser->private_dict = 0;
153 parser
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
H A DBERApplicationSpecificParser.java9 private final ASN1StreamParser parser; field in class:BERApplicationSpecificParser
11 BERApplicationSpecificParser(int tag, ASN1StreamParser parser) argument
14 this.parser = parser;
20 return parser.readObject();
26 return new BERApplicationSpecific(tag, parser.readVector());
/external/chromium_org/third_party/libvpx/
H A Dobj_int_extract.py13 parser = optparse.OptionParser() variable
14 parser.description = __doc__
15 parser.add_option('-e', '--executable', help='path to obj_int_extract.')
16 parser.add_option('-f', '--format', help='binary format (gas or rvds).')
17 parser.add_option('-b', '--binary', help='path to binary to parse.')
18 parser.add_option('-o', '--output', help='path to write extracted output to.')
21 options, args = parser.parse_args()
24 parser.error('Must specify all four arguments.')
/external/chromium_org/third_party/webrtc/tools/converter/
H A Drgba_to_i420_converter.cc48 webrtc::test::CommandLineParser parser; local
50 // Init the parser and set the usage message
51 parser.Init(argc, argv);
52 parser.SetUsageMessage(usage);
54 parser.SetFlag("width", "-1");
55 parser.SetFlag("height", "-1");
56 parser.SetFlag("frames_dir", ".");
57 parser.SetFlag("output_file", "output.yuv");
58 parser.SetFlag("delete_frames", "false");
59 parser
[all...]
/external/chromium_org/components/component_updater/test/
H A Dupdate_response_unittest.cc121 // The v3 version of the protocol is not using namespaces. However, the parser
212 UpdateResponse parser; local
215 EXPECT_FALSE(parser.Parse(std::string()));
216 EXPECT_FALSE(parser.errors().empty());
218 EXPECT_TRUE(parser.Parse(kMissingAppId));
219 EXPECT_TRUE(parser.results().list.empty());
220 EXPECT_FALSE(parser.errors().empty());
222 EXPECT_TRUE(parser.Parse(kInvalidCodebase));
223 EXPECT_TRUE(parser.results().list.empty());
224 EXPECT_FALSE(parser
[all...]
/external/smack/src/org/jivesoftware/smackx/provider/
H A DMUCUserProvider.java47 * @param parser the XML parser, positioned at the starting element of the extension.
51 public PacketExtension parseExtension(XmlPullParser parser) throws Exception { argument
55 int eventType = parser.next();
57 if (parser.getName().equals("invite")) {
58 mucUser.setInvite(parseInvite(parser));
60 if (parser.getName().equals("item")) {
61 mucUser.setItem(parseItem(parser));
63 if (parser.getName().equals("password")) {
64 mucUser.setPassword(parser
86 parseItem(XmlPullParser parser) argument
113 parseInvite(XmlPullParser parser) argument
134 parseDecline(XmlPullParser parser) argument
155 parseDestroy(XmlPullParser parser) argument
[all...]
H A DDataFormProvider.java46 public PacketExtension parseExtension(XmlPullParser parser) throws Exception { argument
49 DataForm dataForm = new DataForm(parser.getAttributeValue("", "type"));
51 int eventType = parser.next();
53 if (parser.getName().equals("instructions")) {
54 dataForm.addInstruction(parser.nextText());
56 else if (parser.getName().equals("title")) {
57 dataForm.setTitle(parser.nextText());
59 else if (parser.getName().equals("field")) {
60 dataForm.addField(parseField(parser));
62 else if (parser
77 parseField(XmlPullParser parser) argument
106 parseItem(XmlPullParser parser) argument
124 parseReported(XmlPullParser parser) argument
142 parseOption(XmlPullParser parser) argument
[all...]
/external/chromium_org/gpu/config/
H A Dgpu_test_expectations_parser_unittest.cc41 GPUTestExpectationsParser parser; local
42 EXPECT_TRUE(parser.LoadTestExpectations(text));
43 EXPECT_EQ(0u, parser.GetErrorMessages().size());
45 parser.GetTestExpectation("some_test", bot_config()));
52 GPUTestExpectationsParser parser; local
53 EXPECT_TRUE(parser.LoadTestExpectations(text));
54 EXPECT_EQ(0u, parser.GetErrorMessages().size());
56 parser.GetTestExpectation("MyTest", bot_config()));
63 GPUTestExpectationsParser parser; local
64 EXPECT_TRUE(parser
74 GPUTestExpectationsParser parser; local
85 GPUTestExpectationsParser parser; local
99 GPUTestExpectationsParser parser; local
114 GPUTestExpectationsParser parser; local
125 GPUTestExpectationsParser parser; local
140 GPUTestExpectationsParser parser; local
149 GPUTestExpectationsParser parser; local
158 GPUTestExpectationsParser parser; local
167 GPUTestExpectationsParser parser; local
176 GPUTestExpectationsParser parser; local
185 GPUTestExpectationsParser parser; local
194 GPUTestExpectationsParser parser; local
204 GPUTestExpectationsParser parser; local
214 GPUTestExpectationsParser parser; local
224 GPUTestExpectationsParser parser; local
235 GPUTestExpectationsParser parser; local
[all...]

Completed in 747 milliseconds

1234567891011>>