- zend_function_entry *(*compile)(struct psi_context *C);
- void (*call)(struct psi_context *C, struct psi_call_frame *frame, struct psi_decl *psi_decl, void *rval, void **args);
- void (*call_va)(struct psi_context *C, struct psi_call_frame *frame, struct psi_decl *psi_decl, void *rval, void **args, size_t va_count, void **va_types);
- void *(*query)(struct psi_context *C, enum psi_context_query q, void *arg);
+ /* compiler */
+ bool (*composite_init)(struct psi_context *C, struct psi_decl_arg *darg);
+ void (*composite_dtor)(struct psi_context *C, struct psi_decl_arg *darg);
+ bool (*extvar_init)(struct psi_context *C, struct psi_decl_extvar *evar);
+ void (*extvar_dtor)(struct psi_context *C, struct psi_decl_extvar *evar);
+ bool (*decl_init)(struct psi_context *C, struct psi_decl *decl);
+ void (*decl_dtor)(struct psi_context *C, struct psi_decl *decl);
+ bool (*impl_init)(struct psi_context *C, struct psi_impl *impl, zif_handler *zh);
+ void (*impl_dtor)(struct psi_context *C, struct psi_impl *impl);
+ bool (*cb_init)(struct psi_context *C, struct psi_let_exp *cb, struct psi_impl *impl);
+ void (*cb_dtor)(struct psi_context *C, struct psi_let_exp *cb, struct psi_impl *impl);
+ /* calls */
+ void (*call)(struct psi_call_frame *frame);
+ void (*call_va)(struct psi_call_frame *frame);
+ /* types */
+ void *(*typeof_impl)(struct psi_context *C, token_t impl_type);
+ void *(*typeof_decl)(struct psi_context *C, token_t decl_type);
+ void *(*copyof_type)(struct psi_context *C, void *orig_type);
+ void (*layoutof_type)(struct psi_context *C, void *orig_type, struct psi_layout *l);