new Shell(args[0]).run();
}
private void run() {
Bindings bindings = this.engine.getBindings(ScriptContext.ENGINE_SCOPE);
ThingFactory factory = new ThingFactory();
bindings.put("factory", factory);
int N = factory.getThingCount();
for (int i = 1; i <= N; ++i)
{
bindings.put("thing"+i, factory.getThing(i));
}
bindings.put("invoker", ReflectInvocations.invoker());
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try