Page 6 of 6

Re: No love for FORTRAN?

Posted: Sat Aug 17, 2024 3:47 pm
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