|
View previous topic :: View next topic
|
| Author |
Message |
alumman
New User
Joined: 25 Apr 2014 Posts: 2 Location: US
|
|
|
|
Anyone have a source for a context free grammar for JCL?
Thanks!! |
|
| Back to top |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10902 Location: italy
|
|
|
|
it will be very difficult to write a context free grammar
for a language that is NOT context free |
|
| Back to top |
|
 |
alumman
New User
Joined: 25 Apr 2014 Posts: 2 Location: US
|
|
|
|
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 |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10902 Location: italy
|
|
|
|
| positional attributes/parms for example |
|
| Back to top |
|
 |
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
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 |
|
 |
Robert Sample
Global Moderator

Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10902 Location: italy
|
|
| Back to top |
|
 |
|
|