bool checkSingle(String ch, String test, TokenType type) { if (ch == test) { token = test; this.type = type; return true; } return false; }