## 2016-05-30 Babelsberg

Pulling Babelsberg into Lively4... Here are some replacements I did to convert
Lively modules and classes into ES6 modules (#Tim):

```
src.replace(/(\s+)([0-9a-zA-Z$_]+): function/g, "$1$2")

src.replace(/([a-zA-Z0-9$_]+).subclass\('([a-zA-Z0-9$_]+)', {/g, "class $2 extends $1 {")

src.replace(/^}\);\s*$/g, "}")

src.replace(/^(\s+)},\s*$/g, "$1}")
```

And here are some for converting prototype-stuff into classes:

```
replace(/XYZ.prototype.([a-zA-Z0-9$_]+) = function/, "$1")

replace(/XYZ.prototype\['([a-zA-Z0-9$_]+)'\] = function/, "$1")
```

And here some stuff for tests into mocha tests:
```
/^(\s+)test([a-zA-Z0-9$_]+): function/ => "$1it('should $2', function"
/^(\s+)},/ => "$1})"
```
