[Prev][Next][Index]

Whitespace in source code




I posted the following question about two months ago and
didn't get a reply. Does anyone know whether I can do this
with SAge++ ?

------------------- Attachment follows ------------------

   To: sage-bugs@rainier.extreme.indiana.edu 
   Subject: How to do this? 
   Date: Tue, 30 May 1995 15:49:59 +0100 
   From: "Peter Booth." <p.booth@ic.ac.uk> 
   Sender: owner-sage-bugs@extreme.indiana.edu 




I hope to use Sage++ to make cosmetic reformats to Fortran
source code. I can see see how the class structure gives me
the parse tree information I need to distinguish names which
represent PARAMETERS and, say local variables. I don't know
whether I can use the unparser when I access and modify the
whitespace surrounding symbols and operators, the casing of
identifiers, or if I am restricted to building a list of 
textual substitutions from the parsed file, and then applying 
them to the source code myself. Any suggestions? 

I have read through the documentation but cannot see how to
access information about whitespacing of statements, indents, etc.

Peter

------
Peter Booth             Email: P.Booth@ic.ac.uk
Imperial College Centre for Environmental Technology
48 Prince's Gardens, London SW7 2PE



Follow-Up(s):