1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-30 12:32:36 +00:00

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 21:26:05 +03:00
public:
Output(Locals& locals);
2022-09-22 21:26:05 +03:00
void getCode(std::vector<Interpreter::Type_Code>& code) const;
2014-06-15 15:58:01 +02:00
///< store generated code in \a code.
2022-09-22 21:26:05 +03:00
const Literals& getLiterals() const;
2022-09-22 21:26:05 +03:00
const Locals& getLocals() const;
2022-09-22 21:26:05 +03:00
const std::vector<Interpreter::Type_Code>& getCode() const;
2022-09-22 21:26:05 +03:00
Literals& getLiterals();
2022-09-22 21:26:05 +03:00
std::vector<Interpreter::Type_Code>& getCode();
2022-09-22 21:26:05 +03:00
Locals& getLocals();
2022-09-22 21:26:05 +03:00
void clear();
};
}
#endif