Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Parsing BNF syntax diagrams..

by dragonchild (Archbishop)
on Aug 20, 2004 at 14:17 UTC ( #384599=note: print w/replies, xml ) Need Help??


in reply to Parsing BNF syntax diagrams..

If I remember correctly, BNF is a standard way of defining commands'n'options. So, there should be a BNF parser somewhere which would parse to a standard data structure. You should be able to take the data structure and convert it into something the DB2 would understand.

Sorry if I'm not more help, but I'm still not sure what you're trying to transform the BNF into ...

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

I shouldn't have to say this, but any code, unless otherwise stated, is untested

Replies are listed 'Best First'.
Re^2: Parsing BNF syntax diagrams..
by castaway (Parson) on Aug 20, 2004 at 15:01 UTC
    Sorry if that wasn't clear. I'd like to have a BNF (preferably something Parse::RecDescent likes), out of these silly diagrams.. With that I would then parse actual DB2 SQL.

    C.

      I have a vague recollection that many moons ago the early DB2 docs contained real EBNF diagrams. I would not be at all surprised if somewhere in IBM there is tool (that the author is no doubt very proud of :), that takes EBNF syntax as input and produces these diagrams as output.

      It just might be worth contacting your local friendly IBM support person and asking if there is any chance of tracking the EBNF down.


      Examine what is said, not who speaks.
      "Efficiency is intelligent laziness." -David Dunham
      "Think for yourself!" - Abigail
      "Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://384599]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2019-08-26 06:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?