syntax_helpers.h 753 B

123456789101112131415161718192021222324
  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_EXEC_H_
  8. #define EXECUTABLE_SEMANTICS_EXEC_H_
  9. #include <list>
  10. #include "executable_semantics/ast/declaration.h"
  11. #include "executable_semantics/common/ptr.h"
  12. namespace Carbon {
  13. // Runs the top-level declaration list.
  14. void ExecProgram(std::list<Ptr<const Declaration>> fs);
  15. } // namespace Carbon
  16. #endif // EXECUTABLE_SEMANTICS_EXEC_H_