开发者

Extending the Charme Interpreter by Defining Null and Null?

开发者 https://www.devze.com 2023-02-21 09:51 出处:网络
I need to help extending the Charme interpreter and de开发者_高级运维fining the null and null? primitives that behave similarly to the primitive Scheme procedures. I know I can use Python\'s None valu

I need to help extending the Charme interpreter and de开发者_高级运维fining the null and null? primitives that behave similarly to the primitive Scheme procedures. I know I can use Python's None value to represent null.


This seems to be a homework question: http://www.cs.virginia.edu/~evans/cs1120-f09/ps/ps7/

A few pointers:

  • How is the empty list (aka null) represented as a Python value?

  • Which function is used to extend the environment?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号