[antlr-interest] Lexer

Bryan Ewbank ewbank at gmail.com
Tue Apr 18 05:42:42 PDT 2006


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