The Inform Compiler - by Graham Nelson.
http://www.inform-fiction.org/inform6.html
From the Designer Manual
Inform is a system for create adventure games... It translates an author's textual description into a simulated world which can be explored by readers using almost any computer, with the aid of an 'interpreter' program. From the website
Inform is a design system for interactive fiction, a new medium for writers which began with adventure games in the late 1970s and is now used for everything from literary narrative fiction through to plotless conceptual art, and plenty more adventure games too. Since its introduction in 1993, Inform has become a standard tool.
The flip-side to "pretty" code is good documentation. There are too few programmers out there who can both write elegant code and explain what it does just as elegantly. I have his "The Inform Designer's Manual, Fourth Edition" sitting on my shelf right now, and I can honestly say that it is the only manual that I have had the pleasure of describing as a "page turner".
The code itself is equally impressive. Satiated with (helpful) comments, compiles on virtually any platform, easy to read, follow, and modify as you see fit. There's also a separate "Technical Manual" for those who are interested in modifying the original code.
Let's see... Let's not forget nethack. They thought of everything.:)
http://www.nethack.org/
And then there are always those little tidbits of code like this inverse sqrt function that fall into the it just works category. Code that mere mortals such as myself can hardly comprehend - let alone write!
http://www.math.purdue.edu/~clomont/Math/Papers/20 03/InvSqrt.pdf
The flip-side to "pretty" code is good documentation. There are too few programmers out there who can both write elegant code and explain what it does just as elegantly. I have his "The Inform Designer's Manual, Fourth Edition" sitting on my shelf right now, and I can honestly say that it is the only manual that I have had the pleasure of describing as a "page turner".
The code itself is equally impressive. Satiated with (helpful) comments, compiles on virtually any platform, easy to read, follow, and modify as you see fit. There's also a separate "Technical Manual" for those who are interested in modifying the original code.
Let's see... Let's not forget nethack. They thought of everything. :)
http://www.nethack.org/
And then there are always those little tidbits of code like this inverse sqrt function that fall into the it just works category. Code that mere mortals such as myself can hardly comprehend - let alone write! http://www.math.purdue.edu/~clomont/Math/Papers/20 03/InvSqrt.pdf