No Clock  1.0.2

Set properties of expressions. More...

Functions

void expression_set_boolean (expression *e, bool boolean)
 Set the boolean value of a boolean expression. More...
 
void expression_set_identifier (expression *e, const char *identifier)
 Set the identifier of an identifier expression. More...
 
void expression_set_left_operand (expression *e, expression *left)
 Set the left operand of a binary expression. More...
 
void expression_set_number (expression *e, long int number)
 Set the value of a number expression. More...
 
void expression_set_right_operand (expression *e, expression *right)
 Set the right operand of a binary expression. More...
 
void expression_set_type (expression *e, expression_type t)
 Set the type of an expression. More...
 

Detailed Description

Set properties of expressions.

Since
version 1.0.0

These functions allow the user to set the properties of an expression. Please set coherent properties. If you are not confident a given set of properties would be coherent, please fallback to the functions from Constructors / Destructors and Operations. The functions from these modules automatically set the appropriate properties.

Function Documentation

void expression_set_boolean ( expression *  e,
bool  boolean 
)
related

Set the boolean value of a boolean expression.

Since
version 1.0.0
Parameters
eTarget expression.
booleanBoolean value.
void expression_set_identifier ( expression *  e,
const char *  identifier 
)
related

Set the identifier of an identifier expression.

Since
version 1.0.0
Parameters
eTarget expression.
identifierIdentifier.
void expression_set_left_operand ( expression *  e,
expression *  left 
)
related

Set the left operand of a binary expression.

Since
version 1.0.0
Parameters
eTarget expression.
leftLeft operand.
void expression_set_number ( expression *  e,
long int  number 
)
related

Set the value of a number expression.

Since
version 1.0.0
Parameters
eTarget expression.
numbervalue.
void expression_set_right_operand ( expression *  e,
expression *  right 
)
related

Set the right operand of a binary expression.

Since
version 1.0.0
Parameters
eTarget expression.
rightRight operand.
void expression_set_type ( expression *  e,
expression_type  t 
)
related

Set the type of an expression.

Since
version 1.0.0
Parameters
eTarget expression.
tExpression type.