matching and parsing commands



Hi,
I have list of commands that needs to be called.I am calling the commands in
through multiple scripts.The number of commands are quite large and some commands have multiple options and parameters.
I wanted to verify now whether my scripts covers all the commands and its available options.
So if I do it manually I have to do the following things -
- open each script file manually
- pick the command and see it matches with one of the commands from the command list.(Command list is the original list of commands and options)
- repeat the above for all commands in the scripts.

I can implement the above steps in perl but the complexity is there in matching.
If I use regular expressions for command matching, I have to write regular expressions for
each command and its options.In my case it's a very large number.

Is it possible to write some kind of grammars for the command and parse it ?
Is Lex and Yacc are of any help here ?

Regards,
Alok



---------------------------------
Never miss a thing. Make Yahoo your homepage.

Relevant Pages

  • Re: [SLE] Wireless Internet at public hotspots -- update
    ... You can create multiple versions, ... You could use the ifdown and ifup commands. ... What I see from ifconfig is that eth1 will show an IP ... > showing me an IP that wasn't really assigned by DHCP? ...
    (SuSE)
  • question regarding cacheline size
    ... This is for PCMCIA version of Silicon Image 3124 SerialATA controller. ... When cacheline size is configured, the controller uses Read Multiple commands. ... The SiI3124, when initiating a read transaction, will issue the Read Multiple PCI command if empty space in its FIFO is greater than the value programmed in this register. ... For all involved commands - memory read line, memory read multiple and memory write and invalidate - a value larger than actual cacheline size doesn't hurt but a smaller value may. ...
    (Linux-Kernel)
  • Re: effing Nader
    ... >>>Typing a few simple commands is much faster than multiple clicks on ... >>>the commands the first time. ... If you're working only with graphics files, ... range of batch processing capabilities, and you can LOOK at the pics too! ...
    (rec.arts.sf.fandom)
  • Re: how to run interp on multiple inputs?
    ... but couldn't get my fileevent to happen. ... Testing whether multiple ... If your commands can't manage concurrency, I want to learn that before ... > eval when a complete command has been received all in tcl-land, ...
    (comp.lang.tcl)
  • Re: effing Nader
    ... >>Typing a few simple commands is much faster than multiple clicks on ... >>the commands the first time. ... > to select pictures of cats from the JPG pictures from a camera. ... interface isn't better for certain things - namely graphics. ...
    (rec.arts.sf.fandom)