diff options
author | Shevek <[email protected]> | 2017-05-15 11:50:41 -0700 |
---|---|---|
committer | Shevek <[email protected]> | 2017-05-15 11:50:41 -0700 |
commit | 547134e1cbb29bb51a75781f559243fcea8f3860 (patch) | |
tree | 4c970763cf5d71ed5a60062478f39bce7ef18c1f | |
parent | 6f8e7f6010cf1502110830c2c9d979ba59feace7 (diff) |
InputLexerSource: Don't force buffering of the reader.
-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 |