// Part of the Carbon Language project, under the Apache License v2.0 with LLVM // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #ifndef CARBON_TOOLCHAIN_PARSE_PARSE_H_ #define CARBON_TOOLCHAIN_PARSE_PARSE_H_ #include "common/ostream.h" #include "toolchain/diagnostics/diagnostic_emitter.h" #include "toolchain/lex/tokenized_buffer.h" #include "toolchain/parse/tree.h" namespace Carbon::Parse { // Parses the token buffer into a `Tree`. // // This is the factory function which is used to build parse trees. auto Parse(Lex::TokenizedBuffer& tokens, DiagnosticConsumer& consumer, llvm::raw_ostream* vlog_stream) -> Tree; } // namespace Carbon::Parse #endif // CARBON_TOOLCHAIN_PARSE_PARSE_H_