Home
last modified time | relevance | path

Searched refs:lexer (Results 1 – 25 of 61) sorted by relevance

123

/llvm-project-15.0.7/mlir/examples/toy/Ch7/include/toy/
H A DParser.h39 Parser(Lexer &lexer) : lexer(lexer) {} in Parser() argument
75 Lexer &lexer;
81 lexer.consume(tok_return); in parseReturn()
99 lexer.consume(tok_number); in parseNumberExpr()
108 lexer.consume(Token('[')); in parseTensorLiteralExpr()
176 lexer.consume(Token('{')); in parseStructLiteralExpr()
246 lexer.getNextToken(); in parseCallExpr()
368 lexer.getNextToken(); in parseType()
370 lexer.getNextToken(); in parseType()
491 while (lexer.getCurToken() != '}' && lexer.getCurToken() != tok_eof) { in parseBlock()
[all …]
/llvm-project-15.0.7/mlir/examples/toy/Ch1/include/toy/
H A DParser.h39 Parser(Lexer &lexer) : lexer(lexer) {} in Parser() argument
60 Lexer &lexer;
66 lexer.consume(tok_return); in parseReturn()
84 lexer.consume(tok_number); in parseNumberExpr()
93 lexer.consume(Token('[')); in parseTensorLiteralExpr()
166 lexer.consume(Token(')')); in parseParenExpr()
197 lexer.getNextToken(); in parseIdentifierExpr()
300 lexer.getNextToken(); in parseType()
302 lexer.getNextToken(); in parseType()
359 while (lexer.getCurToken() != '}' && lexer.getCurToken() != tok_eof) { in parseBlock()
[all …]
/llvm-project-15.0.7/mlir/examples/toy/Ch2/include/toy/
H A DParser.h39 Parser(Lexer &lexer) : lexer(lexer) {} in Parser() argument
60 Lexer &lexer;
66 lexer.consume(tok_return); in parseReturn()
84 lexer.consume(tok_number); in parseNumberExpr()
93 lexer.consume(Token('[')); in parseTensorLiteralExpr()
166 lexer.consume(Token(')')); in parseParenExpr()
197 lexer.getNextToken(); in parseIdentifierExpr()
300 lexer.getNextToken(); in parseType()
302 lexer.getNextToken(); in parseType()
359 while (lexer.getCurToken() != '}' && lexer.getCurToken() != tok_eof) { in parseBlock()
[all …]
/llvm-project-15.0.7/mlir/examples/toy/Ch3/include/toy/
H A DParser.h39 Parser(Lexer &lexer) : lexer(lexer) {} in Parser() argument
60 Lexer &lexer;
66 lexer.consume(tok_return); in parseReturn()
84 lexer.consume(tok_number); in parseNumberExpr()
93 lexer.consume(Token('[')); in parseTensorLiteralExpr()
166 lexer.consume(Token(')')); in parseParenExpr()
197 lexer.getNextToken(); in parseIdentifierExpr()
300 lexer.getNextToken(); in parseType()
302 lexer.getNextToken(); in parseType()
359 while (lexer.getCurToken() != '}' && lexer.getCurToken() != tok_eof) { in parseBlock()
[all …]
/llvm-project-15.0.7/mlir/examples/toy/Ch5/include/toy/
H A DParser.h39 Parser(Lexer &lexer) : lexer(lexer) {} in Parser() argument
60 Lexer &lexer;
66 lexer.consume(tok_return); in parseReturn()
84 lexer.consume(tok_number); in parseNumberExpr()
93 lexer.consume(Token('[')); in parseTensorLiteralExpr()
166 lexer.consume(Token(')')); in parseParenExpr()
197 lexer.getNextToken(); in parseIdentifierExpr()
300 lexer.getNextToken(); in parseType()
302 lexer.getNextToken(); in parseType()
359 while (lexer.getCurToken() != '}' && lexer.getCurToken() != tok_eof) { in parseBlock()
[all …]
/llvm-project-15.0.7/mlir/examples/toy/Ch6/include/toy/
H A DParser.h39 Parser(Lexer &lexer) : lexer(lexer) {} in Parser() argument
60 Lexer &lexer;
66 lexer.consume(tok_return); in parseReturn()
84 lexer.consume(tok_number); in parseNumberExpr()
93 lexer.consume(Token('[')); in parseTensorLiteralExpr()
166 lexer.consume(Token(')')); in parseParenExpr()
197 lexer.getNextToken(); in parseIdentifierExpr()
300 lexer.getNextToken(); in parseType()
302 lexer.getNextToken(); in parseType()
359 while (lexer.getCurToken() != '}' && lexer.getCurToken() != tok_eof) { in parseBlock()
[all …]
/llvm-project-15.0.7/mlir/examples/toy/Ch4/include/toy/
H A DParser.h39 Parser(Lexer &lexer) : lexer(lexer) {} in Parser() argument
60 Lexer &lexer;
66 lexer.consume(tok_return); in parseReturn()
84 lexer.consume(tok_number); in parseNumberExpr()
93 lexer.consume(Token('[')); in parseTensorLiteralExpr()
166 lexer.consume(Token(')')); in parseParenExpr()
197 lexer.getNextToken(); in parseIdentifierExpr()
300 lexer.getNextToken(); in parseType()
302 lexer.getNextToken(); in parseType()
359 while (lexer.getCurToken() != '}' && lexer.getCurToken() != tok_eof) { in parseBlock()
[all …]
/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A DTransforms.cpp154 lexer.LexFromRawLexer(tok); in findSemiAfterLocation()
402 lexer.LexFromRawLexer(tok); in rewritePropertyAttribute()
404 lexer.LexFromRawLexer(tok); in rewritePropertyAttribute()
408 lexer.LexFromRawLexer(tok); in rewritePropertyAttribute()
416 lexer.LexFromRawLexer(tok); in rewritePropertyAttribute()
432 lexer.LexFromRawLexer(tok); in rewritePropertyAttribute()
440 lexer.LexFromRawLexer(tok); in rewritePropertyAttribute()
483 lexer.LexFromRawLexer(tok); in addPropertyAttribute()
485 lexer.LexFromRawLexer(tok); in addPropertyAttribute()
489 lexer.LexFromRawLexer(tok); in addPropertyAttribute()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DFixItHintUtils.cpp21 auto Token = utils::lexer::getPreviousToken( in changeVarDeclToReference()
51 T = lexer::getPreviousToken(Start, Context.getSourceManager(), in skipLParensBackwards()
57 Start = lexer::findPreviousTokenStart(Start, Context.getSourceManager(), in skipLParensBackwards()
135 SourceLocation BeforeStar = lexer::findPreviousTokenKind( in changePointer()
156 SourceLocation BeforeStar = lexer::findPreviousTokenKind( in changePointer()
173 SourceLocation BeforeRef = lexer::findPreviousAnyTokenKind( in changeReferencee()
/llvm-project-15.0.7/lldb/utils/lui/
H A Dsourcewin.py41 self.lexer = None
47 self.lexer = None
129 self.lexer = get_lexer_for_filename(self.filename)
169 if self.lexer and self.formatter:
171 return highlight(source, self.lexer, self.formatter)
/llvm-project-15.0.7/mlir/tools/mlir-tblgen/
H A DFormatGen.h429 : lexer(mgr, loc), curToken(lexer.lexToken()) {} in FormatParser()
488 lexer.emitError(loc, msg); in emitError()
495 lexer.emitErrorAndNote(loc, msg, note); in emitErrorAndNote()
512 curToken = lexer.lexToken(); in consumeToken()
526 FormatLexer lexer; variable
/llvm-project-15.0.7/mlir/examples/toy/Ch1/
H A Dtoyc.cpp45 LexerBuffer lexer(buffer.begin(), buffer.end(), std::string(filename)); in parseInputFile() local
46 Parser parser(lexer); in parseInputFile()
/llvm-project-15.0.7/llvm/docs/tutorial/MyFirstLanguageFrontend/
H A DLangImpl01.rst63 "`lexer <http://en.wikipedia.org/wiki/Lexical_analysis>`_" (aka
65 the lexer includes a token code and potentially some metadata (e.g. the
70 // The lexer returns tokens [0-255] if it is an unknown character, otherwise one
87 Each token returned by our lexer will either be one of the Token enum
95 The actual implementation of the lexer is a single function named
186 With this, we have the complete lexer for the basic Kaleidoscope
191 driver so that you can use the lexer and parser together.
H A Dindex.rst49 going and the basic functionality that we want to build. A lexer
51 use a simple C++ lexer which is easy to understand.
53 With the lexer in place, we can talk about parsing techniques and
94 language including a hand-written lexer, parser, AST, as well as code
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DTriviallyDestructibleCheck.cpp57 const SourceLocation FirstDeclEnd = utils::lexer::findNextTerminator( in check()
61 utils::lexer::findNextTerminator(MatchedDecl->getEndLoc(), SM, in check()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DTokenKinds.def798 // The lexer produces these so that they only take effect when the parser
803 // The lexer produces these so that they only take effect when the parser
808 // The lexer produces these so that they only take effect when the parser
813 // The lexer produces these so that they only take effect when the parser
818 // The lexer produces these so that the parser and semantic analysis can
823 // The lexer produces these so that they only take effect when the parser
828 // The lexer produces these so that they only take effect when the parser
833 // The lexer produces these so that they only take effect when the parser
838 // The lexer produces these so that they only take effect when the parser
843 // The lexer produces these so that they only take effect when the parser
[all …]
/llvm-project-15.0.7/mlir/examples/toy/Ch2/
H A Dtoyc.cpp65 LexerBuffer lexer(buffer.begin(), buffer.end(), std::string(filename)); in parseInputFile() local
66 Parser parser(lexer); in parseInputFile()
/llvm-project-15.0.7/mlir/examples/toy/Ch3/
H A Dtoyc.cpp69 LexerBuffer lexer(buffer.begin(), buffer.end(), std::string(filename)); in parseInputFile() local
70 Parser parser(lexer); in parseInputFile()
/llvm-project-15.0.7/clang-tools-extra/pseudo/
H A DREADME.md4 clang lexer, the C++ grammar, and the GLR parsing algorithm.
19 The pseudoparser reuses the clang lexer (clangLex and clangBasic libraries) but
/llvm-project-15.0.7/mlir/examples/toy/Ch4/
H A Dtoyc.cpp70 LexerBuffer lexer(buffer.begin(), buffer.end(), std::string(filename)); in parseInputFile() local
71 Parser parser(lexer); in parseInputFile()
/llvm-project-15.0.7/mlir/examples/toy/Ch5/
H A Dtoyc.cpp74 LexerBuffer lexer(buffer.begin(), buffer.end(), std::string(filename)); in parseInputFile() local
75 Parser parser(lexer); in parseInputFile()
/llvm-project-15.0.7/mlir/examples/toy/Ch6/
H A Dtoyc.cpp94 LexerBuffer lexer(buffer.begin(), buffer.end(), std::string(filename)); in parseInputFile() local
95 Parser parser(lexer); in parseInputFile()
/llvm-project-15.0.7/mlir/examples/toy/Ch7/
H A Dtoyc.cpp94 LexerBuffer lexer(buffer.begin(), buffer.end(), std::string(filename)); in parseInputFile() local
95 Parser parser(lexer); in parseInputFile()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DDeleteNullPointerCheck.cpp63 utils::lexer::getPreviousToken(IfWithDelete->getThen()->getBeginLoc(), in check()
H A DAvoidConstParamsInDecls.cpp75 auto Tok = tidy::utils::lexer::getQualifyingToken( in check()

123