Fix up compile in compiler blog part 6, and add more text.

This commit is contained in:
2019-10-08 14:09:58 -07:00
parent f49c045516
commit e054cb98cc
2 changed files with 10 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ struct env {
using env_ptr = std::shared_ptr<env>;
struct env_var {
struct env_var : public env {
std::string name;
env_ptr parent;
@@ -22,7 +22,7 @@ struct env_var {
bool has_variable(const std::string& name) const;
};
struct env_offset {
struct env_offset : public env {
int offset;
env_ptr parent;