ninja-parse 0.1.0

A lexer+parser for ninja build files.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# various shenanigans around build edge variable evaluation.

rule echo
    command = echo "in:$in | out:$out | var:$buildvar $lexically_first"

build hello_in: phony

# The build edge bindings are available to paths.
build a.txt_$buildvar: echo ${buildvar}_in
    buildvar = hello

# Paths are not available to edge bindings.
# Edge bindings are not available to other edge bindings.
build b.txt: echo
    buildvar = geez_$out
    lexically_second = try this
    lexically_first = $lexically_second