diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2017-11-13 01:45:18 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2017-11-13 01:45:21 -0500 |
| commit | 6ee8b48ce8f2189c23f8bf64bcf93e2210e67d26 (patch) | |
| tree | ca5f90322a000a56d267130bdfd23f0b873ee2f4 /primer.py | |
| parent | 5cc96a0fb06fa7d86563f4cb64e5fa9d4f6a09f9 (diff) | |
A basic expander.
This doesn't support macro expansion, but does support some basic syntax
niceties. Macro expansion requires quote and quasiquote support.
Diffstat (limited to 'primer.py')
| -rw-r--r-- | primer.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -9,10 +9,10 @@ program = session.read(""" 1 1.0 "Hello" - (define a - (lambda (b) (values 1 2.2 "three" a b))) - (define pp - (lambda () (pp))) + (define (a b) + (values 1 2.2 "three" a b)) + (define (pp) (pp)) + (print (a "foo")) (print (eval (list (symbol "a") "bar"))) (print 0 (values 1 2 3) 4 5) |
