createablunaryexpr3
Creates an unary operator expression.
Synopsys
#include "abl101.h" chain_list ∗createablunaryexpr( Oper, Expr ) long Oper; chain_list ∗Expr;
Parameters
Oper
|
The unary operator number. |
|---|---|
Expr
|
Expression. |
Overview
createablunaryexpr creates the unary operator expression Operator Expr. createablbinexpr combines eventualy the operator of Expr with Operator. The expression pointer Expr MUSTN'T be used after the call to this function.
Return value
createablunaryexpr returns a pointer to the new operator expression.
Errors
"ablcreate: bad operator xx !",
Operator must be defined and must be a unary operator.
Examples
#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 );
Releases
4 releases since Debian 7 (Wheezy); the text changed 1 time.