Home | History | Annotate | Download | only in MCParser

Lines Matching full:tokstart

40   TokStart = 0;
90 StringRef(TokStart, CurPtr - TokStart));
111 if (CurPtr == TokStart+1 && TokStart[0] == '.')
112 return AsmToken(AsmToken::Dot, StringRef(TokStart, 1));
114 return AsmToken(AsmToken::Identifier, StringRef(TokStart, CurPtr - TokStart));
132 return ReturnError(TokStart, "unterminated comment");
183 StringRef Result(TokStart, CurPtr - TokStart);
191 return ReturnError(TokStart, "invalid decimal number");
207 StringRef Result(TokStart, CurPtr - TokStart);
216 return ReturnError(TokStart, "invalid binary number");
218 StringRef Result(TokStart, CurPtr - TokStart);
222 return ReturnError(TokStart, "invalid binary number");
242 if (StringRef(TokStart, CurPtr - TokStart).getAsInteger(0, Result))
243 return ReturnError(TokStart, "invalid hexadecimal number");
249 return AsmToken(AsmToken::Integer, StringRef(TokStart, CurPtr - TokStart),
257 StringRef Result(TokStart, CurPtr - TokStart);
260 return ReturnError(TokStart, "invalid octal number");
277 return ReturnError(TokStart, "unterminated single quote");
282 return ReturnError(TokStart, "single quote way too long");
286 StringRef Res = StringRef(TokStart,CurPtr - TokStart);
299 Value = TokStart[1];
316 return ReturnError(TokStart, "unterminated string constant");
321 return AsmToken(AsmToken::String, StringRef(TokStart, CurPtr - TokStart));
325 TokStart = CurPtr;
334 return StringRef(TokStart, CurPtr-TokStart);
348 TokStart = CurPtr;
354 if (isAtStatementSeparator(TokStart)) {
357 StringRef(TokStart, strlen(MAI.getSeparatorString())));
367 return ReturnError(TokStart, "invalid character in input");
368 case EOF: return AsmToken(AsmToken::Eof, StringRef(TokStart, 0));
376 return AsmToken(AsmToken::EndOfStatement, StringRef(TokStart, 1));
377 case ':': return AsmToken(AsmToken::Colon, StringRef(TokStart, 1));
378 case '+': return AsmToken(AsmToken::Plus, StringRef(TokStart, 1));
379 case '-': return AsmToken(AsmToken::Minus, StringRef(TokStart, 1));
380 case '~': return AsmToken(AsmToken::Tilde, StringRef(TokStart, 1));
381 case '(': return AsmToken(AsmToken::LParen, StringRef(TokStart, 1));
382 case ')': return AsmToken(AsmToken::RParen, StringRef(TokStart, 1));
383 case '[': return AsmToken(AsmToken::LBrac, StringRef(TokStart, 1));
384 case ']': return AsmToken(AsmToken::RBrac, StringRef(TokStart, 1));
385 case '{': return AsmToken(AsmToken::LCurly, StringRef(TokStart, 1));
386 case '}': return AsmToken(AsmToken::RCurly, StringRef(TokStart, 1));
387 case '*': return AsmToken(AsmToken::Star, StringRef(TokStart, 1));
388 case ',': return AsmToken(AsmToken::Comma, StringRef(TokStart, 1));
389 case '$': return AsmToken(AsmToken::Dollar, StringRef(TokStart, 1));
390 case '@': return AsmToken(AsmToken::At, StringRef(TokStart, 1));
391 case '\\': return AsmToken(AsmToken::BackSlash, StringRef(TokStart, 1));
394 return ++CurPtr, AsmToken(AsmToken::EqualEqual, StringRef(TokStart, 2));
395 return AsmToken(AsmToken::Equal, StringRef(TokStart, 1));
398 return ++CurPtr, AsmToken(AsmToken::PipePipe, StringRef(TokStart, 2));
399 return AsmToken(AsmToken::Pipe, StringRef(TokStart, 1));
400 case '^': return AsmToken(AsmToken::Caret, StringRef(TokStart, 1));
403 return ++CurPtr, AsmToken(AsmToken::AmpAmp, StringRef(TokStart, 2));
404 return AsmToken(AsmToken::Amp, StringRef(TokStart, 1));
407 return ++CurPtr, AsmToken(AsmToken::ExclaimEqual, StringRef(TokStart, 2));
408 return AsmToken(AsmToken::Exclaim, StringRef(TokStart, 1));
409 case '%': return AsmToken(AsmToken::Percent, StringRef(TokStart, 1));
411 case '#': return AsmToken(AsmToken::Hash, StringRef(TokStart, 1));
420 StringRef(TokStart, 2));
422 StringRef(TokStart, 2));
424 StringRef(TokStart, 2));
425 default: return AsmToken(AsmToken::Less, StringRef(TokStart, 1));
430 StringRef(TokStart, 2));
432 StringRef(TokStart, 2));
433 default: return AsmToken(AsmToken::Greater, StringRef(TokStart, 1));