Lecture 10 Notes

18 auxiliary procedures and context arguments there

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: the use of the Kleene star. The Kleene star gives a concise description of the set of S-lists, but it is not so helpful for writing programs. 16    ¥    !! "    ¥   !¢! ¤  ¤ 2 ©§ " ¡    ¤ 2 ¡©§       ! ¡ ¢ ¨¥©¢    §   §¤  £     !¥! ¦ § £ ¥     !¥! ¤ 2 ¡ § 5!  4      ©¨¥ ¤ ¡§ £¡ £ 4 £     !¢   ! ¥   ¥  £    ¡ 4 §  ¡    §¥  ¤ ¡ ©©¨©¢    subst If is non-empty, its car is an S-exp, and its cdr is an S-list. So we recur on the car using , and we recur on the cdr using .  !  ¥    £     !! ¦ § £ ¥ ¥     !¥! ¤ 2 ¡ § 5!  4      ©¨¥ ¤  ¡§ £¡ £ 4   ¡  !¢   ! ¥   ¥  to replace.  !¥¢! 4 ¡ ©§ ¥§ " D£ ¤©© §    ¤ ¤ "¡2  !¢! 5¡ " D£ ¤©© §  ¥ 4 ¤ "¡2 4 D5¡  !! !¥ ¥  ¤  ¡ 4...
View Full Document

This document was uploaded on 03/17/2014 for the course CSG 111 at Northeastern.

Ask a homework question - tutors are online