Syntax ???
From: William M. Klein (wmklein_at_nospam.netcom.com)
Date: 03/17/04
- Next message: Richard: "Linux Cobol Compiler"
- Previous message: Ray Smith: "Re: GUI interface - how?"
- Next in thread: docdwarf_at_panix.com: "Re: Syntax ???"
- Reply: docdwarf_at_panix.com: "Re: Syntax ???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 17 Mar 2004 22:18:57 GMT
A follow-up on another thread.
As the '85 (much less '74) Standard does not "define" syntax, I wanted to add my
two (or more) cents to a discussion of what is and is not a "syntax error" in an
'85 Standard conforming compiler.
The Standard explicitly allows for an implementation to "set limits" of various
types (where the Standard has an "ellipsis" for multiple occurrences).
It would seem to me that if a vendor documents (for example) that they only
support 15 WHEN phrases in an EVALUATE statement, that coding 16 when statements
*is* a syntax error. (Hopefully, this isn't "too controversial" a view).
If a vendor documents that they only support 16M of Working-Storage, then I
would also state that if an application creates 16M + 1-byte, that this is a
"syntax error" - even if some of those "bytes" are due to "sync" clauses,
01-level boundaries or "non-visible to the programmer" issues.
Therefore, it would seem to me (and I do accept that this may be controversial)
that if a vendor documents that each paragraph in the procedure division may
result in "only" 1K of storage, that a program that "violates" this rule has
violated a "syntax rule (even if there is no way for the programmer to figure
out how to "code around" this restriction - by simply looking at source code).
If, on the other hand, the vendor does NOT document how large (object code) each
paragraph may be but "blows" registers (or whatever) at compile time, then I see
that as a "compiler error" - or - at least - not a syntax error.
OBVIOUSLY "your mileage may vary" <G>
-- Bill Klein wmklein <at> ix.netcom.com
- Next message: Richard: "Linux Cobol Compiler"
- Previous message: Ray Smith: "Re: GUI interface - how?"
- Next in thread: docdwarf_at_panix.com: "Re: Syntax ???"
- Reply: docdwarf_at_panix.com: "Re: Syntax ???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|