SUBSTABLEXPR(3)

๐Ÿ“ฆ version 5.1.1-unstable-2025-02, in nixos 26.05, nixpkgs unstable

okay so bestie, welcome to SUBSTABLEXPR(3) from the ABL FUNCTIONS corner of the universe โ€” itโ€™s literally giving โ€œswap an atom for an expressionโ€ energy. Letโ€™s go. ๐Ÿ’…โœจ


๐ŸŽ€ NAME ๐ŸŽ€

substablexpr โ€” substitutes a given atom by an expression. Thatโ€™s the assignment, and it ate. ๐Ÿ’–

๐ŸŒˆ ORIGIN ๐ŸŒˆ

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. ๐ŸŒธ

Web : http://asim.lip6.fr/recherche/alliance/

E-mail : alliance-users@asim.lip6.fr

โœจ SYNOPSIS โœจ

       #include "abl101.h"
       chain_list โˆ—substablexpr( Expr1, Name, Expr2 )
         chain_list โˆ—Expr1;
         char       โˆ—Name;
         chain_list โˆ—Expr2;

๐Ÿซถ PARAMETERS ๐Ÿซถ

  • Expr1 โ€” first expression.
  • Name โ€” atom name.
  • Expr โ€” second expression. (This section literally calls it Expr, bestie; the synopsis is out here saying Expr2 ๐Ÿ˜ญ.)

๐Ÿ’œ DESCRIPTION ๐Ÿ’œ

substablexpr substitutes Atom in Expr1 by Expr2 โ€” like a glow-up but for an expression. โœจ

โš ๏ธ The expression pointer Expr1 MUSTNโ€™T be used after the call to this function. Not even a little. Donโ€™t do it, fr fr. ๐Ÿ™ˆ

๐Ÿ‘‘ RETURN VALUE ๐Ÿ‘‘

substablexpr returns the modified expression. Thatโ€™s your new main-character expression. โœจ

๐Ÿ“ EXAMPLE ๐Ÿ“

Hereโ€™s the pageโ€™s example, copied exactly so nothing gets lost:

       #include "abl101.h"
         chain_list โˆ—Expr1;
         chain_list โˆ—Expr2;
         Expr1 = createablbinexpr( ABL_OR,
                                   createablatom( "a" ),
                                   createablatom( "b" ) );
         Expr2 = createablbinexpr( ABL_AND,
                                   createablatom( "c" ),
                                   createablatom( "d" ) );
         Expr1 = substablexpr( Expr1, "a", Expr2 );
         /* displays ((c and d) or b) */
         viewablexpr( Expr1, ABL_VIEW_VHDL );

๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹

Go say hi to abl(1), substdupablexpr(3). ๐Ÿ‘€

๐Ÿ’€ 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, tell them if somethingโ€™s off, bestie. ๐Ÿซถ


xoxo, ASIM/LIP6 ๐Ÿ’– โ€” this page is dated October 1, 1997, and you just got the SUBSTABLEXPR(3) tour. ๐ŸŽ€

๐Ÿ“ฆ where this page comes from