Type Alias: ExpressionDto
@kortexya/reasoninglayer / Functions / ExpressionDto
Type Alias: ExpressionDto
ExpressionDto = {
name:string;type:"Variable"; } | {type:"Literal";value:FunctionValueDto; } | {left:ExpressionDto;op:BinaryOperatorDto;right:ExpressionDto;type:"BinaryOp"; } | {arguments:ExpressionDto[];functionName:string;type:"FunctionCall"; }
Defined in: src/types/functions.ts:28
Arithmetic/logical expression used in function bodies and guards.
Remarks
A recursive tagged union. BinaryOp contains nested ExpressionDto children.
FunctionCall allows calling other user-defined functions within an expression.