FLATABLEXPR(3)

πŸ“¦ version 5.1.1-unstable-2025-02, in nixos 26.05, nixpkgs unstable

πŸ’– FLATABLEXPR(3) Β· ABL FUNCTIONS πŸ’–

okay bestie, welcome to flatablexpr(3) β€” the ABL functions page that’s about to make operator-merging make sense. no cap, it’s a tiny one, and we’re gonna keep every detail intact πŸ’…βœ¨


✨ NAME ✨

flatablexpr β€” merges the operators of an expression 🫢


🌍 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 πŸ₯πŸ’–


🧾 SYNOPSIS 🧾

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

πŸŽ€ PARAMETERS πŸŽ€

  • Expr β€” the expression to flat, bestie. its type is chain_list βˆ—Expr πŸ¦‹

πŸ’… DESCRIPTION πŸ’…

flatablexpr merges all the common operators in Expr. that’s the whole vibe β€” it goes through the expression and combines those shared operators πŸ”₯


πŸ” RETURN VALUE πŸ”

flatablexpr returns nothing. literally nothing, babe β€” no return value to catch, no little gift back 😌


🌈 EXAMPLE 🌈

#include "abl101.h"
  chain_list βˆ—Expr1;
  chain_list βˆ—Expr2;
  Expr1 = createbinexpr( ABL_OR,
                         createablatom( "a" ),
                         createablatom( "b" ) );
  Expr2 = createabloper( ABL_OR );
  addablhexpr( Expr2, createablatom( "c" ) );
  addablhexpr( Expr2, Expr1 );
  Expr1 = dupablexpr( Expr2 );
  flatablexpr( Expr1 );
  /* displays ((a or b) or c) (a or b or c) */
  viewablexpr( Expr2, ABL_VIEW_VHDL );
  viewablexpr( Expr1, ABL_VIEW_VHDL );

πŸ‘€ SEE ALSO πŸ‘€

go peek at abl(1) and unflatablexpr(3) too, iykyk πŸ‘‘πŸ’œ


πŸ› BUG REPORT πŸ›

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

We need your feedback to improve documentation and tools. fr fr, your feedback matters πŸ’–πŸ«Ά


xoxo, ASIM/LIP6 πŸ’‹ October 1, 1997 πŸŽ€ β€” that’s flatablexpr(3), bestie, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from