Gendoc.e

User:Kevin Reid found this code generating an unlinked document on his web site. He doesn't remember where he was going with it. What it does is produce a list of every noun in the privilegedScope, and report whether it is also part of the safeScope.

It was probably part of some larger project to autogenerate documentation for the E environment/standard library.

var out := &lt;file:std-scope.html&gt;.textWriter var grouped := [].asMap out.print(` &lt;html&gt;&lt;head&gt;&lt;title&gt;scope&lt;/title&gt; &lt;/head&gt;&lt;body&gt; &lt;dl&gt; `) for `&amp;@name` =&gt; slot in privilegedScope { def group if (name.endsWith(&quot;__uriGetter&quot;)) { bind group := &quot;uriGetters&quot; } else { bind group := &quot;other&quot; }  grouped with= ... out.print(`    &lt;dt&gt;$name&lt;/dt&gt;&lt;dd&gt;       &lt;p&gt;&lt;strong&gt;${if (safeScope.maps(name)) {&quot;Safe&quot;} else {&quot;Unsafe&quot;}}&lt;/strong&gt;&lt;/p&gt;     &lt;/dd&gt;   `) } out.print(` &lt;/dl&gt; &lt;/body&gt;&lt;/html&gt; `) out.close makeCommand(&quot;/usr/bin/open&quot;)(&quot;std-scope.html&quot;)
 * 1) !/usr/bin/env rune

Its output when it was run in January 2004 was:


 * null
 * Safe


 * false
 * Safe


 * true
 * Safe


 * throw
 * Safe


 * __loop
 * Safe


 * __makeList
 * Safe


 * __makeMap
 * Safe


 * __makeProtocolDesc
 * Safe


 * __makeMessageDesc
 * Safe


 * __makeParamDesc
 * Safe


 * any
 * Safe


 * void
 * Safe


 * boolean
 * Safe


 * __makeOrderedSpace
 * Safe


 * ValueGuard
 * Safe


 * __MatchContext
 * Safe


 * NaN
 * Safe


 * Infinity
 * Safe


 * __identityFunc
 * Safe


 * __makeInt
 * Safe


 * __makeFinalSlot
 * Safe


 * __makeVarSlot
 * Safe


 * __makeGuardedSlot
 * Safe


 * __templateGuard
 * Safe


 * __makeTwine
 * Safe


 * __makeSourceSpan
 * Safe


 * __auditedBy
 * Safe


 * Guard
 * Safe


 * near
 * Safe


 * pbc
 * Safe


 * PassByCopy
 * Safe


 * DeepPassByCopy
 * Safe


 * PersistentAuditor
 * Safe


 * DeepFrozen
 * Safe


 * int
 * Safe


 * float64
 * Safe


 * char
 * Safe


 * String
 * Safe


 * Twine
 * Safe


 * TextWriter
 * Safe


 * require
 * Safe


 * List
 * Safe


 * Map
 * Safe


 * nullOk
 * Safe


 * Tuple
 * Safe


 * __Portrayal
 * Safe


 * notNull
 * Safe


 * vow
 * Safe


 * rcvr
 * Safe


 * SturdyRef
 * Safe


 * simple__quasiParser
 * Safe


 * twine__quasiParser
 * Safe


 * rx__quasiParser
 * Safe


 * e__quasiParser
 * Safe


 * epatt__quasiParser
 * Safe


 * sml__quasiParser
 * Safe


 * term__quasiParser
 * Safe


 * __equalizer
 * Safe


 * __comparer
 * Safe


 * Ref
 * Safe


 * E
 * Safe


 * promiseAllFulfilled
 * Safe


 * EIO
 * Safe


 * help
 * Safe


 * safeScope
 * Safe


 * __eval
 * Safe


 * resource__uriGetter
 * Safe


 * type__uriGetter
 * Safe


 * import__uriGetter
 * Safe


 * elib__uriGetter
 * Safe


 * elang__uriGetter
 * Safe


 * opaque__uriGetter
 * Safe


 * file__uriGetter
 * Unsafe


 * fileURL__uriGetter
 * Unsafe


 * http__uriGetter
 * Unsafe


 * ftp__uriGetter
 * Unsafe


 * gopher__uriGetter
 * Unsafe


 * news__uriGetter
 * Unsafe


 * cap__uriGetter
 * Unsafe


 * makeCommand
 * Unsafe


 * stdout
 * Unsafe


 * stderr
 * Unsafe


 * print
 * Unsafe


 * println
 * Unsafe


 * interp
 * Unsafe


 * entropy
 * Unsafe


 * timer
 * Unsafe


 * introducer
 * Unsafe


 * identityMgr
 * Unsafe


 * getPrivilegedJOSSSuture
 * Unsafe


 * Persistent
 * Unsafe


 * makeSturdyRef
 * Unsafe


 * timeMachine
 * Unsafe


 * unsafe__uriGetter
 * Unsafe


 * currentVat
 * Unsafe


 * rune
 * Unsafe


 * awt__uriGetter
 * Unsafe


 * swing__uriGetter
 * Unsafe


 * JPanel__quasiParser
 * Unsafe


 * swt__uriGetter
 * Unsafe


 * currentDisplay
 * Unsafe


 * swtGrid__quasiParser
 * Unsafe


 * privilegedScope
 * Unsafe


 * out
 * Unsafe