blob: e2fbbb319ab047be8a870832079f0853c50e30d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#include "lex.h"
#include "parse.h"
#include "typeutils.h"
DECLARE_VEC(char*, StdStrVec)
typedef struct {
QuotationMode qmode;
char* content;
} ExpandedChunk;
ExpandedChunk expand_chunk(Chunk chunk) {
char* content;
if (chunk.qmode == SINGLE_Q || chunk.kind == LITERAL) {
if (chunk.qmode == SINGLE_Q && chunk.kind != LITERAL) exit(69);
content = chunk.as.literal_str;
} else if (chunk.kind == VAR_EXP) {
// TODO: we need a ShellState to query
}
match (chunk.kind) {
case L
}
switch (chunk.qmode) {
case SINGLE_Q:
}
}
void run_pipeline(Pipeline pl) {
}
|