harmoniouscode/src/RegenerateDataFiles.hx

17 lines
584 B
Haxe
Raw Normal View History

2008-10-08 23:54:28 +00:00
class RegenerateDataFiles {
public static function main() {
var functionProcessor = new FunctionTokenProcessor();
if (!functionProcessor.load_from_cache()) {
neko.Lib.print("Regenerating functions cache...\n");
functionProcessor.populate_from_file();
functionProcessor.save_to_cache();
}
var constantProcessor = new ConstantTokenProcessor();
if (!constantProcessor.load_from_cache()) {
neko.Lib.print("Regenerating constants cache...\n");
constantProcessor.populate_from_file();
constantProcessor.save_to_cache();
2008-10-08 23:54:28 +00:00
}
}
}