racket/collects/redex/examples/cont-mark-transform/TL-syntax.rkt

30 lines
413 B
Racket
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#lang racket
(require redex)
(provide TL)
(define-language TL
(e a
(a ... e)
(letrec ([σ v] ...) e)
(w-c-m a a e)
(c-c-m [a ...])
(match a l ...)
(abort e))
(l [(K x ...) e])
(a w
(K a ...))
(w v
x)
(v (λ (x ...) e)
(K v ...)
σ)
(x variable-not-otherwise-mentioned)
(σ (ref variable))
(Σ
(Σ [σ v]))
(K string))