diff options
author | Malte Voos <git@mal.tc> | 2024-07-08 22:01:42 +0200 |
---|---|---|
committer | Malte Voos <git@mal.tc> | 2024-07-08 22:01:42 +0200 |
commit | 97f84ccace4e634b4e02178a702818e69292dc9f (patch) | |
tree | 9cef95c62e3fa078db256c7fe657732fecef40a8 /src/ast/Ast.ml | |
parent | 57de10d8728f51942f676b68f1f3ea29d9b78e6e (diff) | |
download | toytt-97f84ccace4e634b4e02178a702818e69292dc9f.tar.gz toytt-97f84ccace4e634b4e02178a702818e69292dc9f.zip |
implement top-level definitions
Diffstat (limited to 'src/ast/Ast.ml')
-rw-r--r-- | src/ast/Ast.ml | 9 |
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 |