Interpreter working!
This commit is contained in:
parent
7189c0172c
commit
676b231743
7 changed files with 108 additions and 91 deletions
|
|
@ -74,8 +74,6 @@ int main( int argc, char *argv[] ) {
|
|||
*/
|
||||
deep_bind( c_string_to_lisp_symbol( "nil" ), NIL );
|
||||
deep_bind( c_string_to_lisp_symbol( "t" ), TRUE );
|
||||
/* lambda is even more privileged than a special form */
|
||||
deep_bind( c_string_to_lisp_symbol( "lambda" ), LAMBDA );
|
||||
|
||||
/*
|
||||
* primitive function operations
|
||||
|
|
@ -106,6 +104,7 @@ int main( int argc, char *argv[] ) {
|
|||
* primitive special forms
|
||||
*/
|
||||
bind_special( "cond", &lisp_cond );
|
||||
bind_special( "lambda", &lisp_lambda );
|
||||
bind_special( "quote", &lisp_quote );
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue