Interpreter.h 387 B

1234567891011121314151617181920
  1. /*
  2. * Copyright (c) 2021, Ali Mohammad Pur <mpfard@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWasm/AbstractMachine/Configuration.h>
  8. namespace Wasm {
  9. struct Interpreter {
  10. virtual ~Interpreter() = default;
  11. virtual void interpret(Configuration&) = 0;
  12. virtual bool did_trap() const = 0;
  13. virtual void clear_trap() = 0;
  14. };
  15. }