diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -7,27 +7,6 @@ #include "parse.h" #include "exec.h" -void uglyprint_pl(Pipeline pl) { - for (int i = 0; i < pl.count; i++) { - printf("%d\n", i); - TokenVec toks = (*get_from_Pipeline(&pl, i)).cmd.args; - for (int j = 0; j < toks.count; j++) { - Token tok = *get_from_TokenVec(&toks, j); - if (tok.kind != TOK_WORD) { - printf(" [NON-WORD] "); - continue; - } - Word word = tok.as.word; - for (int k = 0; k < word.count; k++) { - Chunk chunk = *get_from_Word(&word, k); - if (chunk.kind == LITERAL) { - printf("%s", chunk.as.literal_str); - } - } - } - } -} - int main() { char* line; |
