PasteRack.org
Paste # 20090
2017-11-17 23:33:54

Fork as a new paste.

Paste viewed 60 times.


Embed:

  1. #lang racket
  2.  
  3. (require syntax/parse/define)
  4.  
  5. (define-syntax-parser a
  6.   #:datum-literals (x y)
  7.   [(_ (~or x y) ...)
  8.       (displayln (attribute x))
  9.       #'(void)])

=>

eval:2:0: attribute: not bound as a pattern variable

  at: x

  in: (attribute x)