Package coneforest.psylla.core
Interface PsyContext
-
- All Superinterfaces:
PsyConvertableToName,PsyConvertableToString,PsyObject
- All Known Implementing Classes:
Interpreter
public interface PsyContext extends PsyObject
A representation of Ψ-context, an execution context.
-
-
Field Summary
Fields Modifier and Type Field Description static PsyOperator[]OPERATORS
-
Method Summary
-
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, typeName
-
-
-
-
Field Detail
-
OPERATORS
static final PsyOperator[] OPERATORS
-
-
Method Detail
-
getId
long getId()
-
join
void join() throws InterruptedException
- Throws:
InterruptedException
-
toSyntaxString
default String toSyntaxString()
- Specified by:
toSyntaxStringin interfacePsyObject
-
psyCurrentContext
static PsyContext psyCurrentContext()
Returns the currently executing context.- Returns:
- the currently executing context.
-
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
void repl() throws PsyException
- Throws:
PsyException
-
setStopFlag
void setStopFlag(boolean stopFlag)
-
handleExecutionStack
void handleExecutionStack()
-
handleExecutionStack
void handleExecutionStack(int level)
-
handleError
void handleError(PsyException oException)
-
interpret
void interpret(PsyReader oReader) throws PsyException
- Throws:
PsyException
-
interpretBraced
void interpretBraced(PsyReader oReader) throws PsyException
- Throws:
PsyException
-
operandStackBacked
OperandStack operandStackBacked(int count) throws PsyException
- Throws:
PsyException
-
psyWhere
PsyFormalDict psyWhere(PsyTextual oKey)
-
psyLoad
<T extends PsyObject> T psyLoad(PsyTextual oKey) throws PsyException
- Throws:
PsyException
-
psyRequire
void psyRequire(PsyTextual o) throws PsyException
- Throws:
PsyException
-
-