/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/expat/amiga/include/inline4/ |
expat.h | 31 #define XML_ExternalEntityParserCreate(parser, context, encoding) IExpat->XML_ExternalEntityParserCreate(parser, context, encoding) 32 #define XML_ParserFree(parser) IExpat->XML_ParserFree(parser) 33 #define XML_Parse(parser, s, len, isFinal) IExpat->XML_Parse(parser, s, len, isFinal) 34 #define XML_ParseBuffer(parser, len, isFinal) IExpat->XML_ParseBuffer(parser, len, isFinal) 35 #define XML_GetBuffer(parser, len) IExpat->XML_GetBuffer(parser, len) [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...] |
json-streamer.h | 22 void (*emit)(struct JSONMessageParser *parser, QList *tokens); 29 void json_message_parser_init(JSONMessageParser *parser, 32 int json_message_parser_feed(JSONMessageParser *parser, 35 int json_message_parser_flush(JSONMessageParser *parser); 37 void json_message_parser_destroy(JSONMessageParser *parser);
|
/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 746 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/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);
|
SkSVGPolygon.cpp | 21 void SkSVGPolygon::addAttribute(SkSVGParser& parser, int attrIndex, 23 INHERITED::addAttribute(parser, attrIndex, attrValue, attrLength); 26 void SkSVGPolygon::translate(SkSVGParser& parser, bool defState) { 27 parser._startElement("polygon"); 28 SkSVGElement::translate(parser, defState); 31 parser._addAttribute("fillType", f_fillRule.equals("evenodd") ? "evenOdd" : "winding"); 32 parser._endElement();
|
SkSVGUse.cpp | 23 void SkSVGUse::translate(SkSVGParser& parser, bool defState) { 24 INHERITED::translate(parser, defState); 25 parser._startElement("add"); 28 parser._addAttributeLen("use", start, strlen(start) - 1); 29 parser._endElement(); // clip
|
/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...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
XmlParseUtils.java | 33 public ParseException(String msg, XmlPullParser parser) { 34 super(msg + " at " + parser.getPositionDescription()); 40 public IllegalStartTag(XmlPullParser parser, String parent) { 41 super("Illegal start tag " + parser.getName() + " in " + parent, parser); 47 public IllegalEndTag(XmlPullParser parser, String parent) { 48 super("Illegal end tag " + parser.getName() + " in " + parent, parser); 54 public IllegalAttribute(XmlPullParser parser, String attribute) { 55 super("Tag " + parser.getName() + " has illegal attribute " + attribute, parser) [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...] |
t013parser.py | 14 parser = self.getParser(tStream) 15 parser.document() 17 assert len(parser.reportedErrors) == 0, parser.reportedErrors 18 assert parser.identifiers == ['foobar'] 25 parser = self.getParser(tStream) 27 parser.document() 31 assert len(parser.reportedErrors) == 1, parser.reportedErrors
|
/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/expat/amiga/ |
expat_vectors.c | 34 extern XML_Parser _Expat_XML_ExternalEntityParserCreate(struct ExpatIFace *, XML_Parser parser, const XML_Char * context, const XML_Char * encoding); 35 extern void _Expat_XML_ParserFree(struct ExpatIFace *, XML_Parser parser); 36 extern enum XML_Status _Expat_XML_Parse(struct ExpatIFace *, XML_Parser parser, const char * s, int len, int isFinal); 37 extern enum XML_Status _Expat_XML_ParseBuffer(struct ExpatIFace *, XML_Parser parser, int len, int isFinal); 38 extern void * _Expat_XML_GetBuffer(struct ExpatIFace *, XML_Parser parser, int len); 39 extern void _Expat_XML_SetStartElementHandler(struct ExpatIFace *, XML_Parser parser, XML_StartElementHandler start); 40 extern void _Expat_XML_SetEndElementHandler(struct ExpatIFace *, XML_Parser parser, XML_EndElementHandler end); 41 extern void _Expat_XML_SetElementHandler(struct ExpatIFace *, XML_Parser parser, XML_StartElementHandler start, XML_EndElementHandler end); 42 extern void _Expat_XML_SetCharacterDataHandler(struct ExpatIFace *, XML_Parser parser, XML_CharacterDataHandler handler); 43 extern void _Expat_XML_SetProcessingInstructionHandler(struct ExpatIFace *, XML_Parser parser, XML_ProcessingInstructionHandler handler) [all...] |
/external/dbus/bus/ |
config-parser.h | 2 /* config-parser.h XML-library-agnostic configuration file parser 41 BusConfigParser* bus_config_parser_ref (BusConfigParser *parser); 42 void bus_config_parser_unref (BusConfigParser *parser); 43 dbus_bool_t bus_config_parser_check_doctype (BusConfigParser *parser, 46 dbus_bool_t bus_config_parser_start_element (BusConfigParser *parser, 51 dbus_bool_t bus_config_parser_end_element (BusConfigParser *parser, 54 dbus_bool_t bus_config_parser_content (BusConfigParser *parser, 57 dbus_bool_t bus_config_parser_finished (BusConfigParser *parser, 61 const char* bus_config_parser_get_user (BusConfigParser *parser); [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/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...] |
/external/mesa3d/src/glsl/glcpp/ |
pp.c | 31 glcpp_error (YYLTYPE *locp, glcpp_parser_t *parser, const char *fmt, ...) 35 parser->error = 1; 36 parser->info_log = hieralloc_asprintf_append(parser->info_log, 43 parser->info_log = hieralloc_vasprintf_append(parser->info_log, fmt, ap); 45 parser->info_log = hieralloc_strdup_append(parser->info_log, "\n"); 49 glcpp_warning (YYLTYPE *locp, glcpp_parser_t *parser, const char *fmt, ...) 53 parser->info_log = hieralloc_asprintf_append(parser->info_log 149 glcpp_parser_t *parser = glcpp_parser_create (extensions, api); local [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
ExifReader.java | 33 ExifParser parser = ExifParser.parse(inputStream); local 34 ExifData exifData = new ExifData(parser.getByteOrder()); 36 int event = parser.next(); 40 exifData.addIfdData(new IfdData(parser.getCurrentIfd())); 43 ExifTag tag = parser.getTag(); 45 parser.registerForTagValue(tag); 51 tag = parser.getTag(); 54 parser.read(buf); 60 byte buf[] = new byte[parser.getCompressedImageSize()]; 61 parser.read(buf) [all...] |