#ifndef FORSPLL_VAR_HPP #define FORSPLL_VAR_HPP #include #include struct Var { llvm::Value *value; bool callable; Var(llvm::Value *v = nullptr, bool c = false): value(v), callable(c) {} static Var lookup(const std::string& name, int skip = 0); static void pushScope(); static void popScope(); static Var& addGlobal(const std::string& name, Var var); static Var& addLocal(const std::string& name, Var var); }; #endif // FORSPLL_VAR_HPP