Skip to content

Instantly share code, notes, and snippets.

@wilbowma
Created May 9, 2016 17:57
Show Gist options
  • Save wilbowma/4e8dae31a08b7c8eb693d38affa6ee4c to your computer and use it in GitHub Desktop.
Save wilbowma/4e8dae31a08b7c8eb693d38affa6ee4c to your computer and use it in GitHub Desktop.
#lang racket/base
(require
redex/reduction-semantics)
(define-language lcL
(e t ::= () (λ (x) e) (e e))
(C ::= (cross e)))
(module+ test
(require rackunit)
(check-true
(redex-match? lcL (cross e) (term (λ (x) hole))))
(check-true
(redex-match? lcL (cross t) (term (λ (x) hole))))
(check-true
(redex-match? lcL C (term (λ (x) hole)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment