diff options
author | Henning Baldersheim <balder@oath.com> | 2018-08-28 15:34:32 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@oath.com> | 2018-08-28 15:34:32 +0200 |
commit | 9ae2e92efcfa3a95a6bd988dc7e34d7c84350289 (patch) | |
tree | c2258436828f9ca8768bd3c43fef6d14109015e1 /vespajlib/src/main/java/com/yahoo/javacc/FastCharStream.java | |
parent | 7b6562b9b1e9da14386118826e7936ff5b8b5788 (diff) | |
parent | 2a606fb630519aaca8885a46b9b2d6b20c99afd2 (diff) |
Merge branch 'balder/update-attributes' of github.com:vespa-engine/vespa into balder/update-attributes
Diffstat (limited to 'vespajlib/src/main/java/com/yahoo/javacc/FastCharStream.java')
-rw-r--r-- | vespajlib/src/main/java/com/yahoo/javacc/FastCharStream.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/javacc/FastCharStream.java b/vespajlib/src/main/java/com/yahoo/javacc/FastCharStream.java index 4084115eb8f..57376734030 100644 --- a/vespajlib/src/main/java/com/yahoo/javacc/FastCharStream.java +++ b/vespajlib/src/main/java/com/yahoo/javacc/FastCharStream.java @@ -14,6 +14,8 @@ public class FastCharStream { private final char[] inputArr; private int tokenPos = 0; private int readPos = 0; + private int tabSize = 1; + private boolean trackLineColumn = true; public FastCharStream(String input) { this.inputStr = input; @@ -27,16 +29,6 @@ public class FastCharStream { return inputArr[readPos++]; } - @Deprecated - public int getColumn() { - return getEndColumn(); - } - - @Deprecated - public int getLine() { - return getEndLine(); - } - public int getEndColumn() { return readPos + 1; } @@ -75,6 +67,14 @@ public class FastCharStream { } + public void setTabSize(int i) { tabSize = i; } + + public int getTabSize() { return tabSize; } + + public void setTrackLineColumn(boolean tlc) { trackLineColumn = tlc; } + + public boolean getTrackLineColumn() { return trackLineColumn; } + public String formatException(String parseException) { int errPos = findErrPos(parseException); if (errPos < 0 || errPos > inputArr.length + 1) { |