Article View: comp.arch
Article #163Re: FORTRAN, was Comment delimiters
From: John Levine
Date: Sat, 17 Oct 2026 03:56
Date: Sat, 17 Oct 2026 03:56
29 lines
2257 bytes
2257 bytes
According to Anton Ertl <anton@mips.complang.tuwien.ac.at>: >The reason why I think of a backtracking parser is that it seems the >easiest way to be able to handle both > >DO101I=1.100 > >and > >DO101I=1,100 At least when I did it, backtracking parsers were big and ugly compared to little yacc parsers. I used Sale's algorithm although I didn't know that's what it was called when I reinvented it. >>There is a method called "Sale's Algorithm" which was published >>in CACM in the 1960's which describes how to lex up to Fortran 77. > >Interesting, but did the FORTRAN team come up with that? I think we can assume they did since it's by far the easiest way to parse card image FORTRAN. If anyone really cares I believe the assembler source of some early compilers is available online. R's, John -- Regards, John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies", Please consider the environment before reading this e-mail. https://jl.ly
Technical Details
Message-ID:
<11aurl9$2b0g$2@gal.iecc.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder9.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mailReferences:
<1791742457-5857@newsgrouper.org> <2026Oct15.081750@mips.complang.tuwien.ac.at> <9ysAS.182538$QPx3.16043@fx17.iad> <2026Oct16.195605@mips.complang.tuwien.ac.at>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder9.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail From: John Levine <johnl@taugh.com> Newsgroups: comp.arch Subject: Re: FORTRAN, was Comment delimiters Date: Sat, 17 Oct 2026 03:56:25 -0000 (UTC) Organization: Taughannock Networks Message-ID: <11aurl9$2b0g$2@gal.iecc.com> References: <1791742457-5857@newsgrouper.org> <2026Oct15.081750@mips.complang.tuwien.ac.at> <9ysAS.182538$QPx3.16043@fx17.iad> <2026Oct16.195605@mips.complang.tuwien.ac.at> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 17 Oct 2026 03:56:25 -0000 (UTC) Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="76816"; mail-complaints-to="abuse@iecc.com" In-Reply-To: <1791742457-5857@newsgrouper.org> <2026Oct15.081750@mips.complang.tuwien.ac.at> <9ysAS.182538$QPx3.16043@fx17.iad> <2026Oct16.195605@mips.complang.tuwien.ac.at> Cleverness: some X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: johnl@iecc.com (John Levine)