Content deleted Content added
CRGreathouse (talk | contribs) m rm nested cat |
Kpschoedel (talk | contribs) Added code sample |
||
Line 9:
But the largest influence that MDL had was on the genre known as [[interactive fiction]]. An interactive fiction game known as [[Zork]], sometimes called Dungeon, was first written in MDL. Later, Reeve, Daniels, Galley and other members of Dynamic Modeling went on to start [[Infocom]], a company that produced many early commercial works of interactive fiction.
=== Code sample<ref>http://pdp-11.ru/simh_trailing-edge_com/software.html</ref> ===
<DEFINE EXIT-TO (EXITS RMS)
#DECL ((EXITS) EXIT (RMS) <UVECTOR [REST ROOM]>)
<MAPF <>
<FUNCTION (E)
#DECL ((E) <OR DIRECTION ROOM CEXIT NEXIT DOOR>)
<COND (<TYPE? .E DIRECTION>)
(<AND <TYPE? .E ROOM> <MEMQ .E .RMS>>
<MAPLEAVE T>)
(<AND <TYPE? .E CEXIT> <MEMQ <2 .E> .RMS>>
<MAPLEAVE T>)
(<AND <TYPE? .E DOOR>
<OR <MEMQ <DROOM1 .E> .RMS>
<MEMQ <DROOM2 .E> .RMS>>>
<MAPLEAVE T>)>>
.EXITS>>
[[Category:Dynamically-typed programming languages]]
|