For Programmers: Free Programming Magazines  


Home > Archive > Cobol > August 2004 > Cobol AS/400 BNF Help Please









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Cobol AS/400 BNF Help Please
matteo

2004-07-19, 3:55 pm

Hi all,
does anyone have a BNF grammar spec for Cobol AS/400?
TIA
Matteo
Frederico Fonseca

2004-07-19, 3:55 pm

On 19 Jul 2004 10:52:58 -0700, matteom@avanade.com (matteo) wrote:

>Hi all,
>does anyone have a BNF grammar spec for Cobol AS/400?
>TIA
>Matteo

and what is a BNF


Frederico Fonseca
ema il: frederico_fonseca at syssoft-int.com
William M. Klein

2004-07-19, 8:55 pm

Certainly NOT for free, but you might want to check out:

http://www.siber.com/

I know they can handle MANY COBOL dialects.

--
Bill Klein
wmklein <at> ix.netcom.com
"matteo" <matteom@avanade.com> wrote in message
news:3d89db82.0407190952.3a3651b9@posting.google.com...
> Hi all,
> does anyone have a BNF grammar spec for Cobol AS/400?
> TIA
> Matteo



E P Chandler

2004-07-19, 8:55 pm

Frederico Fonseca <real-email-in-msg-spam@email.com> wrote in message news:<nj4of0tsaulqu6u82e1o5qmikj2st9oopg@4ax.com>...
> On 19 Jul 2004 10:52:58 -0700, matteom@avanade.com (matteo) wrote:
>
> and what is a BNF
>
>
> Frederico Fonseca
> ema il: frederico_fonseca at syssoft-int.com


BNF is Backus-Naur Form which is one way of expressing the statements
allowable in a programming language. Having a language specification
in this form makes it easier to use automated compiler writing tools.

Here is a URL but it's for VS Cobol II.

http://www.cs.vu.nl/grammars/browsable/vs-cobol-ii/

[My understanding is that COBOL is particularly difficult to parse
because of its richness as a computer programming language, hence BNF
or other "grammars" for COBOL are difficult to find.]
Robert Wagner

2004-07-20, 3:55 am

epc8@juno.com (E P Chandler) wrote:

>Frederico Fonseca <real-email-in-msg-spam@email.com> wrote in message

news:<nj4of0tsaulqu6u82e1o5qmikj2st9oopg@4ax.com>...
>
>BNF is Backus-Naur Form which is one way of expressing the statements
>allowable in a programming language. Having a language specification
>in this form makes it easier to use automated compiler writing tools.
>
>Here is a URL but it's for VS Cobol II.
>
>http://www.cs.vu.nl/grammars/browsable/vs-cobol-ii/
>
>[My understanding is that COBOL is particularly difficult to parse
>because of its richness as a computer programming language, hence BNF
>or other "grammars" for COBOL are difficult to find.]


That's because BNF strongly prefers languages that are 'context-free'. It
believes lexicon should do ALL the heavy lifting. Its ability to handle syntax
is very limited.

This preference has influenced all languages designed after roughly 1970. It's
the reason why C has '==' as a relational operator, for instance.

<troll alert> It seems to me that 'language designers' should know something
about linguistics. Knowledge of logic is inadequate. When challenged to name a
famous linguist, most language designing computer scientists can name Chomsky
and no others. When asked to name his seminal work, they cannot come up with
Syntactic Structures. When asked about Bloomfield or Wittgenstein, they return a
blank look.

"In the land of he blind, the one-eyed man is king."
matteo

2004-07-20, 8:55 am

many thanks to all,
maybe someone from IBM could have this Grammar...
docdwarf@panix.com

2004-07-20, 8:55 am

In article <40fc7805.29951463@news.optonline.net>,
Robert Wagner <robert.deletethis@wagner.net> wrote:

[snip]

>"In the land of he blind, the one-eyed man is king."


Mr Wagner, I was taught, e'er-so-long ago - perhaps by someone who was
familiar with Book V of Plato's 'Republic' - that it might have merit to
consider this statement as half of a pair:

'In the kingdom of the blind, the one-eyed man is king. In the kingdom of
the blind, the two-eyed man keeps his mouth shut.'

DD

E P Chandler

2004-07-20, 3:55 pm

robert.deletethis@wagner.net (Robert Wagner) wrote:

> <troll alert> It seems to me that 'language designers' should know something
> about linguistics.


[OT] Please forgive me, but I can't help mentioning that the creator
of Perl, Larry Wall, often mentions his training in linguistics when
discussing the origins of that particular programming language. :-).

Personally, I find Perl a bit too baroque for my taste. For most text
munging that I do (including occasionally working with COBOL source
programs), I prefer AWK. (Had I spent more time on mainframes instead
of minis and PCs, I might have chosen SNOBOL or REXX.)
Richard

2004-07-20, 3:55 pm

robert.deletethis@wagner.net (Robert Wagner) wrote

> When challenged to name a
> famous linguist, most language designing computer scientists can name Chomsky
> and no others. When asked to name his seminal work, they cannot come up with
> Syntactic Structures. When asked about Bloomfield or Wittgenstein, they return a
> blank look.


Was this particular statistical result done by studying the recruitment ads again.
Russell Styles

2004-07-20, 8:55 pm


<docdwarf@panix.com> wrote in message news:cdivgc$onn$1@panix5.panix.com...
> In article <40fc7805.29951463@news.optonline.net>,
> Robert Wagner <robert.deletethis@wagner.net> wrote:
>
> [snip]
>
>
> Mr Wagner, I was taught, e'er-so-long ago - perhaps by someone who was
> familiar with Book V of Plato's 'Republic' - that it might have merit to
> consider this statement as half of a pair:
>
> 'In the kingdom of the blind, the one-eyed man is king. In the kingdom of
> the blind, the two-eyed man keeps his mouth shut.'
>
> DD
>

The version I heard was "In the kingdom of the blind, the one-eyed
man is denounced as a liar and a fraud.". No mention is made of
a two eyed man. I suppose that he would be treated like the one-eyed man.


Robert Wagner

2004-07-21, 3:55 am

riplin@Azonic.co.nz (Richard) wrote:

>robert.deletethis@wagner.net (Robert Wagner) wrote
>
return a[color=darkred]
>
>Was this particular statistical result done by studying the recruitment ads

again.

It was done in newsgroups frequented by Computer Scientists. The kind who say
Programming? If I wanted to learn a trade, I would have gone to Trade School.
I'm a Scientist.

I'm not making this up. It's a direct quotation.
Thomas A. Li

2004-08-18, 8:55 pm

Check out www.corporola.com for COBOL 74/85 BNF in HTML format.
A computer readable format is also available in cobol2java translator.
There are BNF reader, parser and COBOL to Java translator available.

Thomas

"matteo" <matteom@avanade.com> wrote in message
news:3d89db82.0407190952.3a3651b9@posting.google.com...
> Hi all,
> does anyone have a BNF grammar spec for Cobol AS/400?
> TIA
> Matteo



Thomas A. Li

2004-08-23, 3:55 pm

Check out www.corporola.com for COBOL 74/85 BNF in HTML format.
A computer readable format is also available in cobol2java translator.
There are BNF reader, parser and COBOL to Java translator available.

Thomas

"matteo" <matteom@avanade.com> wrote in message
news:3d89db82.0407190952.3a3651b9@posting.google.com...
> Hi all,
> does anyone have a BNF grammar spec for Cobol AS/400?
> TIA
> Matteo



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com