aboutsummaryrefslogtreecommitdiff
path: root/build2/parser.hxx
AgeCommit message (Collapse)AuthorFilesLines
2018-05-19Update copyright yearKaren Arutyunov1-1/+1
2018-05-03Regularize directory target/scope-specific variable assignment syntaxBoris Kolpackov1-1/+4
2018-04-26Implement run buildfile directiveBoris Kolpackov1-0/+13
Now we can do: run echo 'foo = bar' print $foo
2017-11-20Implement dump directiveBoris Kolpackov1-0/+3
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.
2017-11-09Add support for for-loopBoris Kolpackov1-0/+3
The semantics is similar to the C++11 range-based for: list = 1 2 3 for i: $list print $i Note that there is no scoping of any kind for the loop variable ('i' in the above example). See tests/loop/for.test for some examples/ideas. In the future the plan is to also support more general while-loop as well as break and continue.
2017-11-09Initial support for prerequisite-specific variables, use for bin.wholeBoris Kolpackov1-5/+8
2017-07-19Add support for fail, warn, info, text directivesBoris Kolpackov1-0/+3
2017-05-25Implement parsing of C++ module declarationsBoris Kolpackov1-0/+1
2017-05-01Add hxx extension for headersKaren Arutyunov1-0/+593