From c08e0218b9276ea5a9c0ea35f43f13b41a14d8d4 Mon Sep 17 00:00:00 2001 From: "benjamin.franksen" <benjamin.franksen@helmholtz-berlin.de> Date: Sun, 12 May 2013 22:31:11 +0000 Subject: [PATCH] docs: added note about possible macro feature to Plans.txt --- documentation/Plans.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/documentation/Plans.txt b/documentation/Plans.txt index 039758e8..e637a499 100644 --- a/documentation/Plans.txt +++ b/documentation/Plans.txt @@ -83,3 +83,16 @@ list. Comments are welcome, as usual. Implementation: need to have monitor flags for each state set; must also change interface to snc (monitored becomes a bitmask with numSS bits). + +* Add some sort of built-in macro language. Something that nicely integrates + with the existing SNL syntax would be nice, e.g. :: + + define macro (arg, ...) { + definition + } + include "headerfile"; + + Use of CPP could then be deprecated. What about token catenation and + stringification as in CPP? + + Implementation would have to be an intermediate step between lexing and parsing. -- GitLab