def do_compile(args, quiet = False):
    if len(args) < 1: usage()
    if args[0] == '-d':
        compile.Debug = 1
        del args[0]
    if len(args) != 1: usage()
    compile.elapsed()
    top = top_package.top(args[0])
    compile.run(top, False, quiet)
 def onCompile(self, event):
     from ucc.parser import compile
     compile.run(registry.top_package)