shell testing.

This commit is contained in:
Kelvin Sherlock 2016-01-31 00:41:30 -05:00
parent e4a124f514
commit 58301861a3
1 changed files with 9 additions and 1 deletions

View File

@ -68,13 +68,21 @@ int main(int argc, char **argv) {
phase1 p1;
phase2 p2;
p1 >>= p2;
p2 >>= [](command_ptr &&ptr) {
printf("command: %d\n", ptr->type);
ptr->execute();
};
/*
p1 >>= [&p2](std::string &&s) {
fprintf(stdout, " -> %s\n", s.c_str());
p2.process(s);
};
*/
read_stdin(p1);
p2.finish();
/*
try {