Package sleep.bridges

Class DefaultEnvironment

    • Constructor Detail

      • DefaultEnvironment

        public DefaultEnvironment()
    • Method Detail

      • bindFunction

        public void bindFunction​(ScriptInstance si,
                                 java.lang.String type,
                                 java.lang.String name,
                                 Block code)
        Description copied from interface: Environment
        binds a function (functionName) of a certain type (typeKeyword) to the defined functionBody.
        Specified by:
        bindFunction in interface Environment
        type - the keyword for the function. (i.e. sub)
        name - the function name (i.e. add)
        code - the compiled body of the function (i.e. code to add 2 numbers)