![]() |
![]() |
|
home—lectures—exams—hws—breeze (snow day)
The video+slide presentation below is nice. However, probably a more technically useful bit would be reading “Creating Languages in Racket”, ACM Queue, 2011.Nov.
For 10 hw points:
Watch the following presentation
Racket,
50min (approx).
(Try to watch on a large monitor, so you can see
the slides at the same time as watching the video feed.
Be sure not to full-screen the video feed,
else you won't see the slides at all;
slides+audio is more helpful than the video.)
Note:Full source code for the evolving versions is linked from “Creating Languages in Racket”,$Aj ACM Queue, 2011.Nov.
For 15pts of extra-credit,
related to the last question above:
For each of versions v0, v1, and v5 of the text-adventure game:
Note:Full source code for the evolving versions is linked from “Creating Languages in Racket”, ACM Queue, 2011.Nov.add the following features to the game:
For significant extra credit (but commensurate difficulty!):
introduce a new concept to the game (something besides a place, item, or verb),
and then add support for that concept to v2/v3, v4, and v6.
For example, perhaps there are colors;
each place and item has one color, and the explorer has a set of colors.
The explorer can only enter places whose color is one they have,
and grabbing/dropping items causes the explorer to gain/lose those colors.
You would add such support to the macros in v2, the type-checking in v4,
the syntax-colorer in v6, etc.
1 The important difference is unquote: In php, when your file is in php-mode, you can't un-escape back into text mode (which is still nested inside the php mode which is itself nested inside the outermost text mode). ↩
home—lectures—exams—hws—breeze (snow day)
©2012, Ian Barland, Radford University Last modified 2012.Nov.20 (Tue) |
Please mail any suggestions (incl. typos, broken links) to ibarland ![]() |
![]() |