aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2022-05-15 21:58:45 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2022-05-15 21:58:45 -0400
commitade2f9fbb72bc960a053b6aebf6287977b099090 (patch)
treeb9f9cd62807991ffb537d406c00b6f77b60750bf /doc
parent8a64b4b7a1a721b0d8034195ba718aed6992241e (diff)
Fill in some missing full documentation links from help
Diffstat (limited to 'doc')
-rw-r--r--doc/expression.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/expression.md b/doc/expression.md
index 95355ced..754775ea 100644
--- a/doc/expression.md
+++ b/doc/expression.md
@@ -23,6 +23,10 @@ In the table, `?` marks an optional left argument. If there isn't a value in tha
If you're comfortable reading [BNF](https://en.wikipedia.org/wiki/Backus%E2%80%93Naur_form) and want to understand things in more detail than described below, you might check the [grammar specification](../spec/grammar.md) as well.
+## Parentheses
+
+As in most programming languages, parentheses `()` are for grouping. The code inside a balanced set of parentheses is a single expression, which produces one value to be used by the expression that contains it—for example, in `(2×3)+4`, `2×3` is a subexpression evaluating to `6`, so that larger expression is equivalent to `6+4`. The syntactic role of a set of parentheses is also the same as that of the expression inside.
+
## Syntactic role
*This issue is approached from a different angle in [Context free grammar](context.md).*