Go to the first, previous, next, last section, table of contents.


|findSymbol?

Function: |findSymbol? { [token] default-pkg -> [token] found sym }
file: job.t
package: muf
status: alpha

The |findSymbol? prim is a compiler-support function which accepts a block of integer-coded characters such as returned by lisp:|classifyLispToken or |backslashesToHighbit and returns the corresponding symbol as sym if found, else nil. The found return value will be nil unless the symbol was found.

The |findSymbol? prim distinguishes four token types:

:sss
A keyword symbol. Looked up in the keyword package, created if not found.
sss
A vanilla symbol. Looked up first as a private symbol in the current package (@$s.package), then as a public (exported) symbol in all packages used by the current package, finally in the default compiler package default-pkg if it is a package.
ppp:sss
Looked up as a public symbol in package ppp.
ppp::sss
Looked up as a private symbol in package ppp, then as a public symbol in any package used by ppp.

See section intern. See section makeSymbol. See section ]makeSymbol.


Go to the first, previous, next, last section, table of contents.