[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] condition: OR of two string comparisons
From: |
Carsten Kunze |
Subject: |
Re: [Groff] condition: OR of two string comparisons |
Date: |
Thu, 13 Nov 2014 21:28:05 +0100 (CET) |
Ralph Corderoy <address@hidden> 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
- Re: [Groff] condition: OR of two string comparisons, (continued)
- Re: [Groff] condition: OR of two string comparisons, James K. Lowden, 2014/11/16
- Re: [Groff] condition: OR of two string comparisons, Tadziu Hoffmann, 2014/11/17
- Re: [Groff] condition: OR of two string comparisons, Carsten Kunze, 2014/11/17
- Re: [Groff] condition: OR of two string comparisons, hohe72, 2014/11/18
- Re: [Groff] condition: OR of two string comparisons, Carsten Kunze, 2014/11/18
- Re: [Groff] condition: OR of two string comparisons, hohe72, 2014/11/18
- Re: [Groff] condition: OR of two string comparisons, Ted Harding, 2014/11/23
- Re: [Groff] condition: OR of two string comparisons, Steffen Nurpmeso, 2014/11/14
- Re: [Groff] condition: OR of two string comparisons, Denis M. Wilson, 2014/11/14
- Re: [Groff] condition: OR of two string comparisons, Steffen Nurpmeso, 2014/11/14
- Re: [Groff] condition: OR of two string comparisons,
Carsten Kunze <=
- Re: [Groff] condition: OR of two string comparisons, Steve Izma, 2014/11/13
- Re: [Groff] condition: OR of two string comparisons, Steffen Nurpmeso, 2014/11/14
- Re: [Groff] condition: OR of two string comparisons, Ralph Corderoy, 2014/11/14
- Re: [Groff] condition: OR of two string comparisons, Carsten Kunze, 2014/11/14
- Re: [Groff] condition: OR of two string comparisons, Ralph Corderoy, 2014/11/14
- Re: [Groff] condition: OR of two string comparisons, Carsten Kunze, 2014/11/14
- Re: [Groff] condition: OR of two string comparisons, Steffen Nurpmeso, 2014/11/14
- Re: [Groff] condition: OR of two string comparisons, Carsten Kunze, 2014/11/14
- Re: [Groff] condition: OR of two string comparisons, Steffen Nurpmeso, 2014/11/14
- Re: [Groff] condition: OR of two string comparisons, Carsten Kunze, 2014/11/14