Home
last modified time | relevance | path

Searched refs:Lexer (Results 1 – 25 of 265) sorted by relevance

1234567891011

/external/clang/unittests/Lex/
DLexerTest.cpp111 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/
DLexer.cpp224 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 …]
DLexer.h40 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/
DLexer.cpp63 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/nist-sip/java/gov/nist/javax/sip/parser/
DURLParser.java50 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 …]
DAddressParser.java40 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()
DCallInfoParser.java55 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()
DParametersParser.java43 protected ParametersParser(Lexer lexer) { in ParametersParser()
44 super((Lexer) lexer); in ParametersParser()
/external/llvm/lib/MC/MCParser/
DAsmParser.cpp85 AsmLexer Lexer; member in __anon4250552f0111::AsmParser
146 virtual MCAsmLexer &getLexer() { return Lexer; } in getLexer()
380 : Lexer(_MAI), Ctx(_Ctx), Out(_Out), MAI(_MAI), SrcMgr(_SM), in AsmParser()
389 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)); in AsmParser()
447 int NewBuf = SrcMgr.AddIncludeFile(Filename, Lexer.getLoc(), IncludedFile); in EnterIncludeFile()
453 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)); in EnterIncludeFile()
463 int NewBuf = SrcMgr.AddIncludeFile(Filename, Lexer.getLoc(), IncludedFile); in ProcessIncbinFile()
475 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer), Loc.getPointer()); in JumpToLoc()
479 const AsmToken *tok = &Lexer.Lex(); in Lex()
487 tok = &Lexer.Lex(); in Lex()
[all …]
/external/clang/include/clang/Lex/
DLexer.h46 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,
DPreprocessor.h204 OwningPtr<Lexer> CurLexer;
239 Lexer *TheLexer;
245 IncludeStackInfo(enum CurLexerKind K, Lexer *L, PTHLexer* P, in IncludeStackInfo()
801 return Lexer::getSpelling(loc, buffer, SourceMgr, LangOpts, invalid);
812 return Lexer::getSpelling(Tok, SourceMgr, LangOpts, Invalid);
827 return Lexer::getSpelling(Tok, Buffer, SourceMgr, LangOpts, Invalid);
862 return Lexer::getImmediateMacroName(Loc, SourceMgr, getLangOpts()); in getImmediateMacroName()
888 return Lexer::getLocForEndOfToken(Loc, Offset, SourceMgr, LangOpts);
898 return Lexer::isAtStartOfMacroExpansion(loc, SourceMgr, LangOpts,
909 return Lexer::isAtEndOfMacroExpansion(loc, SourceMgr, LangOpts, MacroEnd);
[all …]
/external/llvm/lib/Target/X86/AsmParser/
DX86AsmLexer.cpp46 if (!Lexer) { in LexToken()
79 SetError(Lexer->getErrLoc(), Lexer->getErr()); in LexTokenATT()
143 SetError(Lexer->getErrLoc(), Lexer->getErr()); in LexTokenIntel()
/external/antlr/antlr-3.4/runtime/Perl5/t/classes/Test/ANTLR/Runtime/
DLexer.pm1 package Test::ANTLR::Runtime::Lexer;
6 use ANTLR::Runtime::Lexer;
14 my $lexer = ANTLR::Runtime::Lexer->new({ input => $input });
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/
DLexer.js6 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/include/llvm/MC/
DMCTargetAsmLexer.h41 MCAsmLexer *Lexer; variable
50 Lexer = &L; in InstallLexer()
54 return Lexer; in getLexer()
/external/webkit/Source/JavaScriptCore/runtime/
DLiteralParser.cpp45 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()
DLiteralParser.h63 class Lexer {
72 Lexer(const UString& s, ParserMode mode) in Lexer() function
105 LiteralParser::Lexer m_lexer;
/external/nist-sip/java/gov/nist/core/
DHostNameParser.java52 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/
DTestCommonTokenStream.java188 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/tools/llvm-mc/
Dllvm-mc.cpp248 AsmLexer Lexer(MAI); in AsLexInput() local
249 Lexer.setBuffer(SrcMgr.getMemoryBuffer(0)); in AsLexInput()
252 while (Lexer.Lex().isNot(AsmToken::Eof)) { in AsLexInput()
253 AsmToken Tok = Lexer.getTok(); in AsLexInput()
257 SrcMgr.PrintMessage(Lexer.getLoc(), SourceMgr::DK_Warning, in AsLexInput()
265 Out->os() << "identifier: " << Lexer.getTok().getString(); in AsLexInput()
268 Out->os() << "int: " << Lexer.getTok().getString(); in AsLexInput()
271 Out->os() << "real: " << Lexer.getTok().getString(); in AsLexInput()
274 Out->os() << "register: " << Lexer.getTok().getRegVal(); in AsLexInput()
277 Out->os() << "string: " << Lexer.getTok().getString(); in AsLexInput()
/external/llvm/lib/Target/MBlaze/AsmParser/
DMBlazeAsmLexer.cpp59 if (!Lexer) { in LexToken()
95 SetError(Lexer->getErrLoc(), Lexer->getErr()); in LexTokenUAL()
/external/smali/smali/src/main/java/org/jf/smali/
DLexerErrorInterface.java32 import org.antlr.runtime.Lexer;
40 …public abstract static class ANTLRLexerWithErrorInterface extends Lexer implements LexerErrorInter…
/external/llvm/lib/Target/ARM/AsmParser/
DARMAsmLexer.cpp61 if (!Lexer) { in LexToken()
104 SetError(Lexer->getErrLoc(), Lexer->getErr()); in LexTokenUAL()
/external/jsilver/src/com/google/clearsilver/jsilver/syntax/
DSyntaxTreeBuilder.java22 import com.google.clearsilver.jsilver.syntax.lexer.Lexer;
110 Lexer lexer = new Lexer(pushbackReader); in parse()
/external/nist-sip/java/gov/nist/javax/sip/parser/ims/
DAddressHeaderParser.java35 import gov.nist.javax.sip.parser.Lexer;
48 protected AddressHeaderParser(Lexer lexer) { in AddressHeaderParser()

1234567891011