MAPABLOPEREXPR(3)
π« MAPABLOPEREXPR(3) π«
okay bestie, gather round β this one lives in the ABL FUNCTIONS manual section and it's literally the "do the thing to every operand" function. no cap. π
π ORIGIN
so this software belongs to the ALLIANCE CAD SYSTEM, developed by the ASIM team at the LIP6 laboratory of UniversitΓ© Pierre et Marie CURIE, in Paris, France. iconic lineage fr. π
- Web :
http://asim.lip6.fr/recherche/alliance/ - E-mail :
alliance-users@asim.lip6.fr
β¨ SYNOPSIS
#include "abl101.h"
chain_list βmapabloperexpr( Function, Oper, Expr )
chain_list β (βFunction)();
long Oper;
chain_list βExpr;
π¦ PARAMETERS
Functionβ the function name you're gonna apply to all the operands. like, the whole personality of this call.Operβ the operator number. yes it's a number, don't come at me.Exprβ the expression you're scanning. the main character, honestly.
π DESCRIPTION
mapabloperexpr applies Function to all operands of Expr. it creates a head of an operator expression having Oper as operator, and then adds the arguments calculated by applying Function to each argument of Expr. π«Ά
lowkey important: Function must return an expression and must have a unique expression as argument. like, that's the vibe check it has to pass. no exceptions. π
πΈ RETURN VALUE
mapabloperexpr returns a new expression by applying Function to all the arguments of the operator expression Expr. fresh out the oven, squeaky clean, brand new. β¨
π EXAMPLE
#include "abl101.h"
chain_list βMapFunction( MapExpr )
chain_list βMapExpr;
{
return( createablnotexpr( dupablexpr( MapExpr ) ) );
}
chain_list βExpr;
chain_list βExpr1;
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 );
and yes, the comment literally says it displays ((not a) and (not b)) β she ate that. π₯
π SEE ALSO
abl(1)β go read it bestie, iykyk
π BUG REPORT
this tool is under development at the ASIM department of the LIP6 laboratory. they literally need your feedback to improve documentation and tools β so if something's giving bug, tell them! not me, them. π
π and that's the whole page, periodt. now go map some operands, bestie.
β xoxo, from ASIM/LIP6, dated October 1, 1997 πβ
π¦ where this page comes from
- nixos 26.05: alliance 5.1.1-unstable-2025-02-24
- nixpkgs unstable: alliance 5.1.1-unstable-2025-02-24
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms