Syntax - "Short and sweet"

From: William M. Klein (wmklein_at_nospam.netcom.com)
Date: 03/31/04


Date: Wed, 31 Mar 2004 01:12:25 GMT

Given all the other notes and threads, I thought that others may miss the
following quote from the 2002 Standard which I included in response to another
note,

"There are rules in standard COBOL that are not identified as general formats or
syntax rules, but nevertheless specify elements that are syntactically
distinguishable. This warning mechanism shall indicate violations of such rules.
For elements not specified in general formats or in explicit syntax rules, it is
left to the implementor's judgement to determine what is syntactically
distinguishable."

Please read and understand (as far as STANDARD COBOL goes) that last part which
says,

"it is left to the implementor's judgement to determine what is syntactically
distinguishable."

Hopefully, this will terminate any discussion about what the Standard "requires"
or "allows". If others want to discuss what "syntax rules" are/mean in a
NON-STANDARD context for COBOL, please feel free to do so. I assume their
sources and references to support almost all of the views that have been stated
in the recent threads. As long as it is clear that we are not talking about
ANSI/ISO Standard COBOL, then I am totally comfortable (personally) with anyone
saying that something is or is not a "valid" syntax error.

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


Relevant Pages

  • Re: Syntax ???
    ... The following is from the 2002 ISO Standard (and really did NOT have an exact ... Syntax rules supplement general formats, identify equivalent words, and define ... formats and the explicit syntax rules of standard COBOL. ... violations of the set of conformance rules specified in 14.7, ...
    (comp.lang.cobol)
  • Re: COBOL subscript range checking
    ... I think you are just trying to turn the Standard into saying something that it ... as general formats or syntax rules, ... not specified in general formats or in explicit syntax rules, ... There are general rules in standard COBOL that could have ...
    (comp.lang.cobol)
  • Re: Syntax (was: Perfrom Thru
    ... " A) It conforms to the "syntactic specifications" of the Standard (these ... include but are NOT limited to items labeled "Syntax Rules" and "General Rules" ...
    (comp.lang.cobol)
  • Re: Syntax (was: Perfrom Thru
    ... > AND if it also isues a syntax error or extension message for violations of the ... > Standard "Syntax Rules" and "General Formats".' ... >> 'If that is the case then a compiler which returns a syntax error for code ...
    (comp.lang.cobol)
  • Re: Syntax (was: Perfrom Thru
    ... 'It is ture that a vendor's implementation '...MUST include the "Syntax Rules" ... AND if it also isues a syntax error or extension message for violations of the ... Standard "Syntax Rules" and "General Formats".' ... The translation of a conforming compilation group by a conforming implementation ...
    (comp.lang.cobol)