01: package ro.infoiasi.donald.compiler.lexer;
02:
03: abstract class ExpToken {
04: /** The input string index of this tooken */
05: private int strI;
06: /** The number of this token */
07: private int tokNo;
08:
09: ExpToken(int strI, int tokNo) {
10: this .strI = strI;
11: this .tokNo = tokNo;
12: }
13:
14: void incTokenNo() {
15: tokNo++;
16: } // !!!fix: if i concat then order changes a little
17:
18: public int strIndex() {
19: return strI;
20: }
21:
22: public int tokenNo() {
23: return tokNo;
24: }
25: }
|