aboutsummaryrefslogtreecommitdiff
path: root/src/guile
diff options
context:
space:
mode:
Diffstat (limited to 'src/guile')
-rw-r--r--src/guile/skribilo/resolve.scm12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/guile/skribilo/resolve.scm b/src/guile/skribilo/resolve.scm
index ba5af6a..94ab360 100644
--- a/src/guile/skribilo/resolve.scm
+++ b/src/guile/skribilo/resolve.scm
@@ -196,6 +196,18 @@
node)
+(define-method (do-resolve! (node <command>) engine env)
+ (with-debug 5 'do-resolve<command>
+ (debug-item "node=" node)
+ (let ((p (assq 'parent env)))
+ (slot-set! node 'parent (and (pair? p) (pair? (cdr p)) (cadr p))))
+ (for-each (lambda (n)
+ (do-resolve! n engine env))
+ (command-body node))
+ node))
+
+
+
;;;; ======================================================================
;;;;
;;;; RESOLVE-PARENT