Skip to Content.
Sympa Menu

texmacs-users - Patch: Re: <postcript> and arithmetic logical and conditional markup

Subject: mailing-list for TeXmacs Users

List archive

Patch: Re: <postcript> and arithmetic logical and conditional markup


Chronological Thread 
  • From: David Allouche <address@hidden>
  • To: address@hidden
  • Subject: Patch: Re: <postcript> and arithmetic logical and conditional markup
  • Date: Mon, 24 Dec 2001 15:15:28 +0100

On Monday 24 December 2001 01:05, you wrote:
> Now, <postscript> evaluates its parameters. Lengths can be multiplied by a
> number with <*> and divided by a number or another length with </>.
> Comparison operators <equal>, <unequal> behave correctly when they are
> given lengths. <less>, <less-or-equal>, <greater>, <greater-or-equal>
> support lengths. <or>, <and>, <if>, <case> and <while> are more strict on
> acceptable boolean values, now they only accepted "true" and "false". <not>
> is no longer broken. <range|...|0|-1> behave correctly. And all these
> elements do complete and consistent checking on input validity.

Here is a little complement to the previous patch.

With this patch you can put any number > 2 of parameters to <and> and <or>
elements. It works only with the new implementation of the logical markup
included in the previous patch.

That is going to be the last patch from me for a while.
*** TeXmacs-0.3.5.11-src/src/Basic/Data/tree.gen.cc
--- TeXmacs-0.3.5.11-src/src/Basic/Data/tree.gen.cc
***************
*** 293,301 ****
    constructor (HOLD, "hold", 1, DYNAMIC);
    constructor (RELEASE, "release", 1, DYNAMIC);
  
!   constructor (OR, "or", 2);
    constructor (XOR, "xor", 2);
!   constructor (AND, "and", 2);
    constructor (NOT, "not", 1);
    constructor (PLUS, "plus", 2);
    constructor (MINUS, "minus", 2);
--- 293,301 ----
    constructor (HOLD, "hold", 1, DYNAMIC);
    constructor (RELEASE, "release", 1, DYNAMIC);
  
!   constructor (OR, "or", -1, DYNAMIC);
    constructor (XOR, "xor", 2);
!   constructor (AND, "and", -1, DYNAMIC);
    constructor (NOT, "not", 1);
    constructor (PLUS, "plus", 2);
    constructor (MINUS, "minus", 2);


  • Patch: Re: <postcript> and arithmetic logical and conditional markup, David Allouche, 12/24/2001

Archive powered by MHonArc 2.6.19.

Top of Page