[Issue 229] New - Token class does not provide character offset, only line and column number

View: New views
2 Messages — Rating Filter:   Alert me  

[Issue 229] New - Token class does not provide character offset, only line and column number

by aradzivanovich :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...


[Issue 229] Token class does not provide character offset, only line and column number

by aradzivanovich :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://javacc.dev.java.net/issues/show_bug.cgi?id=229






------- Additional comments from aradzivanovich@... Sat Oct 17 14:44:41 +0000 2009 -------
By the way, this issue has been fixed in a derived javacc version, which you can
find at github: http://github.com/aradzie/javaccng

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...