public IntSet getTokenTypes() {
		if ( isLexer() ) {
			return getAllCharValues();
		}
		return IntervalSet.of(Token.MIN_USER_TOKEN_TYPE, getMaxTokenType());
	}
Return a set of all possible token or char types for this grammar
tool/src/org/antlr/v4/tool/Grammar.java