class Lexer
Defined at line 23 of file ../../tools/fidl/fidlc/src/lexer.h
The lexer does not own the data it operates on. It merely takes a
std::string_view and produces a stream of tokens and possibly a failure
partway through.
See https://fuchsia.dev/fuchsia-src/development/languages/fidl/reference/compiler#_lexing
for additional context
Public Methods
Token Lex ()
Lexes and returns the next token. Must not be called again after returning
Token::Kind::kEndOfFile.
void Lexer (const SourceFile & source_file, Reporter * reporter)
The Lexer assumes the final character is 0. This substantially
simplifies advancing to the next character.
Defined at line 27 of file ../../tools/fidl/fidlc/src/lexer.h