Class Interpreter

    • Constructor Detail

      • Interpreter

        public Interpreter()
        Creates a new Psylla language interpreter.
      • Interpreter

        public Interpreter​(DictStack dstack)
    • Method Detail

      • operandStack

        public OperandStack operandStack()
        Returns the operand stack.
        Returns:
        the operand stack.
      • dictStack

        public DictStack dictStack()
        Returns the dictionary stack.
        Returns:
        the dictionary stack.
      • executionStack

        public ExecutionStack executionStack()
        Returns the execution stack.
        Returns:
        the execution stack.
      • namespacePool

        public NamespacePool namespacePool()
        Returns the namespace pool.
        Returns:
        the namespace pool.
      • handleExecutionStack

        public void handleExecutionStack()
      • handleExecutionStack

        public void handleExecutionStack​(int level)
      • currentDict

        public PsyDictlike currentDict()
        Returns the current dictionary.
        Returns:
        the current dictionary.
      • systemDict

        public PsyDictlike systemDict()
        Returns system dictionary.
        Returns:
        the system dictionary.
      • userDict

        public PsyDictlike userDict()
        Returns the user dictionary.
        Returns:
        the user dictionary.
      • currentNamespace

        public PsyNamespace currentNamespace()
        Returns the current namespace.
        Returns:
        the current namespace.
      • setReader

        public void setReader​(Reader reader)
      • setWriter

        public void setWriter​(Writer writer)
      • setErrorWriter

        public void setErrorWriter​(Writer writer)
      • interpret

        public void interpret​(Reader reader)
      • interpret

        public void interpret​(String string)
      • interpret

        public void interpret​(PsyReader oReader)
      • handleError

        public void handleError​(PsyException oException)
      • showStacks

        public void showStacks()
      • execLevel

        public int execLevel()
      • getStopFlag

        public boolean getStopFlag()
      • setStopFlag

        public void setStopFlag​(boolean stopFlag)
      • pushLoopLevel

        public int pushLoopLevel()
      • popLoopLevel

        public int popLoopLevel()
      • currentLoopLevel

        public int currentLoopLevel()
      • pushStopLevel

        public int pushStopLevel()
      • popStopLevel

        public int popStopLevel()
      • currentStopLevel

        public int currentStopLevel()
      • setScriptName

        public void setScriptName​(String scriptName)
      • setEnvironment

        public void setEnvironment​(Map<String,​String> env)
      • quit

        public void quit()
      • banner

        public String banner()
      • prompt

        public String prompt()
      • currentInterpreter

        public static Interpreter currentInterpreter()
      • psyStop

        public void psyStop()
      • registerType

        public void registerType​(Class<? extends PsyObject> typeClass)