aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/build/script/parser.test.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-05-20 14:51:58 +0300
committerBoris Kolpackov <boris@codesynthesis.com>2020-05-27 08:35:29 +0200
commit7c8e544b520cc46c174a952e63ccd2d71002516d (patch)
tree09212fddbe15dc3e092cfefad2e17c86e13bad9b /libbuild2/build/script/parser.test.cxx
parent51ae6dcf64ce1de3f0f28228050c7db1776e5b1b (diff)
Partially implement dump(ostream,script::lines)
Diffstat (limited to 'libbuild2/build/script/parser.test.cxx')
-rw-r--r--libbuild2/build/script/parser.test.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/libbuild2/build/script/parser.test.cxx b/libbuild2/build/script/parser.test.cxx
index b5afd47..ab9935d 100644
--- a/libbuild2/build/script/parser.test.cxx
+++ b/libbuild2/build/script/parser.test.cxx
@@ -72,6 +72,18 @@ namespace build2
// argv[0] [-l]
// argv[0] -d
//
+ // In the first form read the script from stdin and trace the script
+ // execution to stdout using the custom print runner.
+ //
+ // In the second form read the script from stdin, parse it and dump the
+ // resulting lines to stdout.
+ //
+ // -l
+ // Print the script line number for each executed expression.
+ //
+ // -d
+ // Dump the parsed script to sdout.
+ //
int
main (int argc, char* argv[])
{