On Thursday 02 October 2008 09:57:48 am Przemyslaw Czerpak wrote: > On Thu, 02 Oct 2008, Phil Barnett wrote: > > Hi Phil, > > > > 3) I'd like to have a switch that warns me if I've used "=" where is > > > "ambiguos". > > > > My Click! source code reformattor does this conversion for you in many > > cases. > > Maybe we can use it for Harbour .prg source formatting? > I noticed that each of us has some own personal preferences > and formats .prg code in a little bit different way. > Some .prg code formatter like indent for .c can nicely help > here.
It would be good and consistent for that use. I need to pull that code out and make sure it works ok under Harbour. I suspect it will work with no changes, I forget if I used any libraries with it but if memory serves, I stayed away from any propreitary code so anyone could compile it. There's a lot of code in there that breaks source code up into atomic pieces, breaks runon phrases like mentioned earlier in another thread, modernizes it and aligns it for nice looks. I found that it makes code easier to work with in the long run. The most important thing would be to find out where it needs updates to handle what is today's typical syntax for Harbour above and beyond what it does for Clipper, which was pretty complete. What is there so far is about a year of development time. In the above case, Click! can figure out whether an = is used as a comparison or an assignment and replace = with := when it can make that determination. It also changes things like X = X + 1 to X++, etc. -- "Ninety percent of politicians give the other 10 percent a bad name." -- Henry Kissinger _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour