Class StringLexerSource
java.lang.Object
io.github.ocelot.glslprocessor.lib.anarres.cpp.Source
io.github.ocelot.glslprocessor.lib.anarres.cpp.LexerSource
io.github.ocelot.glslprocessor.lib.anarres.cpp.StringLexerSource
A Source for lexing a String.
This class is used by token pasting, but can be used by user code.
-
Constructor Summary
ConstructorsConstructorDescriptionStringLexerSource(String string) Creates a new Source for lexing the given String.StringLexerSource(String string, boolean ppvalid) Creates a new Source for lexing the given String. -
Method Summary
Methods inherited from class io.github.ocelot.glslprocessor.lib.anarres.cpp.LexerSource
getColumn, getLine, token
-
Constructor Details
-
StringLexerSource
Creates a new Source for lexing the given String.- Parameters:
string- The input string to lex.ppvalid- true if preprocessor directives are to be honoured within the string.
-
StringLexerSource
Creates a new Source for lexing the given String.Equivalent to calling
new StringLexerSource(string, false).By default, preprocessor directives are not honoured within the string.
- Parameters:
string- The input string to lex.
-
-
Method Details