SUBSTABLEXPR(3)
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 itExpr, bestie; the synopsis is out here sayingExpr2๐ญ.)
๐ 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
- 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