Create Lam/Type.agda with the type of lambda terms (Lam, App, Var).
Considering that we'll want to have a HOAS evaluator for it in the future it might be interesting to use a type like in Kind-Core https://github.com/HigherOrderCO/kind-core/blob/main/src/Kind/Type.hs, but it can also be a classic concrete encoding that in the future we'll convert to HOAS form when evaluating.
Include a lambda parser based on Data/Parser. Use a similar syntax to hvm1 and bend (λvar bod, (fun arg), var, irrelevant whitespace).
Create
Lam/Type.agda
with the type of lambda terms (Lam, App, Var).Considering that we'll want to have a HOAS evaluator for it in the future it might be interesting to use a type like in Kind-Core https://github.com/HigherOrderCO/kind-core/blob/main/src/Kind/Type.hs, but it can also be a classic concrete encoding that in the future we'll convert to HOAS form when evaluating.
Include a lambda parser based on
Data/Parser
. Use a similar syntax to hvm1 and bend (λvar bod
,(fun arg)
,var
, irrelevant whitespace).