mes/scaffold/boot
Jan Nieuwenhuizen 9fc27ee25a mes: Single environment lookup for variables, SICP chapter 3.
* src/mes.c (t): Add TVARIABLE.
  (scm_vm_eval_deref): New vm special.
  (make_vref_): New internal function.
  (eval_apply): WIP: replace symbols with their variable reference.
* src/gc.c (gc_loop): Handle TVARIABLE.
* src/lib.c (display_helper): Handle TVARIABLE.
* module/mes/type-0.mes (<cell:variable>): New variable.
  (cell:type-alist): Add it.
  (variable?): New function.
* module/mes/display.mes (display): Handle <variable>.
2017-12-09 08:33:50 +01:00
..
data mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
00-zero.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
01-true.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
02-symbol.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
2a-lambda-lambda.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
2b-define-lambda.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
2c-define-lambda-recurse.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
2d-compose.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
2d-define-lambda-set.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
2e-define-first.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
2f-define-second-lambda.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
2f-define-second.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
2g-vector.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
03-string.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
3a-global-define-lambda-override.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
04-cons.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
04-quote.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
4a-define-macro-define-macro.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
4b-define-macro-define.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
4c-quasiquote.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
4d-let-map.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
4e-let-global.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
4e-string-split.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
05-list.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
06-tick.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
07-if.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
08-if-if.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
10-cons.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
11-list.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
12-car.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
13-cdr.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
14-exit.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
15-display.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
16-if-eq-quote.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
20-define-quote.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
20-define-quoted.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
20-define.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
21-define-procedure.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
22-define-procedure-2.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
23-begin.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
24-begin-define.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
25-begin-define-2.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
26-begin-define-later.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
26-define-define.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
27-lambda-define.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
28-define-define.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
29-lambda-define.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
30-capture.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
31-capture-define.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
32-capture-modify-close.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
33-procedure-override-close.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
34-cdr-override-close.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
35-closure-modify.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
36-closure-override.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
37-closure-lambda.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
38-simple-format.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
39-global-define-override.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
40-define-macro.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
41-when.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
42-if-when.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
43-or.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
44-or-if.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
45-pass-if.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
46-report.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
47-pass-if-eq.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
48-let.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
49-macro-override.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
50-primitive-load.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
51-module.scm mes: Single environment lookup for variables, SICP chapter 3. 2017-12-09 08:33:50 +01:00
52-define-module.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
53-closure-display.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00
60-let-syntax.scm mes: Add incremental test suite. 2018-01-25 06:58:44 +01:00