summaryrefslogtreecommitdiff
path: root/chapter01/README.md
diff options
context:
space:
mode:
authordibyendumajumdar <mobile@majumdar.org.uk>2023-09-19 21:30:41 +0100
committerdibyendumajumdar <mobile@majumdar.org.uk>2023-09-19 21:30:41 +0100
commitcecb62d847da7dc937b52857ae2fd4b41af98a7c (patch)
tree0e628f6a331a0c7e3b56424021243535019f7784 /chapter01/README.md
parentbf82e7a511cd1f2ab739f75b4dcf536478591f09 (diff)
downloadSimple-cecb62d847da7dc937b52857ae2fd4b41af98a7c.tar.gz
Simple-cecb62d847da7dc937b52857ae2fd4b41af98a7c.zip
Do not parse negative integers, - will be treated as unary operator.
Update the comments for Return node. Sync comments with README.
Diffstat (limited to 'chapter01/README.md')
-rw-r--r--chapter01/README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/chapter01/README.md b/chapter01/README.md
index 5a59ace8..f3231d8c 100644
--- a/chapter01/README.md
+++ b/chapter01/README.md
@@ -100,8 +100,8 @@ The Constant's value is the value stored in it.
The Return node has two inputs. The first input is a control node and the
second is the data node that supplies the return value.
-In this presentation, Return functions as a Stop node, since we are compiling a single unnamed function.
-A separate Stop is not necessary. Compiling multiple functions is covered in Chapter 9: Functions and Calls.
+In this presentation, Return functions as a Stop node, since multiple `return` statements are not possible.
+The Stop node will be introduced in Chapter 6 when we implement `if` statements.
The Return's output is the value from the data node.