• Nie Znaleziono Wyników

Project 1: straight line program interpreter Summary:

N/A
N/A
Protected

Academic year: 2021

Share "Project 1: straight line program interpreter Summary:"

Copied!
1
0
0

Pełen tekst

(1)

Project 1: straight line program interpreter Summary:

Download the file

www.math.us.edu.pl/˜pgladki/teaching/2016-2017/tk lab1.zip

and modify the files maxarg.sml and interp.sml as described in Program 1 (pages 10-12) in the textbook Andrew W. Appel, Modern Compiler Implementation in ML, Cambridge University Press, 1998:

http://www.cs.princeton.edu/˜appel/modern/ml/

Details:

(1) Read Chapter 1 from the textbook Andrew W. Appel, Modern Compiler Implementation in ML, Cambridge University Press, 1998, in particular pages 7-12.

(2) Download the files from the archive

www.math.us.edu.pl/˜pgladki/teaching/2016-2017/tk lab1.zip and read them. Pay special attention to structures.

(3) Install Standard ML of New Jersey on your computer. In general, we shall be using version 110.67:

http://smlnj.org/dist/working/110.67/index.html (4) Start SML-a in the same directory where you unpacked the archive tk lab1.zip.

(5) Type CM.make ”sources.cm”; This should load and compile all sources. Then, type Test.maxarg();

This should run the functionmaxarg on the test program; since at this point you haven’t made any changes in your program, it should raise an exception.

(6) Edit maxarg.sml until it works properly. In the same SML session type CM.make ”sour- ces.cm”; Note all the messages and fix any problems to appear. You may remain in the same SML session while debugging: just type CM.make ”sources.cm”; again when you feel you corrected your program. This should save you some time.

(7) Test your program with Test.maxarg(); (still in the same session).

(8) If you still encounter some problems, keep debugging, compiling and re-running till it works.

(9) Next, do the same for interp.sml with the function Test.interp();

(10) Once you’re done writing the code, you will send me the modified files via email. We will talk about your program during our next meeting on Monday, November 7th, 2016.

1

Cytaty

Powiązane dokumenty

The difficulty in defining the concept of management indicators was lied in the deployment of project managed by project methods, and, on the other hand, as budget- ing

De landhoofdkonstruktie wordt gevormd door in de natte op een laag gelegen fundatiebed betonelementen met ringvormige door- snede te p l aatsen. Per landhoofd worden 7

W części drugiej zaprezentowano faksymile (fotoreprodukcje) tekstu łacińskiego z oryginalnego wydania pt. Są to trzy mowy Birkowskiego po łacinie: 1) Hyacinthinaprima,

Ale pośpiech ten nie był znów dowodem ja k ie jś szczególnej gorliw ości p rałató w i ka­ noników w łocław skich, lecz został podyktow any obaw ą przed

Pozycja prawna uprawnionego i zobowiązanego, których nazywa się niekiedy wierzycielem i dłużnikiem alimentacyjnym przypomina pod wieloma względami pozycję podmiotów (stron)

Książka o powyższym, niezupełnie dla mnie jasnym tytule ukazała się w serii „Biblioteka Myśli Socjologicznej”, lecz — niezależnie od jej znaczenia dla czytelników

Failure Mode and Effects Analysis (FMEA) was found to be useful in discriminating between the remaining solutions to give the arrangement which would have the best reliability

Omówienie części rezultatów ankiety prze­ prowadzonej wśród studentów wyższych szkół war­