exec_program.h 732 B

123456789101112131415161718192021
  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. // Helpers should be added here when logic in syntax.ypp is more than a single
  5. // statement. The intent is to minimize the amount of C++ in the .ypp file, to
  6. // improve ease of maintenance.
  7. #ifndef EXECUTABLE_SEMANTICS_INTERPRETER_EXEC_PROGRAM_H_
  8. #define EXECUTABLE_SEMANTICS_INTERPRETER_EXEC_PROGRAM_H_
  9. #include "executable_semantics/ast/ast.h"
  10. namespace Carbon {
  11. // Runs the top-level declaration list.
  12. void ExecProgram(Ptr<Arena> arena, AST ast);
  13. } // namespace Carbon
  14. #endif // EXECUTABLE_SEMANTICS_INTERPRETER_EXEC_PROGRAM_H_