コード例 #1
0
ファイル: doendo.py プロジェクト: jornada/DOENDO
def main():
	(options, args) = parse()

	print '''
==========================================================================
  Welcome to DOENDO - the tool that makes your FORTRAN code less painful   
              DOENDO Copyright (C) 2011  Felipe H. da Jornada
              This program comes with ABSOLUTELY NO WARRANTY.
=========================================================================='''

	fname = sys.argv[1]
	fin = open(fname)
	lines = fin.readlines()
	fin.close()

	#need file as single character string
	data = ''.join(lines)

	#prepare DOM of source code
	doc = analyze.analyze(fname, data)
	#print useful info about code (get small variables for free)
	small_vars = analyze.print_info(doc)

	while (1):
		task_loop(doc, lines)
コード例 #2
0
ファイル: doendo.py プロジェクト: jornada/DOENDO
def task_info(doc, lines):
	analyze.print_info(doc)