Conventions for writing .spad files after noweb has been dropped
HistorySince revision r1764, FriCAS does not use noweb anymore. https://groups.google.com/d/msg/fricas-devel/_cAs5lm8rS4/mcVSx6iGVHAJ A new convention for .spad files has been introduced.
Note: Currently Subject: fricas-devel Recent changes
To: fricas-devel@googlegroups.com
Date: Fri, 16 May 2014 05:23:10 +0200 (CEST)
From: Waldek Hebisch FriCAS no longer uses noweb. .spad.pamphelt files are
renamed to .spad. We have now a little sed script
called Concerning structure of sources, currently there is a
requirement to have My plan is to make sure that .spad files are correct Spad, that is it should be possible to compile them without splitting using Spad compiler. I am not sure how long we will split files during build -- spliting has some advantages, OTOH building directly from source file looks more natural. Note that what I wrote above means that currently there are no reordering of source code inside single constructor. In cases where pamphlet had some real "literate" part I tried to preserve it. I turned small one-two line intrusions into Spad commens. Longer passages are inside conditional sections like )if false Some text trying to explain what is going on, possibly hawing several lines )endif Let me add that I use Also, note that reordering feature of noweb frequently can be
replaced by Spad macros. I did not use macros because my
impresion was that people using noweb featurs did not like Spad
macros. However functionality offerd by them is very
similar... Spad macros normaly have "define before use"
restriction, but this can be circumvented by using Concerning furthere changes: if file have no real "literate" content I plan to remove noweb markup and TeX boilerplate. In other cases I will probably wrap boilerplate parts into conditional sections, so that Spad compiler will skip over them. -- Waldek Hebisch hebisch@math.uni.wroc.pl |