HomeSort by relevance Sort by last modified time
    Searched refs:parser (Results 1 - 25 of 2166) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/antlr/antlr-3.4/runtime/C/src/
antlr3parser.c 2 * Implementation of the base functionality for an ANTLR3 parser.
36 /* Parser API
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, dbg)
63 pANTLR3_PARSER parser; local
104 pANTLR3_PARSER parser; local
    [all...]
antlr3treeparser.c 2 * 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->rec = antlr3BaseRecognizerNew(ANTLR3_TYPE_PARSER, sizeHint, state)
    [all...]
  /external/qemu/
json-streamer.c 23 JSONMessageParser *parser = container_of(lexer, JSONMessageParser, lexer); local
29 parser->brace_count++;
32 parser->brace_count--;
35 parser->bracket_count++;
38 parser->bracket_count--;
52 qlist_append(parser->tokens, dict);
54 if (parser->brace_count == 0 &&
55 parser->bracket_count == 0) {
56 parser->emit(parser, parser->tokens)
    [all...]
  /libcore/luni/src/test/java/libcore/xml/
PullParserTest.java 28 XmlPullParser parser = newPullParser(); local
29 parser.setFeature("http://xmlpull.org/v1/doc/features.html#relaxed", true);
30 parser.setInput(new StringReader("<input checked></input>"));
31 assertEquals(XmlPullParser.START_TAG, parser.next());
32 assertEquals("input", parser.getName());
33 assertEquals("checked", parser.getAttributeName(0));
34 assertEquals("checked", parser.getAttributeValue(0));
38 XmlPullParser parser = newPullParser(); local
39 parser.setFeature("http://xmlpull.org/v1/doc/features.html#relaxed", true);
40 parser.setInput(new StringReader("<input checked=true></input>"))
48 XmlPullParser parser = newPullParser(); local
60 XmlPullParser parser = newPullParser(); local
68 XmlPullParser parser = newPullParser(); local
92 XmlPullParser parser = newPullParser(); local
117 XmlPullParser parser = newPullParser(); local
127 XmlPullParser parser = newPullParser(); local
158 XmlPullParser parser = newPullParser(); local
171 XmlPullParser parser = newPullParser(); local
187 XmlPullParser parser = newPullParser(); local
198 XmlPullParser parser = newPullParser(); local
214 XmlPullParser parser = newPullParser(); local
229 XmlPullParser parser = newPullParser(); local
241 XmlPullParser parser = newPullParser(); local
246 XmlPullParser parser = newPullParser(); local
261 XmlPullParser parser = newPullParser(); local
273 XmlPullParser parser = newPullParser(); local
284 XmlPullParser parser = newPullParser(); local
290 XmlPullParser parser = newPullParser(); local
306 XmlPullParser parser = newPullParser(); local
314 XmlPullParser parser = newPullParser(); local
329 XmlPullParser parser = newPullParser(); local
337 XmlPullParser parser = newPullParser(); local
345 XmlPullParser parser = newPullParser(); local
372 XmlPullParser parser = newPullParser(); local
383 XmlPullParser parser = newPullParser(); local
391 XmlPullParser parser = newPullParser(); local
399 XmlPullParser parser = newPullParser(); local
411 XmlPullParser parser = newPullParser(); local
420 XmlPullParser parser = newPullParser(); local
433 XmlPullParser parser = newPullParser(); local
441 XmlPullParser parser = newPullParser(); local
450 XmlPullParser parser = newPullParser(); local
463 XmlPullParser parser = newPullParser(); local
480 XmlPullParser parser = newPullParser(); local
512 XmlPullParser parser = newPullParser(); local
520 XmlPullParser parser = newPullParser(); local
531 XmlPullParser parser = newPullParser(); local
538 XmlPullParser parser = newPullParser(); local
548 XmlPullParser parser = newPullParser(); local
556 XmlPullParser parser = newPullParser(); local
583 XmlPullParser parser = newPullParser(); local
596 XmlPullParser parser = newPullParser(); local
699 XmlPullParser parser = newPullParser(); local
710 XmlPullParser parser = newPullParser(); local
725 XmlPullParser parser = newPullParser(); local
733 XmlPullParser parser = newPullParser(); local
770 XmlPullParser parser = newPullParser(); local
775 XmlPullParser parser = newPullParser(); local
    [all...]
PullParserDtdTest.java 33 * Android's Expat pull parser permits parameter entities to be declared,
40 XmlPullParser parser = newPullParser(xml); local
41 while (parser.next() != XmlPullParser.END_DOCUMENT) {
63 XmlPullParser parser = newPullParser(xml); local
64 assertEquals(XmlPullParser.START_TAG, parser.next());
65 assertEquals(XmlPullParser.TEXT, parser.next());
66 assertEquals("aaa", parser.getText());
67 assertEquals(XmlPullParser.END_TAG, parser.next());
68 assertEquals(XmlPullParser.END_DOCUMENT, parser.next());
75 XmlPullParser parser = newPullParser(xml) local
85 XmlPullParser parser = newPullParser(xml); local
97 XmlPullParser parser = newPullParser(xml); local
109 XmlPullParser parser = newPullParser(xml); local
121 XmlPullParser parser = newPullParser(xml); local
139 XmlPullParser parser = newPullParser(xml); local
158 XmlPullParser parser = newPullParser(xml); local
168 XmlPullParser parser = newPullParser(xml); local
198 XmlPullParser parser = newPullParser(xml); local
212 XmlPullParser parser = newPullParser(xml); local
237 XmlPullParser parser = newPullParser(xml); local
257 XmlPullParser parser = newPullParser(xml); local
277 XmlPullParser parser = newPullParser(xml); local
292 XmlPullParser parser = newPullParser(xml); local
317 XmlPullParser parser = newPullParser(xml); local
339 XmlPullParser parser = newPullParser(xml); local
353 XmlPullParser parser = newPullParser(xml); local
393 XmlPullParser parser = newPullParser(xml); local
407 XmlPullParser parser = newPullParser(xml); local
424 XmlPullParser parser = newPullParser(xml); local
434 XmlPullParser parser = newPullParser(xml); local
444 XmlPullParser parser = newPullParser(xml); local
462 XmlPullParser parser = newPullParser(xml); local
472 XmlPullParser parser = newPullParser(xml); local
483 XmlPullParser parser = newPullParser(xml); local
499 XmlPullParser parser = newPullParser(xml); local
516 XmlPullParser parser = newPullParser(); local
    [all...]
  /external/chromium_org/third_party/skia/src/svg/
SkSVGStop.cpp 19 void SkSVGStop::translate(SkSVGParser& parser, bool defState) {
20 parser._startElement("color");
21 INHERITED::translate(parser, defState);
22 parser._addAttribute("color", parser.getPaintLast(SkSVGPaint::kStopColor));
23 parser._endElement();
SkSVGG.cpp 14 void SkSVGG::translate(SkSVGParser& parser, bool defState) {
15 INHERITED::translate(parser, defState);
  /external/skia/src/svg/
SkSVGStop.cpp 19 void SkSVGStop::translate(SkSVGParser& parser, bool defState) {
20 parser._startElement("color");
21 INHERITED::translate(parser, defState);
22 parser._addAttribute("color", parser.getPaintLast(SkSVGPaint::kStopColor));
23 parser._endElement();
SkSVGG.cpp 14 void SkSVGG::translate(SkSVGParser& parser, bool defState) {
15 INHERITED::translate(parser, defState);
  /external/chromium/chrome/common/extensions/
update_manifest_unittest.cc 120 UpdateManifest parser; local
123 EXPECT_FALSE(parser.Parse(""));
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.Parse(kMissingVersion))
    [all...]
  /external/chromium_org/chrome/common/extensions/
update_manifest_unittest.cc 120 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.Parse(kMissingVersion))
    [all...]
  /external/chromium_org/tools/gyp/test/win/vs-macros/
as.py 9 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/
http_request_unittest.cc 13 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.ParseRequest())
57 HttpRequestParser parser; local
71 HttpRequestParser parser; local
    [all...]
  /external/jsilver/src/com/google/streamhtmlparser/
ParseException.java 22 * @see Parser#parse(String)
33 * 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) {
39 parser.getLineNumber(),
40 parser.getColumnNumber(),
  /external/antlr/antlr-3.4/runtime/Python/tests/
t014parser.py 14 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.reportedError
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
BERApplicationSpecificParser.java 9 private final ASN1StreamParser parser; field in class:BERApplicationSpecificParser
11 BERApplicationSpecificParser(int tag, ASN1StreamParser parser)
14 this.parser = parser;
20 return parser.readObject();
26 return new BERApplicationSpecific(tag, parser.readVector());
  /cts/tools/dasm/src/dasm/
build_parser 17 exec java -jar ../../etc/java_cup.jar < parser.cup
  /external/smack/src/org/jivesoftware/smackx/provider/
MUCUserProvider.java 47 * @param parser the XML parser, positioned at the starting element of the extension.
51 public PacketExtension parseExtension(XmlPullParser parser) throws Exception {
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.nextText())
    [all...]
DataFormProvider.java 46 public PacketExtension parseExtension(XmlPullParser parser) throws Exception {
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.getName().equals("item")) {
    [all...]
MUCAdminProvider.java 35 public IQ parseIQ(XmlPullParser parser) throws Exception {
39 int eventType = parser.next();
41 if (parser.getName().equals("item")) {
42 mucAdmin.addItem(parseItem(parser));
46 if (parser.getName().equals("query")) {
55 private MUCAdmin.Item parseItem(XmlPullParser parser) throws Exception {
59 parser.getAttributeValue("", "affiliation"),
60 parser.getAttributeValue("", "role"));
61 item.setNick(parser.getAttributeValue("", "nick"));
62 item.setJid(parser.getAttributeValue("", "jid"))
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/xml/
XPathGrammar.y 55 %parse-param { WebCore::XPath::Parser* parser }
73 static int xpathyylex(YYSTYPE* yylval) { return Parser::current()->lex(yylval); }
121 parser->m_topExpr = $1;
141 parser->registerParseNode($$);
153 parser->unregisterParseNode($1);
162 parser->unregisterParseNode($1);
163 parser->registerParseNode($$);
169 parser->unregisterParseNode($3);
176 parser->unregisterParseNode($2)
    [all...]
  /development/samples/training/network-usage/src/com/example/android/networkusage/
StackOverflowXmlParser.java 39 XmlPullParser parser = Xml.newPullParser(); local
40 parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false);
41 parser.setInput(in, null);
42 parser.nextTag();
43 return readFeed(parser);
49 private List<Entry> readFeed(XmlPullParser parser) throws XmlPullParserException, IOException {
52 parser.require(XmlPullParser.START_TAG, ns, "feed");
53 while (parser.next() != XmlPullParser.END_TAG) {
54 if (parser.getEventType() != XmlPullParser.START_TAG) {
57 String name = parser.getName()
    [all...]
  /frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
StackOverflowXmlParser.java 39 XmlPullParser parser = Xml.newPullParser(); local
40 parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false);
41 parser.setInput(in, null);
42 parser.nextTag();
43 return readFeed(parser);
49 private List<Entry> readFeed(XmlPullParser parser) throws XmlPullParserException, IOException {
52 parser.require(XmlPullParser.START_TAG, ns, "feed");
53 while (parser.next() != XmlPullParser.END_TAG) {
54 if (parser.getEventType() != XmlPullParser.START_TAG) {
57 String name = parser.getName()
    [all...]
  /external/chromium_org/gpu/config/
gpu_test_expectations_parser_unittest.cc 41 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.LoadTestExpectations(text))
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...]
  /external/antlr/antlr-3.4/runtime/C/include/
antlr3parser.h 2 * Base implementation of an ANTLR3 parser.
45 /** This is the main interface for an ANTLR3 parser.
54 /** A pointer to the base recognizer, where most of the parser functions actually
55 * live because they are shared between parser and tree parser and this is the
61 /** A provider of a tokenstream interface, for the parser to consume
67 * installs the debugging versions of the parser methods. This means that
68 * a non debug parser incurs no overhead because of the debugging stuff.
70 void (*setDebugListener) (struct ANTLR3_PARSER_struct * parser, pANTLR3_DEBUG_EVENT_LISTENER dbg);
73 * for the parser
    [all...]

Completed in 3507 milliseconds

1 2 3 4 5 6 7 8 91011>>