public boolean type(Record record) throws IOException { // <type> -> real | integer | id

		error = skipErrors(union(FIRST_type, FOLLOW_type));

		if (lookahead.belongsTo(FIRST_type_RHS1)) {

			boolean c1 = match("REAL");
			
			record.setType("real");
			
			if (c1)
				pw.println("<type> -> real");
			
			else
				error = false;

		}

		else if (lookahead.belongsTo(FIRST_type_RHS2)) {

			boolean c1 = match("INTEGER");
			
			record.setType("integer");
			
			if (c1)
				pw.println("<type> -> integer");

			else
				error = false;

		}

		else if (lookahead.belongsTo(FIRST_type_RHS3)) {

			boolean c1 = match("ID");
			
			record.setType(lastLexeme);
			
			if (c1)
				pw.println("<type> -> id");

			else
				error = false;

		}
		
		else
			error = false;

		return error;

	}