[antlr-interest] Lexer

Martin Probst mail at martin-probst.com
Tue Apr 18 10:36:15 PDT 2006


I think it's called istringstream.

Am 18.04.2006 um 14:42 schrieb Bryan Ewbank:

> Take a look at the C++ string stream stuff; it allows a string to
> masquerade as a stream.  It's not an ANTLR-specific change, but a
> general technique in C++.
>
> Hope this helps,
> - Bryan
>
> On 4/18/06, Henry Butowsky <henryb at ntlworld.com> wrote:
>> Hi Guys,
>>    Im using Antlr 2.7.5 in C++.
>>    How do I get the lexer to read from a string rather than a file ?
>> I've been looking at CharScanner class but nothing immediatly springs
>> to mind. Im a bit of a newbie when it comes to C++ things
>



More information about the antlr-interest mailing list