Interface ParsingContext

    • Method Detail

      • generateCode

        void generateCode​(ParsingContext.Location[] loc,
                          Instruction... args)
        generate instruction code with argument
        Parameters:
        instr - Instruction
        arg - Object
      • staticSymbol

        void staticSymbol​(String name,
                          Object object)
      • staticSymbol

        void staticSymbol​(String name)
      • generateCodeAll

        void generateCodeAll​(ParsingContext parsingContext)
        Add code to this context
        Parameters:
        code - Object[]
      • getAddress

        int getAddress()
        return the current code address
        Returns:
      • getProgramBuilder

        @Nullable
        org.spf4j.zel.vm.ProgramBuilder getProgramBuilder()
        get the code generated in this context
        Returns:
        Object[]
      • createSubContext

        ParsingContext createSubContext()
        clone this context
        Returns: