From 59a06668f3975c90459409e25e884b4b594cbe3b Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Thu, 7 Nov 2024 14:17:20 -0800 Subject: Allow post ++, -- Fix eval auto-string result. Fix tests hacked because of this. Turn on BrainFuck in ch15,16,17, also disabled because of this. Use new features in BrainFuck. Fix bug not lifting forward refs; add a toString to Vars. Fix some missing addDeps. Remove large complex not-productive peep. Upcast after "while" tests. Improves a bunch of tests. Remove dead getBlockStart. --- chapter17/README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'chapter17/README.md') diff --git a/chapter17/README.md b/chapter17/README.md index bedce38b..6c70f022 100644 --- a/chapter17/README.md +++ b/chapter17/README.md @@ -1,4 +1,21 @@ -# Chapter 17: Functions +# Chapter 17: Syntax Sugar + +# Post-increment + +Allow `arg++` and `arg--` with the usual meanings; the value is updated and the +expression is the pre-update value. Greedy match is used so `arg---arg` parses +as `(arg--)-arg`. + + +var/val +invert ! +C++-style for-loop +for-interator + + + + +# Chapter 18: Functions Some thinking on function syntax: -- cgit v1.2.3