org.anarres.cpp
Class StringLexerSource
java.lang.Object
org.anarres.cpp.Source
org.anarres.cpp.LexerSource
org.anarres.cpp.StringLexerSource
- All Implemented Interfaces:
- Closeable, Iterable<Token>
public class StringLexerSource
- extends LexerSource
A Source for lexing a String.
This class is used by token pasting, but can be used by user
code.
StringLexerSource
public StringLexerSource(String string,
boolean ppvalid)
throws IOException
- Creates a new Source for lexing the given String.
- Parameters:
ppvalid
- true if preprocessor directives are to be
honoured within the string.
- Throws:
IOException
StringLexerSource
public StringLexerSource(String string)
throws IOException
- Creates a new Source for lexing the given String.
By default, preprocessor directives are not honoured within
the string.
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2007 Shevek, Anarres. All Rights Reserved.