• Home
  • Raw
  • Download

Lines Matching refs:TokStart

49   TokStart = nullptr;  in setBuffer()
96 StringRef(TokStart, CurPtr - TokStart)); in LexFloatLiteral()
122 return ReturnError(TokStart, "invalid hexadecimal floating-point constant: " in LexHexFloatLiteral()
127 return ReturnError(TokStart, "invalid hexadecimal floating-point constant: " in LexHexFloatLiteral()
140 return ReturnError(TokStart, "invalid hexadecimal floating-point constant: " in LexHexFloatLiteral()
143 return AsmToken(AsmToken::Real, StringRef(TokStart, CurPtr - TokStart)); in LexHexFloatLiteral()
168 if (CurPtr == TokStart+1 && TokStart[0] == '.') in LexIdentifier()
169 return AsmToken(AsmToken::Dot, StringRef(TokStart, 1)); in LexIdentifier()
171 return AsmToken(AsmToken::Identifier, StringRef(TokStart, CurPtr - TokStart)); in LexIdentifier()
186 return AsmToken(AsmToken::Slash, StringRef(TokStart, 1)); in LexSlash()
206 StringRef(TokStart, CurPtr - TokStart)); in LexSlash()
209 return ReturnError(TokStart, "unterminated comment"); in LexSlash()
237 StringRef(TokStart, CurPtr - TokStart)); in LexLineComment()
241 StringRef(TokStart, CurPtr - 1 - TokStart)); in LexLineComment()
361 return AsmToken(AsmToken::Real, StringRef(TokStart, CurPtr - TokStart)); in LexDigit()
393 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit()
397 return ReturnError(TokStart, "invalid " + radixName(Radix) + " number"); in LexDigit()
413 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit()
417 return ReturnError(TokStart, in LexDigit()
435 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit()
439 return ReturnError(TokStart, "invalid " + radixName(Radix) + " number"); in LexDigit()
454 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit()
463 return ReturnError(TokStart, "invalid binary number"); in LexDigit()
465 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit()
469 return ReturnError(TokStart, "invalid binary number"); in LexDigit()
494 if (StringRef(TokStart, CurPtr - TokStart).getAsInteger(0, Result)) in LexDigit()
495 return ReturnError(TokStart, "invalid hexadecimal number"); in LexDigit()
505 return intToken(StringRef(TokStart, CurPtr - TokStart), Result); in LexDigit()
511 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit()
513 return ReturnError(TokStart, "invalid " + radixName(Radix) + " number"); in LexDigit()
544 return ReturnError(TokStart, "unterminated string constant"); in LexSingleQuote()
545 return AsmToken(AsmToken::String, StringRef(TokStart, CurPtr - TokStart)); in LexSingleQuote()
552 return ReturnError(TokStart, "unterminated single quote"); in LexSingleQuote()
557 return ReturnError(TokStart, "single quote way too long"); in LexSingleQuote()
561 StringRef Res = StringRef(TokStart,CurPtr - TokStart); in LexSingleQuote()
574 Value = TokStart[1]; in LexSingleQuote()
596 return ReturnError(TokStart, "unterminated string constant"); in LexQuote()
597 return AsmToken(AsmToken::String, StringRef(TokStart, CurPtr - TokStart)); in LexQuote()
608 return ReturnError(TokStart, "unterminated string constant"); in LexQuote()
613 return AsmToken(AsmToken::String, StringRef(TokStart, CurPtr - TokStart)); in LexQuote()
617 TokStart = CurPtr; in LexUntilEndOfStatement()
624 return StringRef(TokStart, CurPtr-TokStart); in LexUntilEndOfStatement()
628 TokStart = CurPtr; in LexUntilEndOfLine()
633 return StringRef(TokStart, CurPtr-TokStart); in LexUntilEndOfLine()
638 SaveAndRestore<const char *> SavedTokenStart(TokStart); in peekTokens()
680 TokStart = CurPtr; in LexToken()
693 CurPtr = TokStart; // reset curPtr; in LexToken()
702 if (isAtStartOfComment(TokStart)) in LexToken()
705 if (isAtStatementSeparator(TokStart)) { in LexToken()
710 StringRef(TokStart, strlen(MAI.getSeparatorString()))); in LexToken()
718 return AsmToken(AsmToken::EndOfStatement, StringRef(TokStart, 1)); in LexToken()
737 return ReturnError(TokStart, "invalid character in input"); in LexToken()
743 return AsmToken(AsmToken::Eof, StringRef(TokStart, 0)); in LexToken()
753 return AsmToken(AsmToken::Space, StringRef(TokStart, CurPtr - TokStart)); in LexToken()
761 StringRef(TokStart, CurPtr - TokStart)); in LexToken()
766 return AsmToken(AsmToken::EndOfStatement, StringRef(TokStart, 1)); in LexToken()
767 case ':': return AsmToken(AsmToken::Colon, StringRef(TokStart, 1)); in LexToken()
768 case '+': return AsmToken(AsmToken::Plus, StringRef(TokStart, 1)); in LexToken()
769 case '~': return AsmToken(AsmToken::Tilde, StringRef(TokStart, 1)); in LexToken()
770 case '(': return AsmToken(AsmToken::LParen, StringRef(TokStart, 1)); in LexToken()
771 case ')': return AsmToken(AsmToken::RParen, StringRef(TokStart, 1)); in LexToken()
772 case '[': return AsmToken(AsmToken::LBrac, StringRef(TokStart, 1)); in LexToken()
773 case ']': return AsmToken(AsmToken::RBrac, StringRef(TokStart, 1)); in LexToken()
774 case '{': return AsmToken(AsmToken::LCurly, StringRef(TokStart, 1)); in LexToken()
775 case '}': return AsmToken(AsmToken::RCurly, StringRef(TokStart, 1)); in LexToken()
776 case '*': return AsmToken(AsmToken::Star, StringRef(TokStart, 1)); in LexToken()
777 case ',': return AsmToken(AsmToken::Comma, StringRef(TokStart, 1)); in LexToken()
778 case '$': return AsmToken(AsmToken::Dollar, StringRef(TokStart, 1)); in LexToken()
779 case '@': return AsmToken(AsmToken::At, StringRef(TokStart, 1)); in LexToken()
780 case '\\': return AsmToken(AsmToken::BackSlash, StringRef(TokStart, 1)); in LexToken()
784 return AsmToken(AsmToken::EqualEqual, StringRef(TokStart, 2)); in LexToken()
786 return AsmToken(AsmToken::Equal, StringRef(TokStart, 1)); in LexToken()
790 return AsmToken(AsmToken::MinusGreater, StringRef(TokStart, 2)); in LexToken()
792 return AsmToken(AsmToken::Minus, StringRef(TokStart, 1)); in LexToken()
796 return AsmToken(AsmToken::PipePipe, StringRef(TokStart, 2)); in LexToken()
798 return AsmToken(AsmToken::Pipe, StringRef(TokStart, 1)); in LexToken()
799 case '^': return AsmToken(AsmToken::Caret, StringRef(TokStart, 1)); in LexToken()
803 return AsmToken(AsmToken::AmpAmp, StringRef(TokStart, 2)); in LexToken()
805 return AsmToken(AsmToken::Amp, StringRef(TokStart, 1)); in LexToken()
809 return AsmToken(AsmToken::ExclaimEqual, StringRef(TokStart, 2)); in LexToken()
811 return AsmToken(AsmToken::Exclaim, StringRef(TokStart, 1)); in LexToken()
848 return AsmToken(Operator, StringRef(TokStart, OperatorLength)); in LexToken()
851 return AsmToken(AsmToken::Percent, StringRef(TokStart, 1)); in LexToken()
855 case '#': return AsmToken(AsmToken::Hash, StringRef(TokStart, 1)); in LexToken()
865 return AsmToken(AsmToken::LessLess, StringRef(TokStart, 2)); in LexToken()
868 return AsmToken(AsmToken::LessEqual, StringRef(TokStart, 2)); in LexToken()
871 return AsmToken(AsmToken::LessGreater, StringRef(TokStart, 2)); in LexToken()
873 return AsmToken(AsmToken::Less, StringRef(TokStart, 1)); in LexToken()
879 return AsmToken(AsmToken::GreaterGreater, StringRef(TokStart, 2)); in LexToken()
882 return AsmToken(AsmToken::GreaterEqual, StringRef(TokStart, 2)); in LexToken()
884 return AsmToken(AsmToken::Greater, StringRef(TokStart, 1)); in LexToken()