summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/main.c b/main.c
index e2414d5..b64e889 100644
--- a/main.c
+++ b/main.c
@@ -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;