diff options
author | gjoranv <gv@oath.com> | 2018-08-27 12:11:14 +0200 |
---|---|---|
committer | gjoranv <gv@oath.com> | 2018-08-27 12:13:13 +0200 |
commit | b0c02126f823f36555e634dedfa89ac2aeea8eef (patch) | |
tree | 12172d24a032e8f6c0893e45f047e32c1f6ea75e /vespajlib | |
parent | 7dc45579bfc175c4e53ca07420697da94165e7a9 (diff) |
Replace old javacc-plugin with ph-javacc-maven-plugin.
Diffstat (limited to 'vespajlib')
-rw-r--r-- | vespajlib/src/main/java/com/yahoo/javacc/FastCharStream.java | 10 |
1 files changed, 10 insertions, 0 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..87abd926bb1 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; @@ -75,6 +77,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) { |