Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 587 Bytes

README.md

File metadata and controls

13 lines (11 loc) · 587 Bytes

quasi-quote

A quasi-quoting library for Agda, supporting automatic de Bruijn management. Very much work-in-progress. Requires the experimental branch of the standard library at commit bee4f912f or later.

Example

test₁ : Term  Term
test₁ t = `(λ n  n + ! t)
 -- quote ^    splice ^

check₁ : test₁ (var 0 []) ≡ lam visible (abs "n" (def₂ (quote _+_) (var 0 []) (var 1 [])))
check₁ = refl                                          -- Lifted automatically ^^^^^^^^