Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

fortran 90/95 BNF grammar

616 views
Skip to first unread message

Rocky Dunlap

unread,
Nov 19, 2008, 5:04:02 PM11/19/08
to
Does anyone know where I can get my hands on a Fortran 90 or 95 BNF
grammar that is in some "parseable" format? (that is, something other
than a PDF or descriptive text, but an actual grammar for feeding into
parser generators, etc.)

Thanks!
Rocky

George

unread,
Nov 19, 2008, 9:41:32 PM11/19/08
to

The first priceless wonder in such literature is Bertrand Russell's *least*
stimulating work.

You can slurp this in as text:

1) āa:āb:(a+Sb)=S(a+b)
2) āb:(d+Sb)=S(d+b)
...
56) ād:āc:(c+d)=(d+c)

If you had the actual grammar to make this fortran, many would happily
retire as dinosaurs.
--
George

We will build new ships to carry man forward into the universe, to gain a
new foothold on the moon and to prepare for new journeys to the worlds
beyond our own.
George W. Bush

Picture of the Day http://apod.nasa.gov/apod/

Mark Westwood

unread,
Nov 21, 2008, 7:54:34 AM11/21/08
to
Rocky

Here's what I do:

a) copy the text from the PDF and paste it into a text editor (I like
Emacs);

b) use your text editor's search/replace facilities to transform the
~BNF representation to a representation understood by your parser
generator (I like Emacs for this).

And away you go ...

Sure, it's a drag going through the PDF and copying only the grammar
bits, but you only have to do it once every 5 years or so. And I
guess that someone smarter than me who understands the PDF might even
be able to program that.

Regards

Mark Westwood

Jugoslav Dujic

unread,
Nov 21, 2008, 8:48:18 AM11/21/08
to

Google gives

http://docs.cray.com/books/007-3694-003/html-007-3694-003/faxalchri.html

--
Jugoslav
www.xeffort.com
Please reply to the newsgroup.
You can find my real e-mail on my home page above.

0 new messages