3 ms·
> http://khamidou.com/compilers/lisp.py/ http://khamidou.com/compilers/lisp.py/ Lacks an actual description of the grammar/semantics of the implemented languag
by lispm 9y ago
> http://khamidou.com/compilers/lisp.py/ http://khamidou.com/compilers/lisp.py/
Lacks an actual description of the grammar/semantics of the implemented language.
Should this work:
((lambda (foo) (+ foo 3)) 39)
or this
(begin (define foo (lambda (a) (lambda (b) (+ a b)))) (define bar (foo 20)) (print (bar 22)))
> As you can see, it turns out its pretty easy to make your own interpreter
but of what language? If you don't document the language you are trying to implement, we don't know what code should be valid. It's especially easy to implement something if you don't say what you are trying to implement...