GNU.WIKI: The GNU/Linux Knowledge Base

  [HOME] [PHP Manual] [HowTo] [ABS] [MAN1] [MAN2] [MAN3] [MAN4] [MAN5] [MAN6] [MAN7] [MAN8] [MAN9]

  [0-9] [Aa] [Bb] [Cc] [Dd] [Ee] [Ff] [Gg] [Hh] [Ii] [Jj] [Kk] [Ll] [Mm] [Nn] [Oo] [Pp] [Qq] [Rr] [Ss] [Tt] [Uu] [Vv] [Ww] [Xx] [Yy] [Zz]


NAME

       mapabloperexpr - applies a function to all operands.

SYNOPSYS

       #include "abl101.h"
         long       Oper;

PARAMETERS

       Function            Function name to apply to all operands.

       Oper                Operator number.

       Expr                Expression to scan.

DESCRIPTION

       mapabloperexpr   applies  Function  to  all  operands  of  Expr.
       mapabloperexpr creates a head of an operator  expression  having
       Oper  as  operator and adds the arguments calculated by applying
       Function to each arguments of Expr.   Function  must  return  an
       expression and must have a unique expression as argument.

RETURN VALUE

       mapabloperexpr  returns a new expression by applying Function to
       all the arguments of the operator expression Expr.

EXAMPLE

       #include "abl101.h"
          {
            return( createablnotexpr( dupablexpr( MapExpr ) ) );
          }
          Expr = createablbinexpr( ABL_NOR,
                                   createablatom( "a" ),
                                   createablatom( "b" ) );
          Expr1 = mapabloperexpr( MapFunction, ABL_AND, Expr );
          /* displays ((not a) and (not b))  */
          viewablexpr( Expr1, ABL_VIEW_VHDL );

SEE ALSO

       abl(1)



  All copyrights belong to their respective owners. Other content (c) 2014-2018, GNU.WIKI. Please report site errors to webmaster@gnu.wiki.
Page load time: 0.092 seconds. Last modified: November 04 2018 12:49:43.