summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordibyendumajumdar <mobile@majumdar.org.uk>2023-09-17 21:05:19 +0100
committerdibyendumajumdar <mobile@majumdar.org.uk>2023-09-17 21:05:19 +0100
commita62c095bd2451a6c7341bcddd32c0073b9c78ac7 (patch)
treeec278aa0dfb0531c4dbd2164b756f13b47164625
parent7ec5a9425c7585a67dc834cfb762470e86695b41 (diff)
downloadSimple-a62c095bd2451a6c7341bcddd32c0073b9c78ac7.tar.gz
Simple-a62c095bd2451a6c7341bcddd32c0073b9c78ac7.zip
Revise description of Return node.
-rw-r--r--chapter01/README.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/chapter01/README.md b/chapter01/README.md
index 679a5d5e..e5b79493 100644
--- a/chapter01/README.md
+++ b/chapter01/README.md
@@ -95,6 +95,9 @@ The Constant node's output is the value stored in it.
The Return node has two inputs. The first input is a control node. The second input is the data node that supplies the return value.
+In this presentation, the Return node functions as the Stop node, since we are compiling a single unnamed function.
+A separate Stop node is not necessary. Compiling multiple functions is covered in Chapter 9: Functions and Calls.
+
The output of the Return node is the value it obtained from the data node.
### Representation