X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Fcontent%2FnotationEnv.ml;h=be9171a8d9318a714e16fd5ceffbc2a069099278;hb=e880d6eab5e1700f4a625ddcd7d0fa8f0cce2dcc;hp=e95b3ab51d8c29729840ebbf9a5b5702d9252e63;hpb=8a660ee06d72cfee52c707bb1d8d8be3bab0d682;p=helm.git diff --git a/matita/components/content/notationEnv.ml b/matita/components/content/notationEnv.ml index e95b3ab51..be9171a8d 100644 --- a/matita/components/content/notationEnv.ml +++ b/matita/components/content/notationEnv.ml @@ -27,9 +27,13 @@ module Ast = NotationPt +type ident_or_var = + Ident of string + | Var of string + type value = | TermValue of Ast.term - | StringValue of string + | StringValue of ident_or_var | NumValue of string | OptValue of value option | ListValue of value list @@ -103,12 +107,12 @@ let declaration_of_var = function let value_of_term = function | Ast.Num (s, _) -> NumValue s - | Ast.Ident (s, None) -> StringValue s + | Ast.Ident (s, None) -> StringValue (Var s) | t -> TermValue t let term_of_value = function | NumValue s -> Ast.Num (s, 0) - | StringValue s -> Ast.Ident (s, None) + | StringValue (Ident s) -> Ast.Ident (s, None) | TermValue t -> t | _ -> assert false (* TO BE UNDERSTOOD *)