Example #1
0
 @Override
 public Token LT(int i) {
   CommonToken t;
   int rawIndex = p + i - 1;
   if (rawIndex >= types.size()) t = new CommonToken(Token.EOF);
   else t = new CommonToken(types.get(rawIndex));
   t.setTokenIndex(rawIndex);
   return t;
 }
Example #2
0
 @Override
 public Token get(int i) {
   return new org.antlr.v4.runtime.CommonToken(types.get(i));
 }