IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

JCL Context Free Grammar


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
alumman

New User


Joined: 25 Apr 2014
Posts: 2
Location: US

PostPosted: Mon Apr 28, 2014 6:14 pm
Reply with quote

Anyone have a source for a context free grammar for JCL?

Thanks!!
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Apr 28, 2014 6:35 pm
Reply with quote

it will be very difficult to write a context free grammar
for a language that is NOT context free
Back to top
View user's profile Send private message
alumman

New User


Joined: 25 Apr 2014
Posts: 2
Location: US

PostPosted: Mon Apr 28, 2014 6:48 pm
Reply with quote

Can you explain why JCL is not context free please?

Please excuse my ignorance; its been a long time since my language theory classes in school.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Apr 28, 2014 7:09 pm
Reply with quote

positional attributes/parms for example
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Mon Apr 28, 2014 7:27 pm
Reply with quote

Please excuse my ignorance as well, but...

What is this grammar, with regards to JCL or any computer language?

What does context free grammar mean as well?

I know JCL pretty well, I learned it on punch cards in 1984!
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Mon Apr 28, 2014 8:48 pm
Reply with quote

For a computer language, a grammar is a set of rules on how to produce strings in the language. There is no meaning attached to those strings -- the grammar merely describes how to produce the various language strings.

A context-free grammar is one where the context doesn't matter to the language generation; since JCL contains positional parameters (where context DOES matter), it cannot be context-free.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Apr 29, 2014 1:03 am
Reply with quote

You might be interested in

dinosaur.compilertools.net

memphis.compilertools.net
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts LMDINIT/LIST/FREE Looping problem TSO/ISPF 12
No new posts Am I missing something on "FREE ... CLIST & REXX 10
No new posts CICS exhausted FREE OSCOR CICS 0
No new posts How to free (unalloc) data sets and d... TSO/ISPF 4
No new posts VSAM File free space JCL & VSAM 14
Search our Forums:

Back to Top