[Prev][Next][Index]

Re: Whitespace in source code




> 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?

Whitespacing in the output code is controlled by the unparser *only*.
Your only chance would be to hack unparse.c directly. There is no
user-level interface. Modifying the case of identifiers is a different
matter; to do that you would edit each symbol's name, which can be
done from the Sage++ interface. 

/Andrew/




Reference(s):