Is JCL LALR(1) ?  If not, I believe you will have to use a different parser
generator, perhaps ANTLR.

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED]
Behalf Of John McKown
Sent: Friday, August 22, 2008 9:06 AM
To: [email protected]
Subject: JCL parser


Just to prove that I am indeed insane, I am attempting to write a JCL 
parser using the "flex" (lexical analyzer generator) and "bison" (parser 
generator) programs on Linux. Again, this is just so that I can learn how 
to use those tools, not for anything necessarily productive. However, on 
the off chance that I actually succeed, does anybody think that donating 
this to the CBT would be worth while? If so, what should the parser output 
be? I was thinking either a tree structure which describes the JCL, or 
maybe the JCL converted to an XML format output. What say ye?

-- 
Q: What do theoretical physicists drink beer from?
A: An EIN stein.

Maranatha!
John McKown

----------------------------------------------------------------------
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

----------------------------------------------------------------------
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