23.03.2013 Views

Performance and Evaluation of Lisp Systems - Dreamsongs

Performance and Evaluation of Lisp Systems - Dreamsongs

Performance and Evaluation of Lisp Systems - Dreamsongs

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

160<br />

3.9.3 Translation Notes<br />

In INTERLISP, a DATATYPE is created to represent the nodes in the graph.<br />

Here is the INTERLISP code<br />

(RPAQQ TRAVERSECOMS<br />

((RECORDS NODE)<br />

(FNS SNB SEED RANDOM TREMOVE TSELECT TADD CREATE-STRUCTURE<br />

FIND-ROOT TRAVERS TRAVERSE TIMIT)<br />

(BLOCKS<br />

(TRAVERSE<br />

SNB SEED RANDOM TREMOVE TSELECT TADD CREATE-STRUCTURE<br />

FIND-ROOT TRAVERS TRAVERSE TIMIT-10)<br />

(ENTRIES TRAVERSE CREATE-STRUCTURE TIMIT-10))<br />

(VARS (SN 0)<br />

(RAND 21.0)<br />

(COUNT 0)<br />

(MARKER NIL))<br />

(GLOBALVARS RAND SN MARKER ROOT)<br />

(PROP GLOBALVAR ROOT)<br />

(SPECVARS COUNT)))<br />

[DECLARE: EVAL@COMPILE<br />

(DATATYPE NODE ((PARENTS POINTER)<br />

(SONS POINTER)<br />

(SN WORD)<br />

(ENTRY1 FLAG)<br />

(ENTRY2 FLAG)<br />

(ENTRY3 FLAG)<br />

(ENTRY4 FLAG)<br />

(ENTRY5 FLAG)<br />

(ENTRY6 FLAG)<br />

(MARK FLAG))<br />

SN (SNB))<br />

]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!