prelude.h 742 B

12345678910111213141516171819202122
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #ifndef EXECUTABLE_SEMANTICS_SYNTAX_PRELUDE_H_
  5. #define EXECUTABLE_SEMANTICS_SYNTAX_PRELUDE_H_
  6. #include <string_view>
  7. #include "executable_semantics/ast/declaration.h"
  8. #include "executable_semantics/common/arena.h"
  9. #include "executable_semantics/common/nonnull.h"
  10. namespace Carbon {
  11. // Adds the Carbon prelude to `declarations`.
  12. void AddPrelude(std::string_view prelude_file_name, Nonnull<Arena*> arena,
  13. std::vector<Nonnull<Declaration*>>* declarations);
  14. } // namespace Carbon
  15. #endif // EXECUTABLE_SEMANTICS_SYNTAX_PRELUDE_H_