1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-18 13:12:50 +00:00
OpenMW/components/compiler/output.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
808 B
C++
Raw Normal View History

#ifndef COMPILER_OUTPUT_H_INCLUDED
#define COMPILER_OUTPUT_H_INCLUDED
#include "literals.hpp"
#include <vector>
#include <components/interpreter/types.hpp>
namespace Compiler
{
class Locals;
class Output
{
Literals mLiterals;
std::vector<Interpreter::Type_Code> mCode;
Locals& mLocals;
2022-09-22 18:26:05 +00:00
public:
Output(Locals& locals);
2022-09-22 18:26:05 +00:00
void getCode(std::vector<Interpreter::Type_Code>& code) const;
2014-06-15 13:58:01 +00:00
///< store generated code in \a code.
2022-09-22 18:26:05 +00:00
const Literals& getLiterals() const;
2022-09-22 18:26:05 +00:00
const Locals& getLocals() const;
2022-09-22 18:26:05 +00:00
const std::vector<Interpreter::Type_Code>& getCode() const;
2022-09-22 18:26:05 +00:00
Literals& getLiterals();
2022-09-22 18:26:05 +00:00
std::vector<Interpreter::Type_Code>& getCode();
2022-09-22 18:26:05 +00:00
Locals& getLocals();
2022-09-22 18:26:05 +00:00
void clear();
};
}
#endif