-fdump-parse-tree
Christopher D. Rickett
crickett@lanl.gov
Mon Sep 12 19:29:00 GMT 2005
On Mon, 12 Sep 2005, Tobias Schlüter wrote:
>
> Hello,
>
> Christopher D. Rickett wrote:
> > I would like to change the output from -fdump-parse-tree to put curly
> > braces around the code segments, if no one objects. I work on a project
> > called gfortran2xml and the recognition and handling of code segments in
> > the output would be simplified if I could put braces around them.
>
> Isn't the change in indentation levels sufficient for this? Output of the
> code always starts at indentation level 0, whereas the symbol table output
> starts at indentation level 1. (For the definition of this see in
> code_indent(), and also the use of show_level in gfc_show_namespace. Also
> note that gfc_show_code() is always called with level = 0 from there.)
The indentation level change is sufficient, and is what we currently use.
The use of braces would simplify the job though and could prevent us from
relying on whitespace in the grammar.
> Cheers,
> - Tobi
>
Thanks.
Chris
More information about the Fortran
mailing list