If I have multiple tokens, how can I fix this code such that I can easily access the previous dep and rule spaces?
 token = strtok(line, " ");
    while (token != NULL){
        Dependency *dep = malloc(sizeof(Dependency));
        if (dep == NULL){
            perror("malloc");
            exit(1);
        }
        Rule *rule = malloc(sizeof(Rule));
        if (rule == NULL){
            perror("malloc");
            exit(1);
        }
        rule->target = token;
        dep->rule = rule;
    }
