From: Chris Hanson Date: Wed, 16 Aug 1989 11:46:23 +0000 (+0000) Subject: Optionally allow comments to appear with bogus syntax. X-Git-Tag: 20090517-FFI~11820 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=c24ac60a78a17e02e585ee4515824df98283a65b;p=mit-scheme.git Optionally allow comments to appear with bogus syntax. --- diff --git a/v7/src/runtime/unsyn.scm b/v7/src/runtime/unsyn.scm index 35c60eb00..6182db331 100644 --- a/v7/src/runtime/unsyn.scm +++ b/v7/src/runtime/unsyn.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/unsyn.scm,v 14.5 1989/08/15 13:20:41 cph Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/unsyn.scm,v 14.6 1989/08/16 11:46:23 cph Exp $ Copyright (c) 1988, 1989 Massachusetts Institute of Technology @@ -137,7 +137,14 @@ MIT in each case. |# `(UNASSIGNED? ,(unassigned?-name unassigned?))) (define (unsyntax-COMMENT-object comment) - (unsyntax-object (comment-expression comment))) + (let ((expression (unsyntax-object (comment-expression comment)))) + (if unsyntaxer:show-comments? + `(COMMENT ,(comment-text comment) ,expression) + expression))) + +(define unsyntaxer:show-comments? + false) + (define (unsyntax-DECLARATION-object declaration) (declaration-components declaration (lambda (text expression)