public class Binder {

	public static void assign(Name name, Value value, Scope s) {
		Scope scope = s.findDefineScope(name.id);
		if (scope == null)
			// S.error("变量未定义！" + name.id);
			s.putValue(name.id, value);
		else
			scope.putValue(name.id, value);
	}
}

@@ -253,11 +253,192 @@
 lue);%0A%09%7D
+%0A%0A%09public static void define(Name name, Value value, Scope s) %7B%0A%09%09Value v = s.lookupLocal(name.id);%0A%09%09if (v != null) %0A%09%09%09S.error(%22%E5%87%BD%E6%95%B0%E9%87%8D%E5%AE%9A%E4%B9%89%EF%BC%9A %25s%22, name);%0A%09%09s.putValue(name.id, value);%0A%09%7D
 %0A%7D%0A

add define