mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 12:20:27 +00:00
This reverts commit bf6bb800c4.
This commit is contained in:
1 parent
8b3bb7c5e9
commit
f5300a84e5
55 files changed
+7431
-293
No files matched your search
@@ -22,8 +22,8 @@ using Env = AssocList<std::string, Address>;
|
||||
/***** Scopes *****/
|
||||
|
||||
struct Scope {
|
||||
Scope(Env e, std::list<std::string> l) : env(e), locals(std::move(l)) {}
|
||||
Env env;
|
||||
Scope(Env* e, std::list<std::string> l) : env(e), locals(std::move(l)) {}
|
||||
Env* env;
|
||||
std::list<std::string> locals;
|
||||
};
|
||||
|
||||
@@ -45,7 +45,7 @@ struct State {
|
||||
|
||||
extern State* state;
|
||||
|
||||
void PrintEnv(Env env);
|
||||
void PrintEnv(Env* env);
|
||||
auto AllocateValue(Value* v) -> Address;
|
||||
auto CopyVal(Value* val, int line_num) -> Value*;
|
||||
auto ToInteger(Value* v) -> int;
|
||||
@@ -53,7 +53,7 @@ auto ToInteger(Value* v) -> int;
|
||||
/***** Interpreters *****/
|
||||
|
||||
auto InterpProgram(std::list<Declaration>* fs) -> int;
|
||||
auto InterpExp(Env env, Expression* e) -> Value*;
|
||||
auto InterpExp(Env* env, Expression* e) -> Value*;
|
||||
|
||||
} // namespace Carbon
|
||||
|
||||
|
||||
Reference in new issue
Block a user