file: job.t package: muf status: alpha
The |positionInStack?
prim is a
compiler-support function which accepts a block of
integer-coded characters such as returned by
lisp:|classifyLispToken
or
|backslashesToHighbit
and searches the
given stack
for a matching string.
The usual use is to maintain a block-structured
local symbol table in the stack
, with
alternating string keys and function/integer
values.
As usual, one motivation for expressing the
[token]
argument as a block of ints
instead of as a string, is to minimize
generation of garbage strings by the Muq
compilers: It is usually possible to
tokenize the compiler input and look up
the results in the symbol tables entirely
without garbage generation.
See section getKey?.
Go to the first, previous, next, last section, table of contents.