From 424bef0d0aac2a5a8607cf9f76a6def5ee0ca183 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Tue, 19 Apr 2022 23:42:26 +0200 Subject: biblio: Replace template interpreter with a macro (a "compiler"). This allows us to catch invalid templates at macro-expansion time and is more efficient. * src/guile/skribilo/biblio/template.scm (evaluate-bib-entry-template): Remove. (define-template-engine, bibliography-template): New macros. (output-bib-entry-template): Rewrite and remove 'get-field' optional argument. (make-bib-entry-template/default, make-bib-entry-template/skribe): Use 'bibliography-template' instead of quasiquote/unquote. * src/guile/skribilo/package/jfp.scm (le): Likewise. * src/guile/skribilo/package/lncs.scm (bib-entry-template): Likewise. * src/guile/skribilo/biblio.scm (&biblio-template-error): Remove. (handle-biblio-error): Adjust accordingly. * tests/biblio.test: New file. * tests/Makefile.am (TESTS): Add it. --- tests/Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/Makefile.am') diff --git a/tests/Makefile.am b/tests/Makefile.am index 26b05ad..2ad1de2 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -11,6 +11,7 @@ TEST_LOG_DRIVER = \ TESTS = \ ast.test \ + biblio.test \ resolve.test \ engines/info.test \ location.test -- cgit v1.2.3