aboutsummaryrefslogtreecommitdiff
path: root/build2/lexer.hxx
AgeCommit message (Collapse)AuthorFilesLines
2019-05-10Generalize target/prerequisite var block, initial ad hoc target workBoris Kolpackov1-4/+4
Target/prerequisite-specific variable blocks can now be present even if there are prerequisites. For example, now instead of: exe{foo}: cxx{foo} exe{foo}: cc.loptions += ... Or: exe{foo}: cxx{foo} exe{foo}: { cc.loptions += ... cc.libs += ... } We can write: exe{foo}: cxx{foo} { cc.loptions += ... cc.libs += ... } This also works with dependency chains in which case the block applies to the set of prerequisites (note: not targets) before the last ':'. For example: ./: exe{foo}: libue{foo}: cxx{foo} { bin.whole = false # Applies to the libue{foo} prerequisite. }
2019-01-16Update copyright yearKaren Arutyunov1-1/+1
2018-05-19Update copyright yearKaren Arutyunov1-1/+1
2017-11-09Add support for for-loopBoris Kolpackov1-7/+17
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-10-03Adapt to modularization of libbutlKaren Arutyunov1-1/+1
2017-05-01Add hxx extension for headersKaren Arutyunov1-0/+195