https://javacc.dev.java.net/issues/show_bug.cgi?id=229 Issue #|229
Summary|Token class does not provide character offset, only li
|ne and column number
Component|javacc
Version|4.2
Platform|All
OS/Version|All
URL|
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|ENHANCEMENT
Priority|P3
Subcomponent|scanner generator
Assigned to|sreeni
Reported by|aradzivanovich
------- Additional comments from
aradzivanovich@... Mon Aug 10 12:56:11 +0000 2009 -------
It would be nice to get character offset of a token in a source file.
Please consider the following API:
public class Token {
...
/** Index of the first character of this Token. */
public int beginOffset;
/** Index of the last character of this Token. */
public int endOffset;
/** The line number of the first character of this Token. */
public int beginLine;
/** The column number of the first character of this Token. */
public int beginColumn;
/** The line number of the last character of this Token. */
public int endLine;
/** The column number of the last character of this Token. */
public int endColumn;
---------------------------------------------------------------------
To unsubscribe, e-mail:
issues-unsubscribe@...
For additional commands, e-mail:
issues-help@...