• Home
  • Raw
  • Download

Lines Matching refs:TokStart

41   TokStart = 0;  in setBuffer()
91 StringRef(TokStart, CurPtr - TokStart)); in LexFloatLiteral()
112 if (CurPtr == TokStart+1 && TokStart[0] == '.') in LexIdentifier()
113 return AsmToken(AsmToken::Dot, StringRef(TokStart, 1)); in LexIdentifier()
115 return AsmToken(AsmToken::Identifier, StringRef(TokStart, CurPtr - TokStart)); in LexIdentifier()
133 return ReturnError(TokStart, "unterminated comment"); in LexSlash()
209 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit()
217 return ReturnError(TokStart, !isHex ? "invalid decimal number" : in LexDigit()
238 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit()
247 return ReturnError(TokStart, "invalid binary number"); in LexDigit()
249 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit()
253 return ReturnError(TokStart, "invalid binary number"); in LexDigit()
273 if (StringRef(TokStart, CurPtr - TokStart).getAsInteger(0, Result)) in LexDigit()
274 return ReturnError(TokStart, "invalid hexadecimal number"); in LexDigit()
284 return AsmToken(AsmToken::Integer, StringRef(TokStart, CurPtr - TokStart), in LexDigit()
292 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit()
294 return ReturnError(TokStart, !isHex ? "invalid octal number" : in LexDigit()
316 return ReturnError(TokStart, "unterminated single quote"); in LexSingleQuote()
321 return ReturnError(TokStart, "single quote way too long"); in LexSingleQuote()
325 StringRef Res = StringRef(TokStart,CurPtr - TokStart); in LexSingleQuote()
338 Value = TokStart[1]; in LexSingleQuote()
355 return ReturnError(TokStart, "unterminated string constant"); in LexQuote()
360 return AsmToken(AsmToken::String, StringRef(TokStart, CurPtr - TokStart)); in LexQuote()
364 TokStart = CurPtr; in LexUntilEndOfStatement()
373 return StringRef(TokStart, CurPtr-TokStart); in LexUntilEndOfStatement()
377 TokStart = CurPtr; in LexUntilEndOfLine()
384 return StringRef(TokStart, CurPtr-TokStart); in LexUntilEndOfLine()
398 TokStart = CurPtr; in LexToken()
407 return AsmToken(AsmToken::Hash, StringRef(TokStart, 1)); in LexToken()
411 if (isAtStatementSeparator(TokStart)) { in LexToken()
414 StringRef(TokStart, strlen(MAI.getSeparatorString()))); in LexToken()
421 return AsmToken(AsmToken::EndOfStatement, StringRef(TokStart, 1)); in LexToken()
432 return ReturnError(TokStart, "invalid character in input"); in LexToken()
433 case EOF: return AsmToken(AsmToken::Eof, StringRef(TokStart, 0)); in LexToken()
446 return AsmToken(AsmToken::Space, StringRef(TokStart, len)); in LexToken()
451 return AsmToken(AsmToken::EndOfStatement, StringRef(TokStart, 1)); in LexToken()
452 case ':': return AsmToken(AsmToken::Colon, StringRef(TokStart, 1)); in LexToken()
453 case '+': return AsmToken(AsmToken::Plus, StringRef(TokStart, 1)); in LexToken()
454 case '-': return AsmToken(AsmToken::Minus, StringRef(TokStart, 1)); in LexToken()
455 case '~': return AsmToken(AsmToken::Tilde, StringRef(TokStart, 1)); in LexToken()
456 case '(': return AsmToken(AsmToken::LParen, StringRef(TokStart, 1)); in LexToken()
457 case ')': return AsmToken(AsmToken::RParen, StringRef(TokStart, 1)); in LexToken()
458 case '[': return AsmToken(AsmToken::LBrac, StringRef(TokStart, 1)); in LexToken()
459 case ']': return AsmToken(AsmToken::RBrac, StringRef(TokStart, 1)); in LexToken()
460 case '{': return AsmToken(AsmToken::LCurly, StringRef(TokStart, 1)); in LexToken()
461 case '}': return AsmToken(AsmToken::RCurly, StringRef(TokStart, 1)); in LexToken()
462 case '*': return AsmToken(AsmToken::Star, StringRef(TokStart, 1)); in LexToken()
463 case ',': return AsmToken(AsmToken::Comma, StringRef(TokStart, 1)); in LexToken()
464 case '$': return AsmToken(AsmToken::Dollar, StringRef(TokStart, 1)); in LexToken()
465 case '@': return AsmToken(AsmToken::At, StringRef(TokStart, 1)); in LexToken()
466 case '\\': return AsmToken(AsmToken::BackSlash, StringRef(TokStart, 1)); in LexToken()
469 return ++CurPtr, AsmToken(AsmToken::EqualEqual, StringRef(TokStart, 2)); in LexToken()
470 return AsmToken(AsmToken::Equal, StringRef(TokStart, 1)); in LexToken()
473 return ++CurPtr, AsmToken(AsmToken::PipePipe, StringRef(TokStart, 2)); in LexToken()
474 return AsmToken(AsmToken::Pipe, StringRef(TokStart, 1)); in LexToken()
475 case '^': return AsmToken(AsmToken::Caret, StringRef(TokStart, 1)); in LexToken()
478 return ++CurPtr, AsmToken(AsmToken::AmpAmp, StringRef(TokStart, 2)); in LexToken()
479 return AsmToken(AsmToken::Amp, StringRef(TokStart, 1)); in LexToken()
482 return ++CurPtr, AsmToken(AsmToken::ExclaimEqual, StringRef(TokStart, 2)); in LexToken()
483 return AsmToken(AsmToken::Exclaim, StringRef(TokStart, 1)); in LexToken()
484 case '%': return AsmToken(AsmToken::Percent, StringRef(TokStart, 1)); in LexToken()
486 case '#': return AsmToken(AsmToken::Hash, StringRef(TokStart, 1)); in LexToken()
495 StringRef(TokStart, 2)); in LexToken()
497 StringRef(TokStart, 2)); in LexToken()
499 StringRef(TokStart, 2)); in LexToken()
500 default: return AsmToken(AsmToken::Less, StringRef(TokStart, 1)); in LexToken()
505 StringRef(TokStart, 2)); in LexToken()
507 StringRef(TokStart, 2)); in LexToken()
508 default: return AsmToken(AsmToken::Greater, StringRef(TokStart, 1)); in LexToken()