Operation
Generates the Scilab pseudo-code representing an operation
Syntax
op = Operation(operator, operands, out)
Arguments
- op
- Tlist of type "operation", with fields
operator
,operands
, andout
. - operator
- operator symbol (character string). Supported codes are:
"''", ".''", "~", ":", "+", "-", "*", ".*", ".*.", ".^", "/", "./", "\", "==", "<>", "<", "<=", ">", ">=", "|", "||", "&", "&&", "cc"
(Columns horizontal Concatenation [,]),"rc"
(Rows vertical concatenation [;]),"ccc"
(Cells horizontal concatenation {,}),"crc"
(Cells vertical concatenation {;}),"ins"
(insertion),"ext"
(extraction). - operands
- List of Tlists representing operands, of type "cste" (ex: 1.23), "variable" (ex: A), "funcall" (ex: gcf()), or "operation" (ex: (1+3)).
- out
- List of TLists representing the operation result(s) (most often unique). Each result is represented as a M2SCI tlist. Default value: list().
Description
This function creates a tlist
representing an operation when using
M2SCI. All input parameters values are verified to be compatible with "M2SCI tlists".
See also
- Funcall — Create the converted pseudo-code representing a function call
- Variable — Generates the Scilab internal code representing a variable (without its content)
- Cste — Create a tree representing a constant
- Infer — Create a tree containing inference data
- Contents — Create a tree containing contents inference data
- Type — Create a tree containing type inference data
- Equal — Generates the Scilab internal code representing an instruction "LHS = RHS"
History
Versão | Descrição |
6.1.1 | out is now optional: default = list(). |
Report an issue | ||
<< Infer | internals | Type >> |