> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Armstrong
> Sent: Thursday, August 28, 2008 6:23 AM
> To: [email protected]
> Subject: Re: JCL parser
> 
> You're not the only insane one! I've already written a JCL 
> parser in Rexx
> (JCL2XML) as part of CBT File 647 (XML Parser in Rexx). I 
> wonder whether
> 'flex' is flexible enough to cope with the relatively 
> complicated JCL line
> continuation rules. Sure gave me some grief in Rexx!

Actually, continuation is simple. I defined YY_INPUT so that it reads
all the physical lines in a logical JCL statement and presents "pure"
JCL (the "logical" JCL statement, so to speak) to its caller. No
continuations, no JCL comments, etc. Makes parsing much easier. At
present, I'm stuck in that I am too ignorant. I have many shift/reduce
errors, likely because my Bison input is not properly formed. But work
just picked up, so this is once again "on the shelf" until I have some
time.

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it.  

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to