Ralph Corderoy <ra...@inputplus.co.uk> wrote: > $ nroff | grep . > .if 'a'a'b'c' > b?c? > $ > > However, a new syntax is needed. I'd guess something at the start that > is currently invalid would indicate a whole new style of expression is > present, one with typical precedence, and more string matching > possibilities.
But why not as a first step keep the old syntax and make & a real AND and : ar real OR so that .if (\\n(AB>5:"\\$1"foo")&(!\\n(.$=2) ... is possible? (Also allowing "!=" and "!" inside expressions.) That would make everything possible. Better syntax and precedence is then just "nice to have" for the second improvement step. Steffens .if re "foo"bar" ... could be an extension to that. Carsten