/external/clang/unittests/Lex/ |
D | LexerTest.cpp | 111 EXPECT_TRUE(Lexer::isAtStartOfMacroExpansion(lsqrLoc, SourceMgr, LangOpts, &Loc)); in TEST_F() 113 EXPECT_FALSE(Lexer::isAtStartOfMacroExpansion(idLoc, SourceMgr, LangOpts)); in TEST_F() 114 EXPECT_FALSE(Lexer::isAtEndOfMacroExpansion(idLoc, SourceMgr, LangOpts)); in TEST_F() 115 EXPECT_TRUE(Lexer::isAtEndOfMacroExpansion(rsqrLoc, SourceMgr, LangOpts, &Loc)); in TEST_F() 118 CharSourceRange range = Lexer::makeFileCharRange( in TEST_F() 121 range = Lexer::makeFileCharRange(CharSourceRange::getTokenRange(idLoc, rsqrLoc), in TEST_F() 124 range = Lexer::makeFileCharRange(CharSourceRange::getTokenRange(lsqrLoc, rsqrLoc), in TEST_F() 131 StringRef text = Lexer::getSourceText( in TEST_F() 143 range = Lexer::makeFileCharRange( in TEST_F() 149 range = Lexer::makeFileCharRange(CharSourceRange::getTokenRange(macroIdLoc, macroRsqrLoc), in TEST_F() [all …]
|
/external/webkit/Source/JavaScriptCore/parser/ |
D | Lexer.cpp | 224 Lexer::Lexer(JSGlobalData* globalData) in Lexer() function in JSC::Lexer 231 Lexer::~Lexer() in ~Lexer() 236 ALWAYS_INLINE const UChar* Lexer::currentCharacter() const in currentCharacter() 242 ALWAYS_INLINE int Lexer::currentOffset() const in currentOffset() 247 void Lexer::setCode(const SourceCode& source, ParserArena& arena) in setCode() 274 ALWAYS_INLINE void Lexer::shift() in shift() 284 ALWAYS_INLINE int Lexer::peek(int offset) in peek() 292 int Lexer::getUnicodeCharacter() in getUnicodeCharacter() 309 void Lexer::shiftLineTerminator() in shiftLineTerminator() 323 ALWAYS_INLINE const Identifier* Lexer::makeIdentifier(const UChar* characters, size_t length) in makeIdentifier() [all …]
|
D | Lexer.h | 40 class Lexer { 41 WTF_MAKE_NONCOPYABLE(Lexer); WTF_MAKE_FAST_ALLOCATED; 91 Lexer(JSGlobalData*); 92 ~Lexer(); 150 inline bool Lexer::isWhiteSpace(int ch) in isWhiteSpace() 155 inline bool Lexer::isLineTerminator(int ch) in isLineTerminator() 160 inline unsigned char Lexer::convertHex(int c1, int c2) in convertHex() 165 inline UChar Lexer::convertUnicode(int c1, int c2, int c3, int c4) in convertUnicode()
|
/external/clang/lib/Lex/ |
D | Lexer.cpp | 63 void Lexer::anchor() { } in anchor() 65 void Lexer::InitLexer(const char *BufStart, const char *BufPtr, in InitLexer() 117 Lexer::Lexer(FileID FID, const llvm::MemoryBuffer *InputFile, Preprocessor &PP) in Lexer() function in Lexer 132 Lexer::Lexer(SourceLocation fileloc, const LangOptions &langOpts, in Lexer() function in Lexer 145 Lexer::Lexer(FileID FID, const llvm::MemoryBuffer *FromFile, in Lexer() function in Lexer 171 Lexer *Lexer::Create_PragmaLexer(SourceLocation SpellingLoc, in Create_PragmaLexer() 180 Lexer *L = new Lexer(SpellingFID, InputFile, PP); in Create_PragmaLexer() 209 std::string Lexer::Stringify(const std::string &Str, bool Charify) { in Stringify() 223 void Lexer::Stringify(SmallVectorImpl<char> &Str) { in Stringify() 241 StringRef Lexer::getSpelling(SourceLocation loc, in getSpelling() [all …]
|
/external/llvm/lib/MC/MCParser/ |
D | AsmParser.cpp | 90 AsmLexer Lexer; member in __anon7a2b25310111::AsmParser 151 virtual MCAsmLexer &getLexer() { return Lexer; } in getLexer() 407 : Lexer(_MAI), Ctx(_Ctx), Out(_Out), MAI(_MAI), SrcMgr(_SM), in AsmParser() 416 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)); in AsmParser() 474 int NewBuf = SrcMgr.AddIncludeFile(Filename, Lexer.getLoc(), IncludedFile); in EnterIncludeFile() 480 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)); in EnterIncludeFile() 490 int NewBuf = SrcMgr.AddIncludeFile(Filename, Lexer.getLoc(), IncludedFile); in ProcessIncbinFile() 502 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer), Loc.getPointer()); in JumpToLoc() 506 const AsmToken *tok = &Lexer.Lex(); in Lex() 514 tok = &Lexer.Lex(); in Lex() [all …]
|
/external/clang/lib/AST/ |
D | CommentLexer.cpp | 10 void Token::dump(const Lexer &L, const SourceManager &SM) const { in dump() 36 StringRef Lexer::resolveHTMLNamedCharacterReference(StringRef Name) const { in resolveHTMLNamedCharacterReference() 46 StringRef Lexer::resolveHTMLDecimalCharacterReference(StringRef Name) const { in resolveHTMLDecimalCharacterReference() 62 StringRef Lexer::resolveHTMLHexCharacterReference(StringRef Name) const { in resolveHTMLHexCharacterReference() 84 void Lexer::skipLineStartingDecorations() { in skipLineStartingDecorations() 285 void Lexer::lexCommentText(Token &T) { in lexCommentText() 429 void Lexer::setupAndLexVerbatimBlock(Token &T, in setupAndLexVerbatimBlock() 456 void Lexer::lexVerbatimBlockFirstLine(Token &T) { in lexVerbatimBlockFirstLine() 501 void Lexer::lexVerbatimBlockBody(Token &T) { in lexVerbatimBlockBody() 510 void Lexer::setupAndLexVerbatimLine(Token &T, const char *TextBegin, in setupAndLexVerbatimLine() [all …]
|
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
D | URLParser.java | 50 this.lexer = new Lexer("sip_urlLexer", url); in URLParser() 54 public URLParser(Lexer lexer) { in URLParser() 76 return Lexer.isAlphaDigit(next) || isMark(next); in isUnreserved() 206 Lexer.isHexDigit(lexer.lookAhead(1)) && in isEscaped() 207 Lexer.isHexDigit(lexer.lookAhead(2)); in isEscaped() 222 && Lexer.isHexDigit(next1) in escaped() 223 && Lexer.isHexDigit(next2)) { in escaped() 261 return Lexer.charAsString(la); in uric() 264 return Lexer.charAsString(la); in uric() 293 return Lexer.charAsString(la); in uricNoSlash() [all …]
|
D | AddressParser.java | 40 public AddressParser(Lexer lexer) { in AddressParser() 46 this.lexer = new Lexer("charLexer", address); in AddressParser() 57 URLParser uriParser = new URLParser((Lexer) lexer); in nameAddr() 77 URLParser uriParser = new URLParser((Lexer) lexer); in nameAddr() 115 URLParser uriParser = new URLParser((Lexer) lexer); in address()
|
D | CallInfoParser.java | 55 protected CallInfoParser(Lexer lexer) { in CallInfoParser() 78 URLParser urlParser=new URLParser((Lexer)this.lexer); in parse() 95 urlParser=new URLParser((Lexer)this.lexer); in parse()
|
/external/clang/include/clang/Lex/ |
D | Lexer.h | 46 class Lexer : public PreprocessorLexer { 86 Lexer(const Lexer&); // DO NOT IMPLEMENT 87 void operator=(const Lexer&); // DO NOT IMPLEMENT 97 Lexer(FileID FID, const llvm::MemoryBuffer *InputBuffer, Preprocessor &PP); 102 Lexer(SourceLocation FileLoc, const LangOptions &LangOpts, 108 Lexer(FileID FID, const llvm::MemoryBuffer *InputBuffer, 114 static Lexer *Create_PragmaLexer(SourceLocation SpellingLoc,
|
D | Preprocessor.h | 215 OwningPtr<Lexer> CurLexer; 250 Lexer *TheLexer; 256 IncludeStackInfo(enum CurLexerKind K, Lexer *L, PTHLexer* P, in IncludeStackInfo() 842 return Lexer::getSpelling(loc, buffer, SourceMgr, LangOpts, invalid); 853 return Lexer::getSpelling(Tok, SourceMgr, LangOpts, Invalid); 868 return Lexer::getSpelling(Tok, Buffer, SourceMgr, LangOpts, Invalid); 903 return Lexer::getImmediateMacroName(Loc, SourceMgr, getLangOpts()); in getImmediateMacroName() 929 return Lexer::getLocForEndOfToken(Loc, Offset, SourceMgr, LangOpts); 939 return Lexer::isAtStartOfMacroExpansion(loc, SourceMgr, LangOpts, 950 return Lexer::isAtEndOfMacroExpansion(loc, SourceMgr, LangOpts, MacroEnd); [all …]
|
/external/antlr/antlr-3.4/runtime/Perl5/t/classes/Test/ANTLR/Runtime/ |
D | Lexer.pm | 1 package Test::ANTLR::Runtime::Lexer; 6 use ANTLR::Runtime::Lexer; 14 my $lexer = ANTLR::Runtime::Lexer->new({ input => $input });
|
/external/llvm/lib/Target/X86/AsmParser/ |
D | X86AsmLexer.cpp | 46 if (!Lexer) { in LexToken() 79 SetError(Lexer->getErrLoc(), Lexer->getErr()); in LexTokenATT() 143 SetError(Lexer->getErrLoc(), Lexer->getErr()); in LexTokenIntel()
|
/external/clang/include/clang/AST/ |
D | CommentLexer.h | 27 class Lexer; variable 56 friend class Lexer; variable 216 void dump(const Lexer &L, const SourceManager &SM) const; 220 class Lexer { 222 Lexer(const Lexer &) LLVM_DELETED_FUNCTION; 223 void operator=(const Lexer &) LLVM_DELETED_FUNCTION; 348 Lexer(llvm::BumpPtrAllocator &Allocator, const CommandTraits &Traits,
|
D | CommentBriefParser.h | 31 Lexer &L; 45 BriefParser(Lexer &L, const CommandTraits &Traits);
|
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/ |
D | Lexer.js | 6 org.antlr.runtime.Lexer = function(input, state) { class in org.antlr.runtime 8 org.antlr.runtime.Lexer.superclass.constructor.call(this, state); 15 org.antlr.lang.extend(org.antlr.runtime.Lexer, org.antlr.runtime.BaseRecognizer, { 18 org.antlr.runtime.Lexer.superclass.reset.call(this); 242 msg = org.antlr.runtime.Lexer.superclass.getErrorMessage.call(this, e, tokenNames); 277 org.antlr.runtime.Lexer.superclass.traceIn.call(this, ruleName, ruleIndex, inputSymbol); 282 org.antlr.runtime.Lexer.superclass.traceOut.call(this, ruleName, ruleIndex, inputSymbol);
|
/external/llvm/tools/llvm-mc/ |
D | llvm-mc.cpp | 226 AsmLexer Lexer(MAI); in AsLexInput() local 227 Lexer.setBuffer(SrcMgr.getMemoryBuffer(0)); in AsLexInput() 230 while (Lexer.Lex().isNot(AsmToken::Eof)) { in AsLexInput() 231 AsmToken Tok = Lexer.getTok(); in AsLexInput() 235 SrcMgr.PrintMessage(Lexer.getLoc(), SourceMgr::DK_Warning, in AsLexInput() 243 Out->os() << "identifier: " << Lexer.getTok().getString(); in AsLexInput() 246 Out->os() << "int: " << Lexer.getTok().getString(); in AsLexInput() 249 Out->os() << "real: " << Lexer.getTok().getString(); in AsLexInput() 252 Out->os() << "register: " << Lexer.getTok().getRegVal(); in AsLexInput() 255 Out->os() << "string: " << Lexer.getTok().getString(); in AsLexInput()
|
/external/llvm/include/llvm/MC/ |
D | MCTargetAsmLexer.h | 41 MCAsmLexer *Lexer; variable 50 Lexer = &L; in InstallLexer() 54 return Lexer; in getLexer()
|
/external/webkit/Source/JavaScriptCore/runtime/ |
D | LiteralParser.cpp | 45 LiteralParser::TokenType LiteralParser::Lexer::lex(LiteralParserToken& token) in lex() 141 template <LiteralParser::ParserMode mode> inline LiteralParser::TokenType LiteralParser::Lexer::lex… in lexString() 197 … builder.append(JSC::Lexer::convertUnicode(m_ptr[1], m_ptr[2], m_ptr[3], m_ptr[4])); in lexString() 216 LiteralParser::TokenType LiteralParser::Lexer::lexNumber(LiteralParserToken& token) in lexNumber() 341 Lexer::LiteralParserToken identifierToken = m_lexer.currentToken(); in parse() 363 Lexer::LiteralParserToken identifierToken = m_lexer.currentToken(); in parse() 395 Lexer::LiteralParserToken stringToken = m_lexer.currentToken(); in parse() 401 Lexer::LiteralParserToken numberToken = m_lexer.currentToken(); in parse()
|
D | LiteralParser.h | 63 class Lexer { 72 Lexer(const UString& s, ParserMode mode) in Lexer() function 105 LiteralParser::Lexer m_lexer;
|
/external/nist-sip/java/gov/nist/core/ |
D | HostNameParser.java | 52 private static LexerCore Lexer; field in HostNameParser 225 int hostEnd = uriHeader.indexOf(Lexer.QUESTION); in isIPv6Address() 229 int semiColonIndex = uriHeader.indexOf(Lexer.SEMICOLON); in isIPv6Address() 242 int firstColonIndex = host.indexOf(Lexer.COLON); in isIPv6Address() 247 int secondColonIndex = host.indexOf(Lexer.COLON, firstColonIndex + 1); in isIPv6Address()
|
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/ |
D | TestCommonTokenStream.java | 188 tokens[0].setChannel(Lexer.HIDDEN); in testOffChannel() 189 tokens[2].setChannel(Lexer.HIDDEN); in testOffChannel() 190 tokens[5].setChannel(Lexer.HIDDEN); in testOffChannel() 191 tokens[6].setChannel(Lexer.HIDDEN); in testOffChannel() 192 tokens[8].setChannel(Lexer.HIDDEN); in testOffChannel()
|
/external/llvm/lib/Target/MBlaze/AsmParser/ |
D | MBlazeAsmLexer.cpp | 59 if (!Lexer) { in LexToken() 95 SetError(Lexer->getErrLoc(), Lexer->getErr()); in LexTokenUAL()
|
/external/smali/smali/src/main/java/org/jf/smali/ |
D | LexerErrorInterface.java | 32 import org.antlr.runtime.Lexer; 40 …public abstract static class ANTLRLexerWithErrorInterface extends Lexer implements LexerErrorInter…
|
/external/llvm/lib/Target/ARM/AsmParser/ |
D | ARMAsmLexer.cpp | 61 if (!Lexer) { in LexToken() 104 SetError(Lexer->getErrLoc(), Lexer->getErr()); in LexTokenUAL()
|