<s> from __future__ import absolute_import <EOL> from __future__ import print_function <EOL> from . import script_util as S <EOL> import redhawk . common . get_ast as G <EOL> import optparse <EOL> usage = "<STR_LIT>" <EOL> description = """<STR_LIT>""" <EOL> def Main ( args ) : <EOL> parser = optparse . OptionParser ( usage , description = description ) <EOL> options , args = parser . parse_args ( args ) <EOL> if not len ( args ) : <EOL> parser . error ( "<STR_LIT>" ) <EOL> database_file = S . GetDatabase ( ) <EOL> if database_file is None : <EOL> S . ExitWithError ( S . MakeStringFromTemplate ( <EOL> "<STR_LIT>" ) ) <EOL> ast_fetcher = G . CreateLASTFetcher ( database_file , store_new = True ) <EOL> for f in S . GetSupportedFiles ( args ) : <EOL> ast = ast_fetcher . GetAST ( f , key = S . GetKey ( f , database_file ) ) <EOL> print ( "<STR_LIT>" % ( f ) ) <EOL> print ( "<STR_LIT>" ) <EOL> ast_fetcher . Close ( ) <EOL> print ( "<STR_LIT>" ) <EOL> return </s>
