Changes between Version 32 and Version 33 of Things To Do
- Timestamp:
- 06/04/10 12:25:21 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Things To Do
v32 v33 92 92 In the library module, there should be a LibraryLoader class and a LibraryIF. The LibraryLoader will have a method loadLibrary(String name) that returns a LibraryIF. The loader should contain information about each of the implemented libraries. The loadLibrary() method will check for a library with the matching name, return it if available, or throw an exception. 93 93 94 {{{ 94 95 public class LibraryLoader { 95 96 LibraryIF loadLibrary(String name); … … 107 108 Map<String, FunctionDeclaration> getSystemFunctions(); 108 109 } 110 }}} 109 111 110 A Program should have information on its included libraries, and have a method to get that information. 111 112 A Program should have information on its included libraries, and have a method to get that information. 113 114 {{{ 112 115 List<String> libraries(); 113 116 … … 122 125 123 126 } 127 }}} 124 128 125 also add system level function definition in semantics, next to Executor.129 also add system level function definition in semantics, next to !Executor. 126 130 127 If all system functions are part of a library, the execute()method in the executor should be:131 If all system functions are part of a library, the `execute()` method in the executor should be: 128 132 133 {{{ 129 134 void execute(EnvironmentIF environment, InvocationStatementIF statement); 135 }}} 130 136 131 This method will instantiate the appropriate LibraryExecutor for the SystemFunctionIF, then call a method in that library executor to execute the appropriate function.137 This method will instantiate the appropriate `LibraryExecutor` for the `SystemFunctionIF`, then call a method in that library executor to execute the appropriate function. 132 138 139 {{{ 133 140 public interface LibraryExecutorIF { 134 141 void execute(EnvironmentIF environment, InvocationStatementIF invocation); 135 142 136 143 boolean containsFunction(String name); 137 } 144 } 145 }}}
