diff options
author | Malte Voos <git@mal.tc> | 2024-06-23 23:31:59 +0200 |
---|---|---|
committer | Malte Voos <git@mal.tc> | 2024-06-24 00:16:55 +0200 |
commit | 5d227bcd0055d02e1d49a3dcd27e80a756923d5b (patch) | |
tree | da468ad3a8f3caf709b731ca2678c86a5a015990 /src/nbe/Syntax.ml | |
parent | 8d40541003736d5319ec981278338e8c8c66daf6 (diff) | |
download | toytt-5d227bcd0055d02e1d49a3dcd27e80a756923d5b.tar.gz toytt-5d227bcd0055d02e1d49a3dcd27e80a756923d5b.zip |
split code into smaller libraries and make a better repl
Diffstat (limited to 'src/nbe/Syntax.ml')
-rw-r--r-- | src/nbe/Syntax.ml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/nbe/Syntax.ml b/src/nbe/Syntax.ml new file mode 100644 index 0000000..dd690fb --- /dev/null +++ b/src/nbe/Syntax.ml @@ -0,0 +1,20 @@ +type t = Data.syn = + | Var of int + | Pi of Ident.local * t * (* BINDS *) t + | Lam of Ident.local * (* BINDS *) t + | App of t * t + | Sg of Ident.local * t * (* BINDS *) t + | Pair of t * t + | Fst of t + | Snd of t + | Type + | Bool + | True + | False + | BoolElim of { + motive_var : Ident.local; + motive : (* BINDS *) t; + true_case : t; + false_case : t; + scrut : t; + } |