Re: Fortran 77 parser
- From: Tobias Burnus <burnus@xxxxxxxx>
- Date: Fri, 4 Apr 2008 06:16:15 -0700 (PDT)
On Apr 4, 2:46 pm, Jon Harrop <j...@xxxxxxxxxxxxxxxxx> wrote:
Steven G. Kargl wrote:
If all you really care about is Fortran 77, then grab f2c
from netlib. Otherwise, I think you severely under estimate
the difficult involved with one person writing a Fortran 77
compiler.
Actually I have now completed the compiler and it was fiddly but really not
that difficult (~1 week full-time work using OCaml). I processed the code
in several stages:
I think both statements are true. Writing a full parser of Fortran 77
which supports all syntax is extremely demanding. Writing a parser
which converts a "typical" Fortran code or even better a Fortran code
following a special style much less demanding.
Does it parse the following?
integerinteger,end
realprint
logicalif
end=5
if=.true.
if(if)read(*,*)print,integer
end
Tobias
--
"Consistently separating words by spaces became a general custom about
the tenth century A.D., and lasted until about 1957, when FORTRAN
abandoned the practice." -- Sun FORTRAN Reference Manual
.
- Follow-Ups:
- Re: Fortran 77 parser
- From: Jon Harrop
- Re: Fortran 77 parser
- References:
- Re: Fortran 77 parser
- From: Jon Harrop
- Re: Fortran 77 parser
- Prev by Date: Re: Fortran 77 parser
- Next by Date: Re: Fortran 77 parser
- Previous by thread: Re: Fortran 77 parser
- Next by thread: Re: Fortran 77 parser
- Index(es):
Relevant Pages
|
|