chiark / gitweb /
Macro assistance part 2 - syntax for $(eval $(call...))
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 24 Dec 2019 23:04:58 +0000 (23:04 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 30 Dec 2019 11:35:15 +0000 (11:35 +0000)
commit8c3e6dc4a16406496aa6991f8dc2fb77a96359ea
treee3ec99dab468a3929acb55f92165512cfb0030ca
parent3177fb7abb48479332cce56b02b6407968fb2d27
Macro assistance part 2 - syntax for $(eval $(call...))

This can be used to call a macro defined with &:macro.  In combination
these provide a more reasonable macro facility than make's.

Specifically:

* Document the new facility.
* Motivate it in the README.
* Provide the new @nest kind for &${  }, which uses $ddbl as
  a counter to count { and }.
* Implement the {}-counting and nesting end in the main parsing
  loop.  (We must now search for things besides $esc.)
* In extract-doctest, provide a slightly adhoc special case for
  understanding ${eval ...} as an expansion text in the README.
  And do not attempt to test &${ } when already $-doubling.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
README
generate
tests/filter/extract-doctest