diff options
| author | Cliff Click <cliffc@acm.org> | 2024-11-07 14:17:20 -0800 |
|---|---|---|
| committer | Cliff Click <cliffc@acm.org> | 2024-11-23 09:03:20 -0800 |
| commit | 59a06668f3975c90459409e25e884b4b594cbe3b (patch) | |
| tree | e53eac8d61685807275d2f861c7df672e3bc1032 /chapter17/README.md | |
| parent | 59fb2c02e08b9bf577f2dedfabd290cb6e00e016 (diff) | |
| download | Simple-59a06668f3975c90459409e25e884b4b594cbe3b.tar.gz Simple-59a06668f3975c90459409e25e884b4b594cbe3b.zip | |
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.
Diffstat (limited to 'chapter17/README.md')
| -rw-r--r-- | chapter17/README.md | 19 |
1 files changed, 18 insertions, 1 deletions
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: |
