MaxCoderz

for your 1 bit pleasure!

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Editor?
PostPosted: Wed 16 Sep, 2009 10:37 pm 
Offline
New Member

Joined: Tue 11 Nov, 2008 7:36 pm
Posts: 25
What happened to that plain-text editor app from the first post in the Progress Thread? It seems like a nice way to edit BBC Basic programs in a way that feels more like the TI-BASIC editor.
Also, is there a way to check whether a file of a certain name exists?


Top
 Profile  
Reply with quote  
 Post subject: Re: Editor?
PostPosted: Wed 16 Sep, 2009 10:47 pm 
Offline
Maxcoderz Staff
User avatar

Joined: Thu 16 Dec, 2004 10:06 pm
Posts: 3064
Location: Croydon, England
It was scrapped for space reasons, unfortunately, and I don't have the time to write a new one at the moment. To be properly useful it would need to tokenise/detokenise BBC BASIC programs, which is a laborious and painful job in Z80 assembly, too. :(

As for detecting whether a file exists; OPENIN"FILENAME" will return 0 if no file was found.


Top
 Profile  
Reply with quote  
 Post subject: Re: Editor?
PostPosted: Wed 16 Sep, 2009 11:55 pm 
Offline
New Member

Joined: Wed 10 Jun, 2009 9:58 pm
Posts: 17
Bwang has a point. Everybody I've talked to about BBC Basic is all for it and very enthusiastic until they find out how the editor works. It seems to be a major turn away factor :(

On a side note, are programs stored as tokens or characters?


Top
 Profile  
Reply with quote  
 Post subject: Re: Editor?
PostPosted: Thu 17 Sep, 2009 1:12 am 
Offline
Maxcoderz Staff
User avatar

Joined: Thu 16 Dec, 2004 10:06 pm
Posts: 3064
Location: Croydon, England
Tokenised. The program format and tokens are documented in the, well, documentation (and the C# editor implements a tokeniser/detokeniser that may be useful as a reference).

The line-based editing is common to old microcomputer BASICs, but I acknowledge that people expect a bit more these days. :| Personally, I write larger programs on the PC first, only writing small programs on the calculator.


Top
 Profile  
Reply with quote  
 Post subject: Re: Editor?
PostPosted: Thu 17 Sep, 2009 2:47 am 
Offline
New Member

Joined: Tue 11 Nov, 2008 7:36 pm
Posts: 25
Isn't there a BBC Basic star command that reads a text file (*LOADTEXT)?
As for writing programs on the PC, I know several people who dislike programming calculators on anything but a calculator. Part of the attractiveness of calculator programming is that they are portable.


Top
 Profile  
Reply with quote  
 Post subject: Re: Editor?
PostPosted: Mon 21 Sep, 2009 10:01 pm 
Offline
New Member

Joined: Tue 11 Nov, 2008 7:36 pm
Posts: 25
Ben:
If you still have the original text editor app, could you release the app and/or the source? That may, perhaps someone else could write the tokenizer.
Would it be feasible to write the tokenizer in BBC Basic?


Top
 Profile  
Reply with quote  
 Post subject: Re: Editor?
PostPosted: Mon 21 Sep, 2009 10:35 pm 
Offline
Maxcoderz Staff
User avatar

Joined: Thu 16 Dec, 2004 10:06 pm
Posts: 3064
Location: Croydon, England
bwang wrote:
Ben:
If you still have the original text editor app, could you release the app and/or the source? That may, perhaps someone else could write the tokenizer.
I don't have it, sorry, and it would be entirely possible to write the tokeniser in BBC BASIC. You could always try writing a converter from something like Document DE.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB ® Forum Software © phpBB Group | DVGFX2 by: Matt