generated from seanpm2001/Git-Template_V8
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
944f2e1
commit 230a06e
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
; MDL sample source code corpus 2024.01.21 | ||
<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>> |