예제 #1
0
 private final int makeToken(int id, String text) {
   currentToken.id = id;
   currentToken.lookback = id;
   currentToken.text = text;
   return id;
 }
예제 #2
0
 private final int makeToken(int id) {
   currentToken.id = id;
   currentToken.lookback = id;
   currentToken.text = null;
   return id;
 }
예제 #3
0
 private final int makeCommentToken(int id, String text) {
   currentToken.id = id;
   // leave currentToken.lookback alone, comments dont count.
   currentToken.text = text;
   return id;
 }