17#ifndef A11_FLOW_LEXER_H_
18#define A11_FLOW_LEXER_H_
Definition boundary.cc:32
LexResult Lex(std::string_view source, LexOptions options={})
Turn Flow source into tokens, ending with a single end token.
What to keep while lexing.
Definition lexer.h:29
bool keep_comments
Whether comments are tokens.
Definition lexer.h:37
Tokens, and what could not be read.
Definition lexer.h:41
std::vector< Token > tokens
Definition lexer.h:42
std::vector< Diagnostic > diagnostics
Definition lexer.h:43
bool HasErrors() const
Whether anything is an error, which is what the strict entry points check.
Definition lexer.cc:549