Skip to content

Instantly share code, notes, and snippets.

@dyoo
Created February 6, 2013 01:10
Show Gist options
  • Select an option

  • Save dyoo/4719330 to your computer and use it in GitHub Desktop.

Select an option

Save dyoo/4719330 to your computer and use it in GitHub Desktop.
danl-ndl
#lang racket
(require syntax/parse)
(define (test-syntax stx)
(syntax-parse stx
((~and (one two (three four ...) ...) WHOLE)
(syntax/loc stx #'WHOLE))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment