Input to the parser from a char buffer
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, May 16, 2001 09:48 AM

Hi,

I would like to know how I can input a message
to the parser, where the message is stored in
a character buffer ? My program is in cpp.

The above situation has come about because I am
trying to write a parser to parse messages received
from the network.

Anand

Re: Input to the parser from a char buffer

Posted By:   Ric_Klaren  
Posted On:   Thursday, May 31, 2001 02:12 AM

use istringstream. Depending on how much copying you have to do you could also try making your own InputBuffer derivative and instantiating the Lexer with that one.

About | Sitemap | Contact