Home
last modified time | relevance | path

Searched refs:tokStart (Results 1 – 6 of 6) sorted by relevance

/external/llvm-project/mlir/lib/Parser/
DLexer.cpp60 const char *tokStart = curPtr; in lexToken() local
65 return lexBareIdentifierOrKeyword(tokStart); in lexToken()
68 return emitError(tokStart, "unexpected character"); in lexToken()
79 return lexBareIdentifierOrKeyword(tokStart); in lexToken()
85 return formToken(Token::eof, tokStart); in lexToken()
89 return formToken(Token::colon, tokStart); in lexToken()
91 return formToken(Token::comma, tokStart); in lexToken()
93 return lexEllipsis(tokStart); in lexToken()
95 return formToken(Token::l_paren, tokStart); in lexToken()
97 return formToken(Token::r_paren, tokStart); in lexToken()
[all …]
DLexer.h44 Token formToken(Token::Kind kind, const char *tokStart) { in formToken() argument
45 return Token(kind, StringRef(tokStart, curPtr - tokStart)); in formToken()
51 Token lexAtIdentifier(const char *tokStart);
52 Token lexBareIdentifierOrKeyword(const char *tokStart);
53 Token lexEllipsis(const char *tokStart);
54 Token lexNumber(const char *tokStart);
55 Token lexPrefixedIdentifier(const char *tokStart);
56 Token lexString(const char *tokStart);
/external/expat/xmlwf/
Dxmlmime.c41 const char *tokStart = 0; in getTok() local
46 return tokStart; in getTok()
53 return tokStart; in getTok()
57 return tokStart; in getTok()
71 return tokStart; in getTok()
84 return tokStart; in getTok()
86 return tokStart; in getTok()
88 tokStart = *pp; in getTok()
95 tokStart = *pp; in getTok()
Dct.c39 const char *tokStart = 0; in getTok() local
49 return tokStart; in getTok()
53 return tokStart; in getTok()
67 return tokStart; in getTok()
80 return tokStart; in getTok()
82 return tokStart; in getTok()
84 tokStart = *pp; in getTok()
91 tokStart = *pp; in getTok()
/external/llvm-project/mlir/tools/mlir-linalg-ods-gen/
Dmlir-linalg-ods-gen.cpp155 Token formToken(Token::Kind kind, const char *tokStart) { in formToken() argument
156 return Token(kind, StringRef(tokStart, curPtr - tokStart)); in formToken()
163 Token lexIdentifier(const char *tokStart);
166 Token lexInteger(const char *tokStart);
218 const char *tokStart = curPtr; in lexToken() local
226 return lexIdentifier(tokStart); in lexToken()
230 return lexInteger(tokStart); in lexToken()
233 return emitError(tokStart, "unexpected character"); in lexToken()
237 return formToken(Token::Kind::eof, tokStart); in lexToken()
241 return formToken(Token::Kind::colon, tokStart); in lexToken()
[all …]
/external/llvm-project/mlir/tools/mlir-tblgen/
DOpFormatGen.cpp1856 Token formToken(Token::Kind kind, const char *tokStart) { in formToken() argument
1857 return Token(kind, StringRef(tokStart, curPtr - tokStart)); in formToken()
1864 Token lexIdentifier(const char *tokStart);
1865 Token lexLiteral(const char *tokStart);
1866 Token lexVariable(const char *tokStart);
1926 const char *tokStart = curPtr; in lexToken() local
1934 return lexIdentifier(tokStart); in lexToken()
1937 return emitError(tokStart, "unexpected character"); in lexToken()
1940 return formToken(Token::eof, tokStart); in lexToken()
1944 return formToken(Token::caret, tokStart); in lexToken()
[all …]