parser good enough to elab kovacs stuff

This commit is contained in:
2023-05-20 22:54:01 -07:00
parent 6850725d3b
commit ed3ee96df9
4 changed files with 138 additions and 73 deletions

View File

@@ -12,10 +12,13 @@ id : a -> a
-- declaration
id = \ a => a * a + 2 * (3 + x)
-- this is complicated with patterns because we need to group stuff together.
-- I really should make a simple grammar
-- I want to put this on ice, there is so much to do before patterns..
blah : Either a a -> a
blah = \ x => let x = 1 in x * x
bar = foo {x} 1
blah = \ _ => 1
next : (A : Type) -> (x : A) -> A
next : {A : Type} -> (x : A) -> A