XLISP >
XLISP 2.0 -
Contents -
Reference -
Previous |
Next
12 Evaluation Functions
- eval - evaluate an XLISP expression
- apply - apply a function to a list of arguments
- funcall - call a function with arguments
- quote - return an expression unevaluated
- function - get the functional interpretation
- backquote - fill in a template
- lambda - make a function closure
- get-lambda-expression - get the lambda expression
- macroexpand - recursively expand macro calls
- macroexpand-1 - expand a macro call
- (eval expr)
- evaluate an XLISP expression
- expr - the expression to be evaluated
returns the result of evaluating the expression
- (apply fun args)
- apply a function to a list of arguments
- fun - the function to apply [or function symbol]
args - the argument list
returns the result of applying the function to the arguments
- (funcall fun arg...)
- call a function with arguments
- fun - the function to call [or function symbol]
arg - arguments to pass to the function
returns the result of calling the function with the arguments
- (quote expr)
- return an expression unevaluated
- expr - the expression to be quoted [quoted]
returns expr unevaluated
- (function expr)
- get the functional interpretation
- expr - the symbol or lambda expression [quoted]
returns - the functional interpretation
- (backquote expr)
- fill in a template
- expr - the template
returns - a copy of the template with comma and comma-at expressions
expanded
- (lambda args
expr...) - make a function closure
- args - formal argument list [lambda list] [quoted]
expr - expressions of the function body
returns - the function closure
- (get-lambda-expression
closure) - get the lambda expression
- closure - the closure
returns - the original lambda expression
- (macroexpand form)
- recursively expand macro calls
- form - the form to expand
returns - the macro expansion
- (macroexpand-1 form)
- expand a macro call
- form - the macro call form
returns - the macro expansion
XLISP >
XLISP 2.0 -
Contents -
Reference -
Previous |
Next