frame.cpp 506 B

1234567891011121314151617181920
  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. #include "executable_semantics/interpreter/frame.h"
  5. #include <ostream>
  6. #include "executable_semantics/interpreter/action.h"
  7. namespace Carbon {
  8. void PrintFrame(Frame* frame, std::ostream& out) {
  9. out << frame->name;
  10. out << "{";
  11. Action::PrintList(frame->todo, out);
  12. out << "}";
  13. }
  14. } // namespace Carbon