src/HOL/HOLCF/Tools/Domain/domain_constructors.ML
changeset 42290 b1f544c84040
parent 42264 b6c1b0c4c511
child 43324 2b47822868e4
equal deleted inserted replaced
42289:dafae095d733 42290:b1f544c84040
   440     end
   440     end
   441 
   441 
   442     (* define syntax for case combinator *)
   442     (* define syntax for case combinator *)
   443     (* TODO: re-implement case syntax using a parse translation *)
   443     (* TODO: re-implement case syntax using a parse translation *)
   444     local
   444     local
   445       fun syntax c = Syntax.mark_const (fst (dest_Const c))
   445       fun syntax c = Lexicon.mark_const (fst (dest_Const c))
   446       fun xconst c = Long_Name.base_name (fst (dest_Const c))
   446       fun xconst c = Long_Name.base_name (fst (dest_Const c))
   447       fun c_ast authentic con = Ast.Constant (if authentic then syntax con else xconst con)
   447       fun c_ast authentic con = Ast.Constant (if authentic then syntax con else xconst con)
   448       fun showint n = string_of_int (n+1)
   448       fun showint n = string_of_int (n+1)
   449       fun expvar n = Ast.Variable ("e" ^ showint n)
   449       fun expvar n = Ast.Variable ("e" ^ showint n)
   450       fun argvar n (m, _) = Ast.Variable ("a" ^ showint n ^ "_" ^ showint m)
   450       fun argvar n (m, _) = Ast.Variable ("a" ^ showint n ^ "_" ^ showint m)