Updated generator script for dartlang