Preparing search index...
The search index is not available
@stemcmicro/stack
@stemcmicro/stack
ProgramEnv
Interface ProgramEnv
interface
ProgramEnv
{
addRef
(
)
:
void
;
clearBindings
(
)
:
void
;
defineUserSymbol
(
name
)
:
void
;
getBinding
(
opr
,
target
)
:
U
;
getState
(
key
)
:
Shareable
;
getUserFunction
(
name
)
:
U
;
handlerFor
<
T
>
(
expr
)
:
ExprHandler
<
T
>
;
hasBinding
(
opr
,
target
)
:
boolean
;
hasState
(
key
)
:
boolean
;
hasUserFunction
(
name
)
:
boolean
;
release
(
)
:
void
;
setBinding
(
opr
,
binding
)
:
void
;
setState
(
key
,
value
)
:
void
;
setUserFunction
(
name
,
userfunc
)
:
void
;
valueOf
(
expr
,
stack
?
)
:
U
;
}
Hierarchy
Shareable
ProgramEnv
Index
Methods
add
Ref
clear
Bindings
define
User
Symbol
get
Binding
get
State
get
User
Function
handler
For
has
Binding
has
State
has
User
Function
release
set
Binding
set
State
set
User
Function
value
Of
Methods
add
Ref
add
Ref
(
)
:
void
Returns
void
clear
Bindings
clear
Bindings
(
)
:
void
Returns
void
define
User
Symbol
define
User
Symbol
(
name
)
:
void
Parameters
name
:
Sym
Returns
void
get
Binding
get
Binding
(
opr
,
target
)
:
U
Parameters
opr
:
Sym
target
:
Cons
Returns
U
get
State
get
State
(
key
)
:
Shareable
Parameters
key
:
string
Returns
Shareable
get
User
Function
get
User
Function
(
name
)
:
U
Parameters
name
:
Sym
Returns
U
handler
For
handler
For
<
T
>
(
expr
)
:
ExprHandler
<
T
>
Type Parameters
T
extends
U
Parameters
expr
:
T
Returns
ExprHandler
<
T
>
has
Binding
has
Binding
(
opr
,
target
)
:
boolean
Parameters
opr
:
Sym
target
:
Cons
Returns
boolean
has
State
has
State
(
key
)
:
boolean
Parameters
key
:
string
Returns
boolean
has
User
Function
has
User
Function
(
name
)
:
boolean
Parameters
name
:
Sym
Returns
boolean
release
release
(
)
:
void
Returns
void
set
Binding
set
Binding
(
opr
,
binding
)
:
void
Parameters
opr
:
Sym
binding
:
U
Returns
void
set
State
set
State
(
key
,
value
)
:
void
Parameters
key
:
string
value
:
Shareable
Returns
void
set
User
Function
set
User
Function
(
name
,
userfunc
)
:
void
Parameters
name
:
Sym
userfunc
:
U
Returns
void
value
Of
value
Of
(
expr
,
stack
?
)
:
U
If a stack is provided, the computed value is pushed onto the stack and nil is returned.
Parameters
expr
:
U
Optional
stack
:
Pick
<
ProgramStack
,
"push"
>
Returns
U
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
add
Ref
clear
Bindings
define
User
Symbol
get
Binding
get
State
get
User
Function
handler
For
has
Binding
has
State
has
User
Function
release
set
Binding
set
State
set
User
Function
value
Of
@stemcmicro/stack
Loading...
If a stack is provided, the computed value is pushed onto the stack and nil is returned.