Skip to content

Instantly share code, notes, and snippets.

@bennn
Created August 15, 2018 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bennn/9901db528a7ac3fd8247c1fad55ab2d6 to your computer and use it in GitHub Desktop.
Save bennn/9901db528a7ac3fd8247c1fad55ab2d6 to your computer and use it in GitHub Desktop.
include/reader in a scribble file
#lang scribble/manual
@(require racket/include (for-syntax (prefix-in sr: scribble/reader)))
@(include/reader "text.txt" sr:read-syntax-inside)
upper class
@bennn
Copy link
Author

bennn commented Aug 18, 2018

This seems to run forever. Along the way, it might raise an exception (but continue running):

include/reader: read error (cdadr: contract violation
  expected: (cons/c any/c (cons/c pair? any/c))
  given: '((0 . 0) #f))
  in: (include/reader "text.rkt" sr:read-syntax-inside)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment