/external/antlr/antlr-3.4/runtime/Ruby/test/functional/parser/ |
basic.rb | 11 @parser::init { 16 @parser::members { 36 # to build a parser, this is the standard chain of calls to prepare the input 40 parser = Identifiers::Parser.new( tokens ) 42 parser.document 44 parser.reported_errors.should be_empty 45 parser.identifiers.should == %w(blah_de_blah) 52 parser = Identifiers::Parser.new( lexer [all...] |
/external/chromium_org/build/android/gyp/ |
dex.py | 34 parser = optparse.OptionParser() 35 parser.add_option('--android-sdk-tools', 37 parser.add_option('--dex-path', help='Dex output path.') 38 parser.add_option('--configuration-name', 40 parser.add_option('--proguard-enabled', 42 parser.add_option('--proguard-enabled-input-path', 45 parser.add_option('--no-locals', 47 parser.add_option('--excluded-paths-file', 51 options, paths = parser.parse_args()
|
finalize_apk.py | 42 parser = optparse.OptionParser() 44 parser.add_option('--zipalign-path', help='Path to the zipalign tool.') 45 parser.add_option('--unsigned-apk-path', help='Path to input unsigned APK.') 46 parser.add_option('--final-apk-path', 48 parser.add_option('--key-path', help='Path to keystore for signing.') 49 parser.add_option('--key-passwd', help='Keystore password') 50 parser.add_option('--key-name', help='Keystore name') 51 parser.add_option('--stamp', help='Path to touch on success.') 53 options, _ = parser.parse_args()
|
/external/chromium_org/mojo/public/tools/bindings/pylib/mojom_tests/parse/ |
parser_unittest.py | 29 import mojom.parse.parser as parser namespace 33 """Tests |parser.Parse()|.""" 43 self.assertEquals(parser.Parse(source, "my_file.mojom"), 49 self.assertEquals(parser.Parse(source, "my_file.mojom"), 60 parser.ParseError, 62 parser.Parse(source, "my_file.mojom") 74 parser.ParseError, 76 parser.Parse(source1, "my_file.mojom") 91 parser.ParseError [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/ |
xml.py | 38 parser = expat.ParserCreate() 41 parser.Parse(line) 42 parser.Parse('\n') 43 parser.Parse('', True)
|
/external/chromium_org/third_party/skia/src/svg/ |
SkSVGMetadata.cpp | 23 void SkSVGMetadata::translate(SkSVGParser& parser, bool defState) {
|
SkSVGRect.cpp | 27 void SkSVGRect::translate(SkSVGParser& parser, bool defState) { 28 parser._startElement("rect"); 29 INHERITED::translate(parser, defState); 34 parser._endElement();
|
/external/chromium_org/tools/cr/cr/actions/ |
action.py | 19 def AddArguments(cls, command, parser): 20 cls.AddSelectorArg(command, parser) 23 def AddSelectorArg(cls, command, parser): 24 parser.add_argument(
|
/external/chromium_org/tools/grit/grit/format/ |
repack.py | 23 parser = optparse.OptionParser('usage: %prog [options] <output_filename>' 25 parser.add_option('--whitelist', action='store', dest='whitelist', 28 options, file_paths = parser.parse_args(argv) 31 parser.error('Please specify output and at least one input filenames')
|
/external/lldb/test/ |
bench.py | 42 parser = OptionParser(usage="""\ 46 parser.add_option('-e', '--executable', 50 parser.add_option('-x', '--breakpoint-spec', 56 opts, args = parser.parse_args()
|
/external/skia/src/svg/ |
SkSVGMetadata.cpp | 23 void SkSVGMetadata::translate(SkSVGParser& parser, bool defState) {
|
SkSVGRect.cpp | 27 void SkSVGRect::translate(SkSVGParser& parser, bool defState) { 28 parser._startElement("rect"); 29 INHERITED::translate(parser, defState); 34 parser._endElement();
|
/external/smack/src/org/jivesoftware/smackx/entitycaps/provider/ |
CapsExtensionProvider.java | 33 public PacketExtension parseExtension(XmlPullParser parser) throws XmlPullParserException, IOException, 38 if (parser.getEventType() == XmlPullParser.START_TAG 39 && parser.getName().equalsIgnoreCase(EntityCapsManager.ELEMENT)) { 40 hash = parser.getAttributeValue(null, "hash"); 41 version = parser.getAttributeValue(null, "ver"); 42 node = parser.getAttributeValue(null, "node"); 47 parser.next(); 49 if (!(parser.getEventType() == XmlPullParser.END_TAG 50 && parser.getName().equalsIgnoreCase(EntityCapsManager.ELEMENT))) {
|
/external/smack/src/org/jivesoftware/smackx/provider/ |
CapsExtensionProvider.java | 33 public PacketExtension parseExtension(XmlPullParser parser) throws XmlPullParserException, IOException, 40 if (parser.getEventType() == XmlPullParser.START_TAG && parser.getName().equalsIgnoreCase("c")) { 41 hash = parser.getAttributeValue(null, "hash"); 42 version = parser.getAttributeValue(null, "ver"); 43 node = parser.getAttributeValue(null, "node"); 46 if (parser.getEventType() == XmlPullParser.END_TAG && parser.getName().equalsIgnoreCase("c")) { 49 parser.next();
|
MessageEventProvider.java | 46 * @param parser the XML parser, positioned at the starting element of the extension. 50 public PacketExtension parseExtension(XmlPullParser parser) 55 int eventType = parser.next(); 57 if (parser.getName().equals("id")) 58 messageEvent.setPacketID(parser.nextText()); 59 if (parser.getName().equals(MessageEvent.COMPOSING)) 61 if (parser.getName().equals(MessageEvent.DELIVERED)) 63 if (parser.getName().equals(MessageEvent.DISPLAYED)) 65 if (parser.getName().equals(MessageEvent.OFFLINE) [all...] |
RosterExchangeProvider.java | 49 * @param parser the XML parser, positioned at the starting element of the extension. 53 public PacketExtension parseExtension(XmlPullParser parser) throws Exception { 62 int eventType = parser.next(); 64 if (parser.getName().equals("item")) { 68 jid = parser.getAttributeValue("", "jid"); 69 name = parser.getAttributeValue("", "name"); 71 if (parser.getName().equals("group")) { 72 groupsName.add(parser.nextText()); 75 if (parser.getName().equals("item")) [all...] |
/external/expat/lib/ |
expat.h | 155 XML_SetElementDeclHandler(XML_Parser parser, 175 XML_SetAttlistDeclHandler(XML_Parser parser, 192 XML_SetXmlDeclHandler(XML_Parser parser, 202 /* Constructs a new parser; encoding is the encoding specified by the 208 /* Constructs a new parser and namespace processor. Element type 223 /* Constructs a new parser using the memory management suite referred to 225 suite. If namespaceSeparator is non-NULL it creates a parser with 229 All further memory operations used for the created parser will come from 237 /* Prepare a parser object to be re-used. This is particularly 240 All handlers are cleared from the parser, except for th 650 XML_DefaultCurrent(XML_Parser parser); variable 690 XML_UseParserAsHandlerArg(XML_Parser parser); variable 726 XML_GetBase(XML_Parser parser); variable 735 XML_GetSpecifiedAttributeCount(XML_Parser parser); variable 743 XML_GetIdAttributeIndex(XML_Parser parser); variable 765 XML_GetAttributeInfo(XML_Parser parser); variable 833 XML_ResumeParser(XML_Parser parser); variable 922 XML_GetErrorCode(XML_Parser parser); variable 940 XMLPARSEAPI(XML_Size) XML_GetCurrentLineNumber(XML_Parser parser); variable 941 XMLPARSEAPI(XML_Size) XML_GetCurrentColumnNumber(XML_Parser parser); variable 942 XMLPARSEAPI(XML_Index) XML_GetCurrentByteIndex(XML_Parser parser); variable 948 XML_GetCurrentByteCount(XML_Parser parser); variable 986 XML_ParserFree(XML_Parser parser); variable [all...] |
/frameworks/base/core/java/android/view/animation/ |
AnimationUtils.java | 71 XmlResourceParser parser = null; local 73 parser = context.getResources().getAnimation(id); 74 return createAnimationFromXml(context, parser); 86 if (parser != null) parser.close(); 90 private static Animation createAnimationFromXml(Context c, XmlPullParser parser) 93 return createAnimationFromXml(c, parser, null, Xml.asAttributeSet(parser)); 96 private static Animation createAnimationFromXml(Context c, XmlPullParser parser, 103 int depth = parser.getDepth() 149 XmlResourceParser parser = null; local 270 XmlResourceParser parser = null; local 300 XmlResourceParser parser = null; local [all...] |
/external/chromium_org/tools/generate_library_loader/ |
generate_library_loader.py | 138 parser = optparse.OptionParser() 139 parser.add_option('--name') 140 parser.add_option('--output-cc') 141 parser.add_option('--output-h') 142 parser.add_option('--header') 144 parser.add_option('--bundled-header') 145 parser.add_option('--use-extern-c', action='store_true', default=False) 146 parser.add_option('--link-directly', type=int, default=0) 148 options, args = parser.parse_args() 151 parser.error('Missing --name parameter' [all...] |
/external/chromium_org/third_party/markdown/ |
__main__.py | 58 parser = optparse.OptionParser(usage=usage, description=desc, version=ver) 59 parser.add_option("-f", "--file", dest="filename", default=None, 62 parser.add_option("-e", "--encoding", dest="encoding", 64 parser.add_option("-q", "--quiet", default = CRITICAL, 67 parser.add_option("-v", "--verbose", 70 parser.add_option("-s", "--safe", dest="safe", default=False, 73 parser.add_option("-o", "--output_format", dest="output_format", 76 parser.add_option("--noisy", 79 parser.add_option("-x", "--extension", action="append", dest="extensions", 81 parser.add_option("-n", "--no_lazy_ol", dest="lazy_ol", [all...] |
/external/markdown/markdown/ |
commandline.py | 45 parser = optparse.OptionParser(usage="%prog INPUTFILE [options]") 46 parser.add_option("-f", "--file", dest="filename", default=sys.stdout, 49 parser.add_option("-e", "--encoding", dest="encoding", 51 parser.add_option("-q", "--quiet", default = CRITICAL, 54 parser.add_option("-v", "--verbose", 57 parser.add_option("-s", "--safe", dest="safe", default=False, 60 parser.add_option("-o", "--output_format", dest="output_format", 63 parser.add_option("--noisy", 66 parser.add_option("-x", "--extension", action="append", dest="extensions", 69 (options, args) = parser.parse_args( [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
ConversationUtils.java | 43 XmlResourceParser parser = context.getResources().getXml(resource); local 49 int eventType = parser.getEventType(); 52 if (parser.getName().equals("conversation")) { 59 } else if (parser.getName().equals("page")) { 61 for (int i=0; i < parser.getAttributeCount(); i++) { 62 final int value = parser.getAttributeResourceValue(i, -1); 64 if (parser.getAttributeName(i).equals("image")) { 67 if (parser.getAttributeName(i).equals("text")) { 70 if (parser.getAttributeName(i).equals("title")) { 78 eventType = parser.next(); [all...] |
/external/smack/src/org/jivesoftware/smackx/workgroup/ext/history/ |
AgentChatHistory.java | 95 public IQ parseIQ(XmlPullParser parser) throws Exception {
96 if (parser.getEventType() != XmlPullParser.START_TAG) {
97 throw new IllegalStateException("Parser not in proper position, or bad XML.");
104 int eventType = parser.next();
105 if ((eventType == XmlPullParser.START_TAG) && ("chat-session".equals(parser.getName()))) {
106 agentChatHistory.addChatSession(parseChatSetting(parser));
109 else if (eventType == XmlPullParser.END_TAG && ELEMENT_NAME.equals(parser.getName())) {
116 private AgentChatSession parseChatSetting(XmlPullParser parser) throws Exception {
127 int eventType = parser.next();
128 if ((eventType == XmlPullParser.START_TAG) && ("date".equals(parser.getName()))) { [all...] |
/external/antlr/antlr-3.4/runtime/Perl5/examples/simplecalc/ |
simplecalc.pl | 15 my $parser = SimpleCalcParser->new({ input => $tokens }); 17 $parser->expr(); 19 print "errors: ", $parser->get_number_of_syntax_errors(), "\n"; 20 print "failed: ", $parser->failed(), "\n";
|
/external/bison/examples/calc++/ |
Makefile.am | 39 ../../doc/bison.texi -- calc++-parser.yy \ 46 ## Parser generation. ## 54 # Compile the parser and save cycles. 58 $(srcdir)/calc++-parser.stamp \ 59 $(srcdir)/calc++-parser.yy \ 63 $(srcdir)/calc++-parser.stamp: $(srcdir)/calc++-parser.yy $(BISON_IN) 64 $(AM_V_GEN)rm -f calc++-parser.tmp 65 $(AM_V_at)touch calc++-parser.tmp 66 $(AM_V_at)$(BISON) -d -ra -S lalr1.cc -o $(srcdir)/calc++-parser.cc [all...] |