• Home
  • Raw
  • Download

Lines Matching refs:TokStart

42   TokStart = nullptr;  in setBuffer()
81 StringRef(TokStart, CurPtr - TokStart)); in LexFloatLiteral()
107 return ReturnError(TokStart, "invalid hexadecimal floating-point constant: " in LexHexFloatLiteral()
112 return ReturnError(TokStart, "invalid hexadecimal floating-point constant: " in LexHexFloatLiteral()
125 return ReturnError(TokStart, "invalid hexadecimal floating-point constant: " in LexHexFloatLiteral()
128 return AsmToken(AsmToken::Real, StringRef(TokStart, CurPtr - TokStart)); in LexHexFloatLiteral()
151 if (CurPtr == TokStart+1 && TokStart[0] == '.') in LexIdentifier()
152 return AsmToken(AsmToken::Dot, StringRef(TokStart, 1)); in LexIdentifier()
154 return AsmToken(AsmToken::Identifier, StringRef(TokStart, CurPtr - TokStart)); in LexIdentifier()
169 return AsmToken(AsmToken::Slash, StringRef(TokStart, 1)); in LexSlash()
182 StringRef(TokStart, CurPtr - TokStart)); in LexSlash()
185 return ReturnError(TokStart, "unterminated comment"); in LexSlash()
203 StringRef(TokStart, CurPtr - TokStart)); in LexLineComment()
207 StringRef(TokStart, CurPtr - 1 - TokStart)); in LexLineComment()
268 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit()
272 return ReturnError(TokStart, !isHex ? "invalid decimal number" : in LexDigit()
291 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit()
300 return ReturnError(TokStart, "invalid binary number"); in LexDigit()
302 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit()
306 return ReturnError(TokStart, "invalid binary number"); in LexDigit()
331 if (StringRef(TokStart, CurPtr - TokStart).getAsInteger(0, Result)) in LexDigit()
332 return ReturnError(TokStart, "invalid hexadecimal number"); in LexDigit()
342 return intToken(StringRef(TokStart, CurPtr - TokStart), Result); in LexDigit()
349 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit()
351 return ReturnError(TokStart, !isHex ? "invalid octal number" : in LexDigit()
373 return ReturnError(TokStart, "unterminated single quote"); in LexSingleQuote()
378 return ReturnError(TokStart, "single quote way too long"); in LexSingleQuote()
382 StringRef Res = StringRef(TokStart,CurPtr - TokStart); in LexSingleQuote()
395 Value = TokStart[1]; in LexSingleQuote()
412 return ReturnError(TokStart, "unterminated string constant"); in LexQuote()
417 return AsmToken(AsmToken::String, StringRef(TokStart, CurPtr - TokStart)); in LexQuote()
421 TokStart = CurPtr; in LexUntilEndOfStatement()
428 return StringRef(TokStart, CurPtr-TokStart); in LexUntilEndOfStatement()
432 TokStart = CurPtr; in LexUntilEndOfLine()
437 return StringRef(TokStart, CurPtr-TokStart); in LexUntilEndOfLine()
442 const char *SavedTokStart = TokStart; in peekTokens()
469 TokStart = SavedTokStart; in peekTokens()
493 TokStart = CurPtr; in LexToken()
506 CurPtr = TokStart; // reset curPtr; in LexToken()
515 if (isAtStartOfComment(TokStart)) in LexToken()
518 if (isAtStatementSeparator(TokStart)) { in LexToken()
523 StringRef(TokStart, strlen(MAI.getSeparatorString()))); in LexToken()
531 return AsmToken(AsmToken::EndOfStatement, StringRef(TokStart, 1)); in LexToken()
543 return ReturnError(TokStart, "invalid character in input"); in LexToken()
547 return AsmToken(AsmToken::Eof, StringRef(TokStart, 0)); in LexToken()
557 return AsmToken(AsmToken::Space, StringRef(TokStart, CurPtr - TokStart)); in LexToken()
562 return AsmToken(AsmToken::EndOfStatement, StringRef(TokStart, 1)); in LexToken()
563 case ':': return AsmToken(AsmToken::Colon, StringRef(TokStart, 1)); in LexToken()
564 case '+': return AsmToken(AsmToken::Plus, StringRef(TokStart, 1)); in LexToken()
565 case '-': return AsmToken(AsmToken::Minus, StringRef(TokStart, 1)); in LexToken()
566 case '~': return AsmToken(AsmToken::Tilde, StringRef(TokStart, 1)); in LexToken()
567 case '(': return AsmToken(AsmToken::LParen, StringRef(TokStart, 1)); in LexToken()
568 case ')': return AsmToken(AsmToken::RParen, StringRef(TokStart, 1)); in LexToken()
569 case '[': return AsmToken(AsmToken::LBrac, StringRef(TokStart, 1)); in LexToken()
570 case ']': return AsmToken(AsmToken::RBrac, StringRef(TokStart, 1)); in LexToken()
571 case '{': return AsmToken(AsmToken::LCurly, StringRef(TokStart, 1)); in LexToken()
572 case '}': return AsmToken(AsmToken::RCurly, StringRef(TokStart, 1)); in LexToken()
573 case '*': return AsmToken(AsmToken::Star, StringRef(TokStart, 1)); in LexToken()
574 case ',': return AsmToken(AsmToken::Comma, StringRef(TokStart, 1)); in LexToken()
575 case '$': return AsmToken(AsmToken::Dollar, StringRef(TokStart, 1)); in LexToken()
576 case '@': return AsmToken(AsmToken::At, StringRef(TokStart, 1)); in LexToken()
577 case '\\': return AsmToken(AsmToken::BackSlash, StringRef(TokStart, 1)); in LexToken()
581 return AsmToken(AsmToken::EqualEqual, StringRef(TokStart, 2)); in LexToken()
583 return AsmToken(AsmToken::Equal, StringRef(TokStart, 1)); in LexToken()
587 return AsmToken(AsmToken::PipePipe, StringRef(TokStart, 2)); in LexToken()
589 return AsmToken(AsmToken::Pipe, StringRef(TokStart, 1)); in LexToken()
590 case '^': return AsmToken(AsmToken::Caret, StringRef(TokStart, 1)); in LexToken()
594 return AsmToken(AsmToken::AmpAmp, StringRef(TokStart, 2)); in LexToken()
596 return AsmToken(AsmToken::Amp, StringRef(TokStart, 1)); in LexToken()
600 return AsmToken(AsmToken::ExclaimEqual, StringRef(TokStart, 2)); in LexToken()
602 return AsmToken(AsmToken::Exclaim, StringRef(TokStart, 1)); in LexToken()
603 case '%': return AsmToken(AsmToken::Percent, StringRef(TokStart, 1)); in LexToken()
607 case '#': return AsmToken(AsmToken::Hash, StringRef(TokStart, 1)); in LexToken()
617 return AsmToken(AsmToken::LessLess, StringRef(TokStart, 2)); in LexToken()
620 return AsmToken(AsmToken::LessEqual, StringRef(TokStart, 2)); in LexToken()
623 return AsmToken(AsmToken::LessGreater, StringRef(TokStart, 2)); in LexToken()
625 return AsmToken(AsmToken::Less, StringRef(TokStart, 1)); in LexToken()
631 return AsmToken(AsmToken::GreaterGreater, StringRef(TokStart, 2)); in LexToken()
634 return AsmToken(AsmToken::GreaterEqual, StringRef(TokStart, 2)); in LexToken()
636 return AsmToken(AsmToken::Greater, StringRef(TokStart, 1)); in LexToken()