[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.4.1 Warming up

How to hand in

Following the Submitting instructions, edit the file ‘~/svns/472/1/a/go_bash’ to include the lines

report() {
       for i in $*; do
              echo ""
              echo "=====|  $i |============================"
              cat $i
       done
}

report boot.lisp repl.txt keystrokes.txt log.txt

Then following the following steps to generate the report files.

Finally, run the handin code (described in Submitting).

What to hand in

Report the REPL log (described below) and all the lisp files you created or modified.

Setting up

Follow the initial set up instructions.

Perform the weekly set up instructions for project 1, homework a.

Exercise 1: Learning Emacs

Open Emacs using emacs boot.lisp. You should see two buffers: one with ‘boot.lisp’ and one with the REPL (the interactive read-eval-print loop of LISP).

In the REPL, work out what one plus one equals.

In the file ‘boot.lisp’, add a format statement on the last line saying "COBOL is the bestish language in the whoooole world...NOT":

(format t "COBOL is the bestish language in the whoooole world...NOT")

Save the file (using C-xC-s) then load it from the REPL:

(load "boot.lisp")

Now you should see in the REPL lines that look like this:

; SLIME 2009-09-08
CL-USER> (+ 1 1)
2
CL-USER> (load "boot.lisp")
;tricks.lisp 
LITHP ITH LITHTENING
COBOL is the bestish language in the whoooole world...NOT
T
CL-USER> 

Save the REPL buffer to a file (using C-xC-x) called ‘~/svns/472/1/a/repl.txt’.

Exercise 2: Learning more Emacs

Write down a file ‘~/svns/472/1/a/keystrokes.txt’ that shows what keystrokes in Emacs:

Hint: http://www.columbia.edu/acis/publications/emacs.html.

Exercise 3: Sing a song together

Take the West Virginia fight song and break it up between all group members.

In the directory ‘~/svns/472/1/a’, every member of the group write a file ‘lastname.lisp’ that prints their bit of the entire song. e.g.

(format t "Let's give a rah for West Virginia~%")
(format t "And let us pledge to her anew,~%") 
(format t "Others may be black or crimson,~%") 
(format t "but for us it's Gold and Blue.~%") 

Then, edit ‘boot.lisp’ so that it loads every one’s file.

Finally, make sure the whole song prints:

bash go_lisp

Exercise 4: Learning Subversion

Run this command :

cs ~/svns/472/1/a
svn log > log.txt

Edit that file. Write a comment at the end describing what you see.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated on March 1, 2011 using texi2html 5.0.