Dear Friends,
I am struck up with logic. I am using one class(BMSLexer) which takes filename as arugument and the instance of the class is used my another class. example is shown below.
Now my requirement is parser should have a functionality in such a way that parser class should parse the file with the existing lexer funtionality and lexer class should have constructor with no arguments. Nxet when i call from Test calls by instancing the parser then i wil pass filename.
string inputFile = @"C:\test.tx t";
System.IO.FileS tream fs = new System.IO.FileS tream(inputFile , System.IO.FileM ode.Open);
Worksoft.Parser s.BMSLexer lexer = new Worksoft.Parser s.BMSLexer(fs);
Worksoft.Parser s.BMSParser parser = new Worksoft.Parser s.BMSParser(lex er);
string test = parser.parse();
--
Thanks & Regards,
P.Srinivasa Dinesh,
Developer,
ECMI.
Internet : sp********@work soft.com
sr************* ****@ecm-i.com
Mobile No: +91-9850607089.