diff options
-rw-r--r-- | src/main/java/org/anarres/cpp/InputLexerSource.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/anarres/cpp/InputLexerSource.java b/src/main/java/org/anarres/cpp/InputLexerSource.java index 62612d7..8064a9a 100644 --- a/src/main/java/org/anarres/cpp/InputLexerSource.java +++ b/src/main/java/org/anarres/cpp/InputLexerSource.java @@ -45,8 +45,12 @@ public class InputLexerSource extends LexerSource { this(new InputStreamReader(input, charset)); } + public InputLexerSource(@Nonnull Reader input, boolean ppvalid) { + super(input, true); + } + public InputLexerSource(@Nonnull Reader input) { - super(toBufferedReader(input), true); + this(input, true); } @Override |