17#ifndef A11_FLOW_PARSER_H_
18#define A11_FLOW_PARSER_H_
23#include <absl/base/nullability.h>
24#include <absl/types/span.h>
33 std::vector<syntax::FlowDeclarationPtr>
flows;
40 std::vector<syntax::DtoDeclarationPtr>
dtos;
86 std::vector<Diagnostic> diagnostics);
Definition boundary.cc:32
ParseResult Parse(std::string_view source)
Parse Flow source.
Definition parser.cc:2628
ParseResult ParseTokens(std::string_view source, absl::Span< const Token > tokens, std::vector< Diagnostic > diagnostics)
Parse an already-lexed stream, sharing the lex diagnostics.
Definition parser.cc:2633
One problem found in a flow.
Definition diagnostic.h:108
The flows a file declares, and everything wrong with it.
Definition parser.h:32
std::vector< size_t > value_braces
The offset of every { that opens a value rather than a block, sorted.
Definition parser.h:50
const Diagnostic *absl_nullable FirstError() const
The first error in source order, or nullptr.
Definition parser.cc:2624
std::vector< syntax::DtoDeclarationPtr > dtos
The shapes the file declares, in declaration order.
Definition parser.h:40
std::vector< syntax::FlowDeclarationPtr > flows
Definition parser.h:33
std::vector< size_t > tagged_braces
The offsets of the value braces that follow a type tag, sorted.
Definition parser.h:57
bool HasErrors() const
Definition parser.cc:2620
std::vector< Diagnostic > diagnostics
Definition parser.h:41