From 9964a9aca03b38c2959994e0fdc91014da252cb8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 20 Nov 2017 13:11:59 +0200 Subject: Implement dump directive It can be used to print (to stderr) a human-readable representation of the current scope or a list of targets. For example: dump # Dump current scope. dump lib{foo} details/exe{bar} # Dump two targets. This is primarily useful for debugging as well as to write build system tests. --- build2/parser.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'build2/parser.hxx') diff --git a/build2/parser.hxx b/build2/parser.hxx index ce9ad2f..3c51801 100644 --- a/build2/parser.hxx +++ b/build2/parser.hxx @@ -85,6 +85,9 @@ namespace build2 parse_diag (token&, token_type&); void + parse_dump (token&, token_type&); + + void parse_source (token&, token_type&); void -- cgit v1.1