Basic constructor macro for expression-call structures.
(make-expression-call [:function <function>] [:types <types>] [:arguments <arguments>])
This is the usual way to construct expression-call structures. It simply conses together a structure with the specified fields.
This macro generates a new expression-call structure from scratch. See also change-expression-call, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-expression-call (&rest args) (std::make-aggregate 'expression-call args '((:function) (:types) (:arguments)) 'make-expression-call nil))
Function:
(defun expression-call (function types arguments) (declare (xargs :guard (and (identifierp function) (type-listp types) (expression-listp arguments)))) (declare (xargs :guard t)) (let ((__function__ 'expression-call)) (declare (ignorable __function__)) (b* ((function (mbe :logic (identifier-fix function) :exec function)) (types (mbe :logic (type-list-fix types) :exec types)) (arguments (mbe :logic (expression-list-fix arguments) :exec arguments))) (cons :call (list function types arguments)))))