diff options
| author | Keith Packard <keithp@keithp.com> | 2017-11-17 23:23:50 -0800 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2017-11-17 23:26:59 -0800 | 
| commit | cf5729a0bae51172f12fc9ec4339d4e975a45fcc (patch) | |
| tree | f67bef57d31f5f202718f7e8dbc6f41ac6b6c346 /src/lisp/ao_lisp_stack.c | |
| parent | e1acf5eb12aceda7aa838df031c1da1129d0fa5d (diff) | |
altos/lisp: Finish first pass through r7rs
* print -> write, patom -> display
* Add read-char, write-char
* Add exit, current-jiffy, current-second, jiffies-per-second
* Add for-each and string-for-each
* Avoid duplicate builtins with different atoms
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lisp/ao_lisp_stack.c')
| -rw-r--r-- | src/lisp/ao_lisp_stack.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/lisp/ao_lisp_stack.c b/src/lisp/ao_lisp_stack.c index 729a63ba..af68b656 100644 --- a/src/lisp/ao_lisp_stack.c +++ b/src/lisp/ao_lisp_stack.c @@ -156,7 +156,7 @@ ao_lisp_stack_clear(void)  }  void -ao_lisp_stack_print(ao_poly poly) +ao_lisp_stack_write(ao_poly poly)  {  	struct ao_lisp_stack *s = ao_lisp_poly_stack(poly); @@ -167,7 +167,7 @@ ao_lisp_stack_print(ao_poly poly)  		}  		s->type |= AO_LISP_STACK_PRINT;  		printf("\t[\n"); -		printf("\t\texpr:   "); ao_lisp_poly_print(s->list); printf("\n"); +		printf("\t\texpr:   "); ao_lisp_poly_write(s->list); printf("\n");  		printf("\t\tstate:  %s\n", ao_lisp_state_names[s->state]);  		ao_lisp_error_poly ("values: ", s->values, s->values_tail);  		ao_lisp_error_poly ("sexprs: ", s->sexprs, AO_LISP_NIL); | 
