Package coneforest.psylla.core
Interface PsyContext
- All Superinterfaces:
PsyConvertableToName
,PsyConvertableToString
,PsyObject
- All Known Implementing Classes:
Interpreter
A representation of
context
, an execution context.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
void
fork()
long
getId()
boolean
void
void
handleExecutionStack
(int level) void
void
interpretBraced
(PsyReader oReader) void
join()
operandStackBacked
(int count) int
int
static PsyContext
Returns the currently executing context.<T extends PsyObject>
TpsyLoad
(PsyTextual oKey) void
psyWhere
(PsyTextual oKey) int
int
void
quit()
void
repl()
void
setStopFlag
(boolean stopFlag) void
stop_()
default String
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, typeName
-
Field Details
-
OPERATORS
-
-
Method Details
-
getId
long getId() -
join
- Throws:
InterruptedException
-
toSyntaxString
- Specified by:
toSyntaxString
in interfacePsyObject
-
psyCurrentContext
Returns the currently executing context.- Returns:
- the currently executing context.
-
fork
- Throws:
PsyErrorException
-
quit
void quit() -
stop_
void stop_() -
operandStack
OperandStack operandStack() -
dictStack
DictStack dictStack() -
executionStack
ExecutionStack executionStack() -
systemDict
PsyFormalDict systemDict() -
currentDict
PsyFormalDict currentDict() -
namespacePool
NamespacePool namespacePool() -
execLevel
int execLevel() -
pushLoopLevel
int pushLoopLevel() -
popLoopLevel
int popLoopLevel() -
currentLoopLevel
int currentLoopLevel() -
pushStopLevel
int pushStopLevel() -
popStopLevel
int popStopLevel() -
currentStopLevel
int currentStopLevel() -
getStopFlag
boolean getStopFlag() -
repl
- Throws:
PsyErrorException
-
setStopFlag
void setStopFlag(boolean stopFlag) -
handleExecutionStack
void handleExecutionStack() -
handleExecutionStack
void handleExecutionStack(int level) -
interpret
- Throws:
PsyErrorException
-
interpretBraced
- Throws:
PsyErrorException
-
operandStackBacked
- Throws:
PsyErrorException
-
psyWhere
-
psyLoad
- Throws:
PsyErrorException
-
psyRequire
- Throws:
PsyErrorException
-