Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Syntax (another approach/thread)
I thought that I would start another thread on the whole issue of "syntax".
Maybe this approach will help clarify MY position (and I think that of some
others).

The underlying problem seems to be that some people would LIKE for the COBOL
Standard to specify when source code is "guaranteed" to compile without any
syntax errors - if compiled by a "conforming compiler" with its "conformance
options" turned on.  And/or they would like the Standard to "define" what ma
y
and may not be issued as a "syntax error".

I do NOT think you are ever going to get anyone who has worked closely with 
the
current (2002) or recent (1985) Standards to agree to this - no matter how y
ou
word it. (and even more unlikely to find any COBOL vendor to agree to this.)
  If
anyone following these threads can actually find some  place in the 2002
Standard (which cleared some of this up) that actually SAYS that, I would be
very interested in knowing where it is.

The current (and recent) Standards *DO* tell you when source code is
"guaranteed" to get an ERROR or an extension flagging message (if that is tu
rned
on) when compiled with a conforming compiler.  (Although even this has "slig
ht"
loop-hole in the area of "undocumented features" that are in the compiler bu
t
not officially supported by the vendor.  These may compile, get no extension
message and still violate the Standard.  However, this only occurs when the
feature is NOT supported by the vendor and not in their documentation as an
extension.)

The current (and recent) Standards simply place ZERO constraints on what
ADDITIONAL "syntax errors" (or other types of errors or messages) the compil
er
vendor may place on their CONFORMING implementation. (What the implementor C
ALL
the "messages" is UP TO THE VENDOR.)  As far as I can tell, the implementor 
may
document that source code must have an even number of lines of source code a
nd
if not a SYNTAX error will occur.  The vendor may state that their compiler 
will
only compile cleanly on Monday, Wednesdays, and Fridays, and issue a compile
r
SYNTAX error if you try and compile on other days of the w.  I don't see 
any
(successful) compiler vendor doing either of these, but there is simply NOTH
ING
in the Standard that prohibits this.

Now, this may not "match" the common usage of the words "syntax error" and i
t
certainly may not PLEASE all the readers of C.L.C. - but I simply find nothi
ng
in the current (2002) COBOL Standard to prohibit vendors implementing a COBO
L
compiler as "conforming" and placing WHATEVER constraints (called "syntax
errors" when detected at compile-time) on programs they wish and being a
conforming compiler.

--
Bill Klein
wmklein <at> ix.netcom.com



Report this thread to moderator Post Follow-up to this message
Old Post
William M. Klein
03-30-04 01:30 AM


Re: Syntax (another approach/thread)
In article <96AqC-h9flB@jpberlin-l.willms.jpberlin.de>,
Lueko Willms <l.willms@jpberlin.de> wrote:

[snip]

>  I beg all participants, especially DocDwarf, to stop nitpicking and
>quarelling about nothing.

Quite right... let's get back to discussing Important Things, like
paragraphs versus sections, when a GO TO is permitted and paragraph
numbers are unnecessary because one will never have to modify a 30-yr-old
check-writing program.

Some say 'the devil is in the details'... others, like van der Rohe, have
it that 'God is in the details'.  In either case the battle might be seen
as theological, sure, but taking a side, appropriately, becomes a
moderately curious... detail.

DD


Report this thread to moderator Post Follow-up to this message
Old Post
docdwarf@panix.com
04-03-04 01:30 PM


Re: Syntax (another approach/thread)
Am  30.03.04
schrieb  wmklein@nospam.netcom.com (William M. Klein)
auf  /COMP/LANG/COBOL
in  J73ac.7473$lt2.7325@newsread1.news.pas.earthlink.net
ueber  Syntax (another approach/thread)

WMK> The underlying problem seems to be that some people would LIKE for
WMK> the COBOL Standard to specify when source code is "guaranteed" to
WMK> compile without any syntax errors - if compiled by a "conforming
WMK> compiler" with its "conformance options" turned on.  And/or they
WMK> would like the Standard to "define" what may and may not be issued
WMK> as a "syntax error".

I think it is simply due to the fact that DocDwarf's COBOL compiler
simply flags an error by writing "SYNTAC ERROR!" instead of explaining
it.

When I was working with COBOL, I had compilers which would simply
differentiate between different levels of severity of the error,
issuing "W" as "Warning", "E" as "Error", and always pointing to what
the compiler identified as the erroneous statement.

The word "Syntax error" was not mentioned by the compiler, but to me
it signified that I has written a syntactically wrong statement, and
had to change my program, if I would like to have an operational
program to be used in the real world.

I beg all participants, especially DocDwarf, to stop nitpicking and
quarelling about nothing.



Lüko Willms                                     http://www.mlwerke.de
/--------- L.WILLMS@jpberlin.de -- Alle Rechte vorbehalten --

"Die Arbeit in weißer Haut kann sich nicht dort emanzipieren, wo sie
in schwarzer Haut gebrandmarkt wird."     - Karl Marx     12.11.1866

Report this thread to moderator Post Follow-up to this message
Old Post
Lueko Willms
04-10-04 12:30 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:41 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.