예제 #1
0
 /**
  * Gets the special type for a special char.
  *
  * @param c the character input.
  * @return the corresponding type, or {@link LexerKernel#TYPE_UNKNOWN} if no type.
  */
 protected int getSpecialType(char c) {
   if (!kernel.getSpecialDelimTable().containsKey(c)) return TYPE_UNKNOWN;
   return kernel.getSpecialDelimTable().get(c);
 }
예제 #2
0
 /**
  * Checks if this is a character that starts a special token.
  *
  * @param c the character to test.
  * @return true if so, false if not.
  */
 protected boolean isSpecialStart(char c) {
   return kernel.getSpecialDelimTable().containsKey(c);
 }