def p_variables(p):
    """
    variables : variables variable
              | variable ESC
              | variable
    """
    if len(p) == 3 and isinstance(p[2], dict):
        collection = p[1]
        variable = p[2]
    else:
        variable = p[1]
        collection = dict()
    collection.setdefault(variable['path'], list())
    collection[variable['path']].append(variable)
    p[0] = collection
