public IoToken grabTokenType(IoTokenType type) { int len = grabLength(); string s1 = s.Substring(lastPos(), len); if (len == 0) { throw new Exception("IoLexer fatal error: empty token\n"); } return addTokenStringType(s1, type); }