1 This directory contains scripts that are potentially useful for
2 running and/or testing fparser. The scripts and their use are described
8 Runs fparser2 on an input file and displays the de-parsed code. To see
9 any command line options add -h. This script can be used to choose
10 between parsing Fortran 2003 and Fortran 2008. An example of the use
23 Generates a synthetic Fortran source benchmark in memory and then
24 measures the time taken by fparser2 to parse it.
29 Runs fparser1 on an input file and displays the parser's
30 representation of that code. To see any command line options add
31 -h. An example of the use of this script is:
38 blocktype='beginsource'
39 name="<open file 'tmp3.f90', mode 'r' at 0x7f9bd0952f60> mode=free"
44 item=Line('program test',(1, 1),None,None,<reader>)
49 item=Line('end program test',(2, 2),None,None,<reader>)
54 Runs the fparser file reader on an input file and displays the file
55 reader's representation of that code. This is useful for testing that
56 the file reader is working as expected. Note the file reader is
57 required by both the fparser2.py and parse.py scripts. An example of
58 the use of this script is:
65 line #2'end program test'
70 Utility script used by fparser2.py, parse.py and read.py. This is
71 responsible for managing the common command line options in these files.