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.

Reply via email to