def p_list(p):
    """list : identifier type
			| list "," identifier type"""
    if len(p) == 3:
        p[0] = [{'name': p[1], 'type': p[2]}]
    elif isinstance(p[1], list):
        p[1].append({'name': p[3], 'type': p[4]})
        p[0] = p[1]
    else:
        p[0] = None
