No love for FORTRAN?

Programming the 6502 microprocessor and its relatives in assembly and other languages.
User avatar
drogon
Posts: 1671
Joined: 14 Feb 2018
Location: Scotland
Contact:

Re: No love for FORTRAN?

Post by drogon »

BillG wrote:
FORTRAN ignores spaces, even within identifiers!

That type of fragment is a classic example used in compiler textbooks of how the lexical analyzer for FORTRAN is special; it must look ahead to properly do its job. But I digress...

I have several toy compilers in various states of incompletion. If there is enough interest, I may consider creating one for FORTRAN.
When I wrote my own BASIC, I decided that if the first pass of tokenising a line was to remove all spaces then I could have variable names with spaces in ... It went downhill from there and I abandoned that idea..

-Gordon
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
Post Reply