DUPABLEXPR(3)

πŸ“¦ version 5.1.1, in fedora 43, fedora 44

πŸ’– DUPABLEXPR πŸ’– (section 3, ABL FUNCTIONS)

okay bestie, sit down, hydrate, and let me tell you about dupablexpr β€” the little ABL function whose entire personality is "copy that for me pls" ✨


🌸 NAME 🌸

dupablexpr β€” duplicates an expression. that's it. that's the whole job. and she does it flawlessly. πŸ’…


🧚 ORIGIN 🧚

so this software belongs to the ALLIANCE CAD SYSTEM, which was developed by the ASIM team at the LIP6 laboratory of UniversitΓ© Pierre et Marie CURIE, in Paris, France. πŸ‡«πŸ‡· iconic honestly.


✨ SYNOPSIS ✨

#include "abl101.h"
chain_list βˆ—dupablexpr( Expr )
  chain_list βˆ—Expr;

πŸŽ€ PARAMETERS πŸŽ€

  • Expr β€” the expression you want to duplicate. the main character we're cloning, no cap. πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

dupablexpr duplicates the expression Expr. you hand her an expression, she hands you back a whole new one that's a copy. the way that she just does it, no drama, no notes. 🫢


🌈 RETURN VALUE 🌈

dupablexpr returns the duplicated expression. so like, the copy. the twin. the sequel. the remix. πŸ“


πŸ”₯ EXAMPLE πŸ”₯

here's the vibe in action, fr fr:

#include "abl101.h"
  chain_list βˆ—ExprAorB;
  chain_list βˆ—ExprAnorB;
  ExprAorB = createabloper( ABL_OR );
  addablhexpr( ExprAorB, createablatom( "a" ) );
  addablhexpr( ExprAorB, createablatom( "b" ) );
  ExprAnorB = createablnotexpr( dupablexpr( ExprAorB ) );
  /* displays (a or b) (a nor b) */
  viewablexpr( ExprAorB, ABL_VIEW_VHDL );
  viewablexpr( ExprAnorB, ABL_VIEW_VHDL );

see how she duplicated ExprAorB before slapping a not on it? that's the whole point bestie β€” you don't wreck the original, you make a copy first. chef's kiss πŸ‘¨πŸ³πŸ’‹


πŸ‘€ SEE ALSO πŸ‘€

abl(1), delablexpr(3), freeablexpr(3).

go read those too, they're giving supporting cast energy. πŸ’œ


πŸ’€ BUG REPORT πŸ’€

this tool is under development at the ASIM department of the LIP6 laboratory.

we need your feedback to improve documentation and tools. so like, pls tell them if something's busted πŸ™ˆ


reminder bestie: she copies, she doesn't fix. don't come for her about your expression's problems. πŸ’…

and that's the whole page! brought to you by ASIM/LIP6, dated October 1, 1997 β€” yes, she's vintage, she's a classic, she's literally older than most of us and still slaying. periodt. β­πŸ’–