[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DiskBrowser Software - Work In Progress



  To: Denis Molony
On Thu, 25 Sep 2008 17:01:24 -0700, Denis Molony wrote:

> On Sep 25, 3:09�am, "Jeff Blakeney"
> <jeff.blake...@a2central.com.remove-h9e-this> wrote:
>> � To: Michael J. Mahon
>>
>> On Tue, 23 Sep 2008 11:59:05 -0700, Michael J. Mahon wrote:
>>> Jeff Blakeney wrote:
>>>> When I saw the screen shots of your project I thought "What a neat idea
>>>> to break up Applesoft listings by making a colon act as a new line
>>>> command." �I might use that idea myself someday.
>>
>>> Unless accompanied by indenting, it obscures the grouping of
>>> statements on one line in the THEN clause of an IF.
>>
>> Yes, I had thought of that and as I might use this idea in a furture
>> project I suppose I should make note of it on my future projects list so
>> that I don't forget about it. �Mind you, indenting is one of the things
>> I'd like to have as well for IF and FOR statements and the like.
> 
> It already does indenting for Basic programs. Is that what you mean?

I'm talking about a future project I may work on at some point in time.
The indenting and other features I'm thinking about would look something
like this (best viewed with a monospaced font):

   10 | FOR Z = 1 TO 100
   20 |     A$ = "Iteration #" + STR$(Z)
   30 |     IF Z / 10 = INT(Z / 10) THEN VTAB 1 :
      |         HTAB 1 :
      |         PRINT Z / 10 + "% done." :
      |         REM Display progress in 10% increments
   40 |     B$ = "Do some more code
   50 | NEXT Z

I'm envisioning this as a column on the left side of the screen with the
line numbers separated from the text of the program (shown by the
vertical lines above).  This would be so that the editor can do
automatic line numbering and allow easy renumbering of the entire
program or just sections of it.  FOR statements would have everything
between the FOR and NEXT statements indented.  IF statements, if they
have multiple statements after the THEN like in the example above, would
also indent the other statements.  I'm sure I could come up with a neat
way to differentiate labels and other editor specific commands by having
them start with a specific character like : for labels and ' for remarks
that would never be included in the executable.

If anyone's interested we could take this to comp.sys.apple2.programmer
and come up with a complete design.  I'm looking for a Windows
programming project to play with and this would help me get some things
figured out for other Windows projects I have in mind and it is helpful
for doing stuff on my Apple II and would give me something to port to
the IIgs as well.