Very close to a basic REPL now.
This commit is contained in:
parent
83537391a6
commit
4efe9eab87
23 changed files with 188 additions and 84 deletions
|
|
@ -87,8 +87,10 @@ struct pso_pointer eval(
|
|||
( c_string_to_lisp_string
|
||||
( L"Can't yet evaluate things of this type: " ),
|
||||
result ), frame_pointer,
|
||||
c_cons( c_cons( c_string_to_lisp_keyword(L"tag"),
|
||||
get_tag_string(result)), nil), nil );
|
||||
c_cons( c_cons
|
||||
( c_string_to_lisp_keyword( L"tag" ),
|
||||
get_tag_string( result ) ), nil ),
|
||||
nil );
|
||||
}
|
||||
|
||||
if ( exceptionp( result ) ) {
|
||||
|
|
@ -98,8 +100,8 @@ struct pso_pointer eval(
|
|||
|
||||
if ( nilp( x->payload.exception.stack ) ) {
|
||||
result =
|
||||
make_exception( x->payload.exception.message, frame_pointer, nil,
|
||||
result );
|
||||
make_exception( x->payload.exception.message, frame_pointer,
|
||||
nil, result );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -65,8 +65,8 @@ struct pso_pointer c_reverse( struct pso_pointer sequence ) {
|
|||
default:
|
||||
result =
|
||||
make_exception( c_cons( c_string_to_lisp_string
|
||||
( L"Invalid object in sequence" ), cursor), nil,
|
||||
nil , nil);
|
||||
( L"Invalid object in sequence" ),
|
||||
cursor ), nil, nil, nil );
|
||||
goto exit;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -182,5 +182,3 @@ struct pso_pointer c_string_to_lisp_keyword( wchar_t *symbol ) {
|
|||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue