diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-01 16:35:47 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 09:26:37 +0200 |
commit | 4a4e5ad3c50619ad7653b01b562af9794c97aa80 (patch) | |
tree | 3feef6e7889e5673f7212d2f3ff2c34ca871b7ab /build2/test/script/script.ixx | |
parent | 89f8e08550d437eedd16f6aa0cc5333a7db75bea (diff) |
Implement command-pipe, command-expr in testscript parser
Diffstat (limited to 'build2/test/script/script.ixx')
-rw-r--r-- | build2/test/script/script.ixx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/build2/test/script/script.ixx b/build2/test/script/script.ixx index 2e215da..c156ec1 100644 --- a/build2/test/script/script.ixx +++ b/build2/test/script/script.ixx @@ -28,12 +28,33 @@ namespace build2 inline command_to_stream operator| (command_to_stream x, command_to_stream y) {return x |= y;} + + // command + // inline ostream& operator<< (ostream& o, const command& c) { to_stream (o, c, command_to_stream::all); return o; } + + // command_pipe + // + inline ostream& + operator<< (ostream& o, const command_pipe& p) + { + to_stream (o, p, command_to_stream::all); + return o; + } + + // command_pipe + // + inline ostream& + operator<< (ostream& o, const command_expr& e) + { + to_stream (o, e, command_to_stream::all); + return o; + } } } } |