private static void makeNewType(Token line, AbstractFrame frame) throws ArrayIndexOutOfBoundsException, IllegalArgumentException, InterpreterException {
if (!(line = line.getNextToken()).getCarType().equals(identifierType))
throw new UnexpectedTokenException("Expected an identifier, got a " + line.getCarType() + ". " + line.toString());
String type = (String) line.getCar();
frame.addType(type, new InterpreterClass(type, line.getNextToken(), frame));
}