CREATEABLUNARYEXPR(3)
π
CREATEABLUNARYEXPR(3) β the abl functions era
ok so bestie, this one lives in the ABL FUNCTIONS section of the manual (section 3, the library-call girlies π) and honestly? she's a little icon. let's get into it.
β¨ NAME β¨
createablunaryexpr β say it with me: it creates an unary operator expression. that's the whole vibe. π
π ORIGIN π
ok 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. very "study abroad semester in Paris" of them, we love. πΌβ¨
- Web :
http://asim.lip6.fr/recherche/alliance/ - E-mail :
alliance-users@asim.lip6.fr
like, literally go say hi. they want feedback (more on that at the bottom π).
π¦ SYNOPSIS π¦
#include "abl101.h"
chain_list βcreateablunaryexpr( Oper, Expr )
long Oper;
chain_list βExpr;
yes the β is that funky star character, not your regular *. copy it exactly, bestie, don't fight it. π
πΈ PARAMETERS πΈ
Operβ the unary operator number. like which operator are we wrapping around the thing. that number. π’Exprβ the expression. the little guy we're operating on. π«Ά
π DESCRIPTION π
so createablunaryexpr creates the unary operator expression Operator Expr. iconic. no notes.
also, quick heads-up while we're here: createablbinexpr combines eventualy the operator of Expr with Operator. (that's what the manpage says, that's what you get β I don't make the rules π
)
β οΈ THE BIG ONE, bestie, listen to me: the expression pointer Expr MUSTN'T be used after the call to this function. like, at all. it's giving "consumed", it's giving "she's gone". do not touch her afterwards. ππ
β RETURN VALUE β
createablunaryexpr returns a pointer to the new operator expression. fresh out the oven. new main character. π
π ERRORS π
"ablcreate: bad operator xx !"β this pops off when theOperatormust be defined and must be a unary operator. i.e. if it's not defined, or it's defined but it's not unary? boom. that error. fix your operator. π₯
π§ EXAMPLE π§
ok here's the whole little program-shaped snack, verbatim, slay:
#include "abl101.h"
chain_list βExprA;
chain_list βExprB;
chain_list βExprAorB;
chain_list βExprAnorB;
ExprA = createablatom( "a" );
ExprB = createablatom( "b" );
ExprAorB = createablbinexpr( ABL_OR, ExprA, ExprB );
ExprAnorB = createablunaryexpr( ABL_NOT, ExprAorB );
so a and b get made, a OR b gets made, and then the whole a OR b gets negated with ABL_NOT. it's giving nor gate. it's giving circuits. ate. π
π₯ SEE ALSO π₯
go read these next, i'm obsessed:
abl(1)createablatom(3)createabloper(3)createablnotexpr(3)createablbinexpr(3)createablxorbinexpr(3)addablhexpr(3)addablqexpr(3)
π BUG REPORT π
ok so this tool is under development at the ASIM department of the LIP6 laboratory. and honestly? they need your feedback to improve documentation and tools. so likeβ¦ if something's weird, tell them. it's a group project fr fr. ππ
made with love by ASIM/LIP6 πΈ β and yes, this lil beauty is dated October 1, 1997, which is lowkey vintage-iconic of her, periodt. πβ¨
π¦ 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