Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: A BASIC interpreter to run StarTrek

by GrandFather (Saint)
on Aug 11, 2021 at 21:13 UTC ( #11135793=note: print w/replies, xml ) Need Help??


in reply to Re^2: A BASIC interpreter to run StarTrek
in thread A BASIC interpreter to run StarTrek

BASIC was widely adopted in mini-computers and micro-computers with very limited memory so most implementations allowed white space to be expunged. The original Dartmouth BASIC doesn't mention the option of omitting spaces so that probably wasn't a thing.

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
  • Comment on Re^3: A BASIC interpreter to run StarTrek

Replies are listed 'Best First'.
Re^4: A BASIC interpreter to run StarTrek
by LanX (Sage) on Aug 12, 2021 at 00:04 UTC
    OK, good point.

    FWIW: When I started programming almost all available BASIC dialects (Apple, Commodore, Atari, ...) where based on MS BASIC which tokenized all keywords before storing or running. Whitespace was added automatically when listing.

    EDIT

    see https://www.c64-wiki.com/wiki/BASIC_token for more

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

    update

    ) IOW these kind of tricks where not only unnecessary but also impossible, because the source was automatically "linted" with whitespace when listed.

      FWIW, I started with BASIC on an HP 2000. Next was a DEC Rainbow 100 (CPM 80/86) and the original IBM PC. Next was on a Wang mini followed by a Data General mini on DGUX. Mixed in there were various MS and IBM BASICs as well as PowerBASIC and Atari BASIC.

      While I was in school using the HP 2000 BASIC I bought a book that showed the differences between about 2 (or 3?) dozen different variations of BASIC.

        I used http://www.vintage-basic.net/downloads/Vintage_BASIC_Users_Guide.html as a reference while writing the interpreter so it should be pretty close to MS BASICs of the early '80s. The Guide leaves a few unanswered questions ("should logic short circuit?" for example), but proved sufficient to get my interpreter working enough to run StarTrek (for some yet to be determined definition of "run").

        Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

        How about BASIC on an ISC 19" color terminal? $work used these terminals with an add-on IR touch bezel for control system operator interfaces.

        I wrote a real estate investment model on the ISC(way before VisiCalc existed). It was a very nice moon-light job as the customer kept adding features!

        James

        There's never enough time to do it right, but always enough time to do it over...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11135793]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2021-10-19 18:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (77 votes). Check out past polls.

    Notices?