diff options
author | Son Ho | 2021-11-29 21:24:32 +0100 |
---|---|---|
committer | Son Ho | 2021-11-29 21:24:32 +0100 |
commit | 2b7145a8c7678d9b5c3a3d872434ab1ded233e8c (patch) | |
tree | 5eeed741bc451881cf912bd211cf1b1218e1c5bc /src/Modules.ml | |
parent | aa3f38ada4299710c982b67db994c3684d7eeb4a (diff) |
Move some definitions from CfimOfJson.ml to a new Modules.ml
Diffstat (limited to '')
-rw-r--r-- | src/Modules.ml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Modules.ml b/src/Modules.ml new file mode 100644 index 00000000..a2b1d3bf --- /dev/null +++ b/src/Modules.ml @@ -0,0 +1,21 @@ +open Yojson.Basic +open Identifiers +open Types +open OfJsonBasic +open Scalars +open Values +open CfimAst + +(** Module declaration *) +type declaration = + | Type of TypeDefId.id + | Fun of FunDefId.id + | RecTypes of TypeDefId.id list + | RecFuns of FunDefId.id list + +type cfim_module = { + declarations : declaration list; + types : type_def TypeDefId.vector; + functions : fun_def FunDefId.vector; +} +(** CFIM module *) |