From f7a7100feac1acd2f059e6232016e7ad885a1d4c Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sun, 23 Feb 2020 21:26:56 -0800 Subject: [PATCH] Reword explanation of Update + Pop --- content/blog/06_compiler_compilation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/blog/06_compiler_compilation.md b/content/blog/06_compiler_compilation.md index 698617c..2f6ca8b 100644 --- a/content/blog/06_compiler_compilation.md +++ b/content/blog/06_compiler_compilation.md @@ -408,10 +408,10 @@ looks as follows for `definition_defn`: {{< codelines "C++" "compiler/06/definition.cpp" 44 52 >}} -Notice that we terminate the function with Update and Pop. This +Notice that we terminate the function with Update and Pop. Update will turn the `ast_app` node that served as the "root" of the application into an indirection to the value that we have computed. -Doing so will also remove all "scratch work" from the stack. +After this, Pop will remove all "scratch work" from the stack. In essense, this is how we can lazily evaluate expressions. Finally, we make a function in our `main.cpp` file to compile