private Type parseType() {
		//System.out.println("parseType");
		Type node;
		switch(showNext().getKind()) {
		case "ident":
			node = new NamedType(new Identifier(acceptIt()));
			break;
		case "array":
			node = parseArrayType();
			break;
		case "record":
			node = parseRecordType();
			break;
		default:
			node = null;
			this.console.setText(this.console.getText() + "<br>parsing error for type around l"+showNext().getPos()[0]+"c"+showNext().getPos()[1]);
			break;
		}
		return node;
	}