24 lines
595 B
C++
24 lines
595 B
C++
/* file Environment.hpp
|
|
*
|
|
* author: Roland Conybeare, Jun 2024
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "xo/refcnt/Refcounted.hpp"
|
|
#include "Variable.hpp"
|
|
|
|
namespace xo {
|
|
namespace ast {
|
|
class Environment : public ref::Refcount {
|
|
public:
|
|
/** lookup variable-expression @p vname in this environment.
|
|
* returns llvm::Value representing code that produces a value for vname
|
|
**/
|
|
virtual ref::brw<Expression> lookup_var(const std::string & vname) const = 0;
|
|
};
|
|
} /*namespace ast*/
|
|
} /*namespace xo*/
|
|
|
|
|
|
/* end Environment.hpp */
|