Class TokenRegisters

    • Method Detail

      • getRegister

        public static DataRegister getRegister​(TokenType type)
        Creates a DataRegister appropriate for the given type.
        Parameters:
        type - the token type for which to create a register
        Returns:
        a new token value register
      • getRegisters

        public static ScalarRegister[] getRegisters​(ScalarTokenType[] types)
        Creates an array of ScalarRegister's for the given types.
        Parameters:
        types - The types of the registers
        Returns:
        an array of ScalarRegister's for the given types.