- (if (eq :directive (token-kind (look parser)))
- (read-prefix-directive parser)
- (let* ((embedded (punctuation-p parser #\[)) (topic (topic-reference parser map)))
- (if (punctuation-p parser #\()
- (read-association parser map topic)
- (if embedded
- (problem 'ctm-rejection :embedded-topic-at-top-level (token-position (look parser))
- "An Embedded Topic at top level must be an Association Type, not a standalone declaration.")
- (read-topic-tail parser map topic #\.)))))))
+ (cond ((eq :directive (token-kind (look parser))) (read-directive parser map))
+ ((identifier-p (look parser) "def") (read-template-definition parser))
+ (t (read-statement parser map)))))