From b460c69aa58a469cfe5ea218534114217d04c7b3 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Wed, 26 Jul 2017 09:50:17 -0400 Subject: [PATCH] todo: Treat all nodes as short-hand template expansions * doc/todo.texi (Project TODOs/Preprocessor): Add section. --- doc/todo.texi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/doc/todo.texi b/doc/todo.texi index 6ef7b1b2..811fda34 100644 --- a/doc/todo.texi +++ b/doc/todo.texi @@ -79,6 +79,25 @@ There is plenty of room for optimization. @end enumerate +@section Preprocessor +The preprocessor is primarily responsible for macro (template) expansion. + +@enumerate + @item Remove distinction between primitives and short-hand template + expansion. + Treat @emph{all} nodes as potential template expansions, + and use the core library to mark certain templates as + primitives. + This will allow extending the language grammar naturally, + and easily convert existing primitives to templates.@footnote{ + For example, @samp{lv:rate-each} is a good candidate for + a template. + Ideally, all XSLT-driven expansions should be converted + into templates (the template system didn't exist back + then).} +@end enumerate + + @section Input/Return Map @enumerate @item Generate normal packages and use templates rather than a