(t (problem 'ctm-rejection :unexpected-token (token-position (look parser)) "Unexpected token after topic or name."))))))
(defun read-association (parser map type)
(t (problem 'ctm-rejection :unexpected-token (token-position (look parser)) "Unexpected token after topic or name."))))))
(defun read-association (parser map type)
(loop
(when (or (punctuation-p parser #\)) (eq :eof (token-kind (look parser))))
(problem 'ctm-rejection :expected-role (token-position (look parser)) "Expected a nonempty Association role declaration."))
(loop
(when (or (punctuation-p parser #\)) (eq :eof (token-kind (look parser))))
(problem 'ctm-rejection :expected-role (token-position (look parser)) "Expected a nonempty Association role declaration."))
((eq :eof (token-kind (look parser)))
(problem 'ctm-rejection :missing-association-close (token-position (look parser)) "Expected ')' after the Roles."))
(t (problem 'ctm-rejection :expected-role-separator (token-position (look parser)) "Expected ',' or ')' after a Role."))))
((eq :eof (token-kind (look parser)))
(problem 'ctm-rejection :missing-association-close (token-position (look parser)) "Expected ')' after the Roles."))
(t (problem 'ctm-rejection :expected-role-separator (token-position (look parser)) "Expected ',' or ')' after a Role."))))
(let ((scope (read-scope parser map)))
(multiple-value-bind (r position) (read-reifier parser map)
(let ((association (topic-maps.tmdm:make-association map type (nreverse roles) :scope scope)))
(let ((scope (read-scope parser map)))
(multiple-value-bind (r position) (read-reifier parser map)
(let ((association (topic-maps.tmdm:make-association map type (nreverse roles) :scope scope)))