mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
Adding note about the derived syntax definition of quote. It makes
compilation slightly but noticeably slower and is inconvenient, so leaving as a core form for now.
This commit is contained in:
parent
2e63b2be00
commit
83f8cfd69b
1 changed files with 8 additions and 0 deletions
8
eval.c
8
eval.c
|
@ -1811,6 +1811,14 @@ sexp sexp_define_foreign_param (sexp ctx, sexp env, const char *name,
|
|||
|
||||
/*********************** standard environment *************************/
|
||||
|
||||
/* The 10 core forms. Note quote can be defined as derived syntax: */
|
||||
|
||||
/* (define-syntax quote */
|
||||
/* (lambda (expr use-env mac-env) */
|
||||
/* (list */
|
||||
/* (make-syntactic-closure mac-env (list) (syntax-quote syntax-quote)) */
|
||||
/* (strip-syntactic-closures (car (cdr expr)))))) */
|
||||
|
||||
static struct sexp_core_form_struct core_forms[] = {
|
||||
{SEXP_CORE_DEFINE, (sexp)"define"},
|
||||
{SEXP_CORE_SET, (sexp)"set!"},
|
||||
|
|
Loading…
Add table
Reference in a new issue