diff options
| author | Son HO | 2023-11-22 15:06:43 +0100 | 
|---|---|---|
| committer | GitHub | 2023-11-22 15:06:43 +0100 | 
| commit | bacf3f5f6f5f6a9aa650d5ae8d12a132fd747039 (patch) | |
| tree | 9953d7af1fe406cdc750030a43a5e4d6245cd763 /compiler/Config.ml | |
| parent | 587f1ebc0178acb19029d3fc9a729c197082aba7 (diff) | |
| parent | 01cfd899119174ef7c5941c99dd251711f4ee701 (diff) | |
Merge pull request #45 from AeneasVerif/son_merge_types
Big cleanup
Diffstat (limited to 'compiler/Config.ml')
| -rw-r--r-- | compiler/Config.ml | 27 | 
1 files changed, 27 insertions, 0 deletions
diff --git a/compiler/Config.ml b/compiler/Config.ml index a487f9e2..fe110ee4 100644 --- a/compiler/Config.ml +++ b/compiler/Config.ml @@ -336,3 +336,30 @@ let type_check_pure_code = ref false  (** Shall we fail hard if we encounter an issue, or should we attempt to go      as far as possible while leaving "holes" in the generated code? *)  let fail_hard = ref true + +(** if true, add the type name as a prefix +    to the variant names. +    Ex.: +    In Rust: +      {[ +        enum List = { +          Cons(u32, Box<List>),x +          Nil, +        } +      ]} + +    F*, if option activated: +      {[ +        type list = +        | ListCons : u32 -> list -> list +        | ListNil : list +      ]} + +    F*, if option not activated: +      {[ +        type list = +        | Cons : u32 -> list -> list +        | Nil : list +      ]} + *) +let variant_concatenate_type_name = ref true  | 
