enhanced printing of annotated syntax objects.
This commit is contained in:
		
							parent
							
								
									2c31b5bf51
								
							
						
					
					
						commit
						b915854677
					
				|  | @ -1 +1 @@ | |||
| 1272 | ||||
| 1273 | ||||
|  |  | |||
|  | @ -200,17 +200,17 @@ | |||
|   ;;; Now to syntax objects which are records defined like: | ||||
|   (define-record stx (expr mark* subst*) | ||||
|     (lambda (x p) | ||||
|       (display "#<syntax" p) | ||||
|       (display "#<syntax " p) | ||||
|       (write (stx->datum x) p) | ||||
|       (let ([expr (stx-expr x)]) | ||||
|         (when (annotation? expr)  | ||||
|           (let ([src (annotation-source expr)]) | ||||
|             (when (pair? src) | ||||
|               (display "@char " p) | ||||
|               (display " [byte " p) | ||||
|               (display (cdr src) p) | ||||
|               (display " of file " p) | ||||
|               (display (car src) p))))) | ||||
|       (display " " p) | ||||
|       (write (stx->datum x) p) | ||||
|               (display " of " p) | ||||
|               (display (car src) p) | ||||
|               (display "]" p))))) | ||||
|       (display ">" p))) | ||||
| 
 | ||||
|   ;;; First, let's look at identifiers, since they're the real  | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Abdulaziz Ghuloum
						Abdulaziz Ghuloum