From 6feec15b59de91e753e0ab55e748c2ec6192b80a Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 6 Apr 2025 22:23:57 -0700 Subject: doc: mention whitespace issue in infix * txr.1: Make it clear that whitespace is required between atoms in infix expressions most of the time, so certain compact notations from C-like syntax are not achieved. --- txr.1 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/txr.1 b/txr.1 index 3d4d367d..b2b01fb9 100644 --- a/txr.1 +++ b/txr.1 @@ -54120,6 +54120,19 @@ which means that it is notated with parentheses: Informally speaking, the Infix Syntax feature does not eliminate the outer parentheses. +Whitespace is required between atoms in infix expressions, because +they are ordinary Lisp lists. The infix feature does not introduce +any new token-level syntax. The expression +.code "(b + a ++)" +cannot be written +.code "(b+a++)" +or +.codn "(b + a++)" . +In situations where parentheses or braces are adjacent to +each other or to an atom, spaces may be elided, as allowed by +Lisp syntax, exemplified by: +.codn "(log(a[i][j]++))" . + .NP* Operator Table .TS -- cgit v1.2.3