about summary refs log tree commit diff
path: root/src/ast/Ast.ml
diff options
context:
space:
mode:
authorMalte Voos <git@mal.tc>2024-07-08 22:01:42 +0200
committerMalte Voos <git@mal.tc>2024-07-08 22:01:42 +0200
commit97f84ccace4e634b4e02178a702818e69292dc9f (patch)
tree9cef95c62e3fa078db256c7fe657732fecef40a8 /src/ast/Ast.ml
parent57de10d8728f51942f676b68f1f3ea29d9b78e6e (diff)
downloadtoytt-97f84ccace4e634b4e02178a702818e69292dc9f.tar.gz
toytt-97f84ccace4e634b4e02178a702818e69292dc9f.zip
implement top-level definitions
Diffstat (limited to 'src/ast/Ast.ml')
-rw-r--r--src/ast/Ast.ml9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ast/Ast.ml b/src/ast/Ast.ml
index 3a6fac6..974409f 100644
--- a/src/ast/Ast.ml
+++ b/src/ast/Ast.ml
@@ -29,6 +29,15 @@ and raw_expr =
 
 and expr = raw_expr Asai.Range.located
 
+type item =
+  | Def of {
+      name : ident;
+      tp : expr;
+      tm : expr;
+    }
+
+type file = item List.t
+
 let dump_ident fmt ({ value; _ } : ident) = Ident.pp fmt value
 
 let dump_local_name fmt ({ value; _ } : local_name) = match value with