# BNF Grammar

**URL:** <https://techcommunity.softwareag.com/t/bnf-grammar/76527>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-News-and-General-Topics, Natural-on-Windows-Unix, Adabas-Natural-Cloud\
**Created:** [April 9, 2008, 4:14pm UTC](https://techcommunity.softwareag.com/t/bnf-grammar/76527 "2008-04-09T16:14:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vpapinwar](https://avatars.discourse-cdn.com/v4/letter/v/8491ac/32.png) [@vpapinwar](https://techcommunity.softwareag.com/u/vpapinwar)\
**Post date:** [April 9, 2008, 4:14pm UTC](https://techcommunity.softwareag.com/t/bnf-grammar/76527/1 "2008-04-09T16:14:30Z")

</div>

Hi,

Can anybody please help me to find out the BNF Grammar link for Natural.

I want to write a parser for Natural-Adabas on Mainframe. For that I need BNF Grammar for Natural-Adabas.

Also is there any parser available for Natural-Adabas ?

My purpose behind this is to Create Code Documentation so that it will help to maintain the code.

Thanks !!

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [April 9, 2008, 9:14pm UTC](https://techcommunity.softwareag.com/t/bnf-grammar/76527/2 "2008-04-09T21:14:54Z")

</div>

> [@vpapinwar](#):
>
> For that I need BNF Grammar for Natural-Adabas.

The documentation of Natural contains a kind of grammar description. For example: [http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat424mf/sm/examine.htm#syntax1\_examine](http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat424mf/sm/examine.htm#syntax1_examine)

> [@](#):
>
> I want to write a parser for Natural-Adabas on Mainframe.

Well, good look!

---

<div class="post-metadata">

**Author:** ![Baxter](https://avatars.discourse-cdn.com/v4/letter/b/b2d939/32.png) [@Baxter](https://techcommunity.softwareag.com/u/Baxter)\
**Post date:** [April 10, 2008, 2:48am UTC](https://techcommunity.softwareag.com/t/bnf-grammar/76527/3 "2008-04-10T02:48:37Z")

</div>

Hi,

its not really a link to the bnf of natural but here is a pretty good natural parser

[http://www.cocolab.com/en/parse\_natural.html](http://www.cocolab.com/en/parse_natural.html)

i tried it myself creating a pgm to convert natural to [vb.net](http://vb.net). afaik it runs on windows.

basis for my [vb.net](http://vb.net) conversion was the xml-tree (for a program) produced by this parser.

hth  
Baxter

---

<div class="post-metadata">

**Author:** ![vpapinwar](https://avatars.discourse-cdn.com/v4/letter/v/8491ac/32.png) [@vpapinwar](https://techcommunity.softwareag.com/u/vpapinwar)\
**Post date:** [April 16, 2008, 5:36pm UTC](https://techcommunity.softwareag.com/t/bnf-grammar/76527/4 "2008-04-16T17:36:37Z")

</div>

Thanx Baxter for your help.  
I downloaded the parser from specified link. But when I open one of my program in the parser(through open command), it’s saying “Error Tcl/Tk: Can’t find a usable init.tcl …”.  
I did’t find the any help file for how to use this parser.  
Kindly, could you please help me to resolve this. Attached is the error file created when I load the program for reference.

> [@Baxter](#):
>
> Hi,
> 
> its not really a link to the bnf of natural but here is a pretty good natural parser
> 
> [http://www.cocolab.com/en/parse\_natural.html](http://www.cocolab.com/en/parse_natural.html)
> 
> i tried it myself creating a pgm to convert natural to [vb.net](http://vb.net). afaik it runs on windows.
> 
> basis for my [vb.net](http://vb.net) conversion was the xml-tree (for a program) produced by this parser.
> 
> hth  
> Baxter

[error.txt](https://techcommunity.softwareag.com/uploads/short-url/5hB2lagdv63OahZAU5sP94UfN9k.txt) (148 KB)

---

<div class="post-metadata">

**Author:** ![Baxter](https://avatars.discourse-cdn.com/v4/letter/b/b2d939/32.png) [@Baxter](https://techcommunity.softwareag.com/u/Baxter)\
**Post date:** [April 16, 2008, 9:52pm UTC](https://techcommunity.softwareag.com/t/bnf-grammar/76527/5 "2008-04-16T21:52:32Z")

</div>

Hello vpapinwar,

i don’t know why, but i received an email-notification of your posting vom 9th of april just today. anyway.

Did you install or have you alreday installed the tcl/tk? afaik this is required software for the parser but it is not included in the install-package, due to licence issues.

google for “tcl/tk” and “download”. it’s an open-source (free of charge) package.

to avoid further problems with the installation and to get a quick overview you can try to ask the author if he is able to translate a sample program for you into xml.

greetinx  
Baxter

---

<div class="post-metadata">

**Author:** ![Karlheinz\_Kronauer](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/karlheinz_kronauer/32/134_2.png) [@Karlheinz\_Kronauer](https://techcommunity.softwareag.com/u/Karlheinz_Kronauer)\
**Post date:** [July 30, 2008, 3:55pm UTC](https://techcommunity.softwareag.com/t/bnf-grammar/76527/6 "2008-07-30T15:55:14Z")

</div>

Hello vpapinwar,  
if you like to create code docuementation you really dont need  
to write a parser. Contact your local Software AG office and  
ask for a copy of Natural Engineer, that generates the code documentation and more automatically. So you need not  
spend time in writing parsers, that have been done by  
Natural specialosts already.  
regards Karlheinz

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:49pm UTC](https://techcommunity.softwareag.com/t/bnf-grammar/76527/7 "2021-04-02T14:49:20Z")

</div>


